getCytobands | R Documentation |
Get the cytobands of the specified genome.
getCytobands(genome="hg19", use.cache=TRUE)
genome |
(character or other) specifies a genome using the UCSC genome name. Defaults to "hg19". If it's not a |
use.cache |
(boolean) wether to use or not the cytoband information included in the packge. |
It returns GRanges
object with the cytobands of the specified genome.
The cytobands for some organisms and genome versions have been pre-downloaded from UCSC
and included in the karyoploteR
package. For any other genome, getCytobands
will use rtracklayer
to try to fetch the cytoBandIdeo
table from UCSC. If for
some reason it is not possible to retrieve the cytobands, it will return an empty GRanges
object. Setting the parameter use.cache
to FALSE
, the data included in the
package will be ignored and the cytobands will be downloaded from UCSC.
The genomes (and versions) with pre-downloaded cytobands are: hg18, hg19, hg38, mm9, mm10, mm39, rn5, rn6, rn7, susScr11, bosTau9, bosTau8, equCab3, equCab2, panTro6, panTro5, rheMac10, danRer10, danRer11, xenTro10, dm3, dm6, ce6, ce10, ce11, sacCer2, sacCer3
It returns a GenomicRanges
object with the cytobands of the specified genome. If no cytobands are available for any reason, an empty GRanges
is returned.
This function is memoised (cached) using the memoise
package. To empty the
cache, use forget(getCytobands)
plotKaryotype
#get the cytobands for hg19 (using the data included in the package)
cyto <- getCytobands("hg19")
#get the cytobands for Drosophila Melanogaster
cyto <- getCytobands("dm6")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.