Description Usage Arguments Value Examples
View source: R/GenomeGraphs-classes.R
Convenience function for constructing objects of class AnnotationTrack.
1 |
regions |
A dataframe with columns start, end, feature, group, ID. start and end delineate the boundaries of the boxes feature can be used to color the boxes. Group denotes linking so generally exons from a gene form a group. Finally, ID can be used to plot names on boxes. |
chr |
The chromosome of the regions (can be ignored) |
strand |
The strand of the regions (can be ingored) |
start |
If regions is missing then we construct a dataframe from the remaining parameters. |
end |
Construct regions with this vector |
feature |
Construct regions with this feature vector or scalar |
group |
Defines a grouping |
ID |
Defines an ID for each annotation bit |
dp |
DisplayPars, in this case we can create a mapping between feature and color. So lets say in the feature column you have: gene, transcript, gene, then in the dp you can say gene = 'blue' and transcript = 'green' |
Returns an object of class AnnotationTrack
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.