Description Usage Arguments Value Author(s) Examples
The function downloads the .fa.gz of a given chromosome from UCSC genome browser and calculate the GC content for given window size.
1 |
chr |
chromosome name. e.g. "chr1". |
binsize |
window size. e.g. 1000000. |
url |
diretory of human genome assembly. e.g."http://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/". |
A GRanges object.
chr |
A character vector. Chromosome information. |
interval1 |
An integer vector. Start position of each bin. |
interval2 |
An integer vector. End position of each bin. |
GC |
A numeric vector. GC content of each bin. |
Mengjie Chen
1 2 3 4 | chr <- "chr1"
url <- "http://hgdownload.soe.ucsc.edu/goldenPath/hg19/chromosomes/"
#downloding speed may depend on the machine and internet
#test <- GCcount(chr, 10000, url)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.