Description Usage Arguments Value Examples
Visualize reference genome. Rectangles represent exons. Arrow represents orientation of transcripts.
1 2 3 4 |
ensemblGenome |
A 'ensemblGenome' object derived from running
|
chr |
Chromosome name. Integer or "X", "Y", "MT". |
start |
Genomic coordinate of the start position. |
end |
Genomic coordinate of the end position. |
rect_width |
Exon widths. Default 0.3. |
line_width |
Line weight. Default 0.5. |
arrow_segments |
The number of segments lines be divided to. The greater the number, more arrows there are. Default 10. |
arrow_width |
The angle of the arrow head in degrees (smaller numbers produce narrower, pointier arrows). Essentially describes the width of the arrow head. Passed to the angle parameter of arrow function. Default 30. |
arrow_length |
The length of the arrow head. Passed to the length argument of arrow function. Default 0.08. |
arrow_type |
One of "open" or "closed" indicating whether the arrow head should be a closed triangle. Passed to the type argument of arrow function. Default "open". |
text_size |
Size of text. Passed to the size argument of the geom_text function. Default 4. |
A ggplot object of genomic view
1 2 3 4 5 | gtf <- system.file("extdata", "GRCm38_MT.gtf", package = "scruff")
gtfEG = refGenome::ensemblGenome(dirname(gtf))
refGenome::read.gtf(gtfEG, filename = basename(gtf))
g <- gview(gtfEG, chr = "MT")
g
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.