featureGRanges: Given a GenomicFeatures annotation_db and a gene_id, extract...

Description Usage Arguments Value References

View source: R/BamFunctions.R

Description

Given a GenomicFeatures annotation_db and a gene_id, extract an GRanges object of the cds

Usage

1
featureGRanges(annotation_db, gene_id, feature)

Arguments

annotation_db

a GenomicFeatures db. You can either get this from the bioconductor resources, or create your own with a gtf

gene_id

the ID of a gene in the db. Eg, for cryptococcus CKF44_05222

feature

one of c("cds", "exon"), determins which feature to extract from the annotations

Value

an IRanges object of the given gene's exons

References

GenomicRanges::GRanges, GenomicFeatures


cmatKhan/brentlabRnaSeqTools documentation built on Nov. 17, 2021, 5:47 a.m.