reverse {genoPlotR} | R Documentation |
Reverse objects
Description
Reverse objects, mainly dna_seg
and comparison
Usage
reverse(x, ...)
## Default S3 method:
reverse(x, ...)
## S3 method for class 'dna_seg'
reverse(x, ...)
## S3 method for class 'comparison'
reverse(x, side = 0, ...)
Arguments
x |
The object to reverse. |
... |
Unused. |
side |
In the case of comparisons, the side of the comparison that should
be reversed. If |
Value
The same object as input.
Author(s)
Lionel Guy
See Also
Examples
## load data
data(three_genes)
## on dna_seg
dna_segs[[1]]
reverse(dna_segs[[1]])
## on comparison
reverse(comparisons[[2]], side=1)
reverse(comparisons[[2]], side=3)
## With mauve backbone
data(mauve_bbone)
## Plot
plot_gene_map(dna_segs=bbone$dna_segs, comparisons=bbone$comparisons)
## Reverse B_bacilliformis, and the corresponding comparison (first "side")
bbone$dna_segs[[1]] <- reverse(bbone$dna_segs[[1]])
bbone$comparisons[[1]] <- reverse(bbone$comparisons[[1]], 1)
plot_gene_map(dna_segs=bbone$dna_segs, comparisons=bbone$comparisons)
[Package genoPlotR version 0.8.11 Index]