View source: R/00.get_GCandMappability.R
gcContents | R Documentation |
helper function to calculate chromosome/scaffold level GC content
gcContents(genome, seqname, nonATCGExclude = TRUE)
genome |
an object of BSgenome::BSgenome |
seqname |
a character(1) vector, the chromosome/scaffold's name |
nonATCGExclude |
a logical(1) vector, whether nucleotides other than A, T, C, and G should be excluded when GC content is calculated |
a numeric(1) vector, containing the chromosome/scaffold -specific GC content in the range of 0 to 1
Haibo Liu
## Not run:
library(BSgenome.Mmusculus.UCSC.mm10)
genome <- BSgenome.Mmusculus.UCSC.mm10
InPAS:::gcContents(genome, "chr1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.