Skip to contents

The genoPlotR::dna_seg class represents DNA segments using a data.frame format.

Usage

gr2dna_seg(gr, ...)

Arguments

gr

A GRanges object.

...

Extra arguments passed to dna_seg().

Value

Returns a genoPlotR::dna_seq or NULL if the input object has a length of zero.

See also

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

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

Author

Charles Plessy

Examples

gr2dna_seg(exampleInversion)
#>             name start end strand  col fill lty lwd pch cex gene_type
#> 1 chrA:100-190:+   100 190      1 blue blue   1   1   8   1    blocks
#> 2 chrA:210-291:-   210 291     -1 blue blue   1   1   8   1    blocks
#> 3 chrA:301-400:+   301 400      1 blue blue   1   1   8   1    blocks
gr2dna_seg(exampleInversion$query)
#>           name start end strand  col fill lty lwd pch cex gene_type
#> 1 chrB:100-190   100 190      1 blue blue   1   1   8   1    blocks
#> 2 chrB:210-291   210 291      1 blue blue   1   1   8   1    blocks
#> 3 chrB:301-400   301 400      1 blue blue   1   1   8   1    blocks