getGeneLengthAndGCContent(id, org, mode=c("biomart", "org.db"))The 'org.db' mode uses organism-based annotation packages from Bioconductor. This is much faster than the 'biomart' mode, but is only available for selected model organism currently supported by BioC annotation functionality.
Results for the same gene ID(s) can differ between both modes as they are based on different sources for the underlying genome assembly. While the 'biomart' mode uses the latest ENSEMBL version, the 'org.db' mode uses BioC annotation packages typically built from UCSC.
getSequence to retrieve a genomic sequence from BioMart,
genes to extract genomic coordinates from a TxDb object,
getSeq to extract genomic sequences from a BSgenome object,
alphabetFrequency to calculate nucleotide frequencies.
getGeneLengthAndGCContent("ENSG00000012048", "hsa")
Run the code above in your browser using DataLab