Skip to contents

Converts a GBreaks object to a list that can be passed as xlim argument to plotApairOfChrs.

Usage

gb2xlim(gb)

Arguments

gb

A GBreaks object.

Value

A list of two pairs of numbers, where the first pair is the start and end positions of the first range of the GBreaks object on the target genome and the second pair is the start and end positions of the same first range, on the query genome.

Note

This function is intended to be run on GBreaks objects that have been filtered to contain only one seqname on each genome.

See also

Other genoPlotR functions: gb2comp(), gb2dna_seg(), gr2dna_seg(), plotApairOfChrs()

Other Converter functions: GBreaksToMatrix(), gb2comp(), gb2dna_seg(), gr2dna_seg()

Author

Charles Plessy

Examples

gb2xlim(exampleColinear)
#> [[1]]
#> [1] 100 300
#> 
#> [[2]]
#> [1] 100 300
#>