This function is used to get the genomic features of interest
and the DNA sequences associated with them. This function takes advantage of
the GenomicFeatures
package functions threeUTRsByTranscript
,
fiveUTRsByTranscript
, exonsBy
, intronsByTranscript
, and cdsBy
. These
functions are used to generate the features given an input tx.db
object. A
2bit dna
input is also required for extracting features sequences.
The output of the this function is:
$db
: the featureGRanges
object$seqs
:DNAStringSet
of sequences associated to those features
Arguments
- tx.db
A tx.db object
- dna
A 2bit dna sequence
- feature.type
The type of feature to return. Options: 3UTR, 5UTR, exons, introns, cds
Examples
if (FALSE) { # interactive()
anno.db = load_species_anno_db("human")
features = get_feature_seqs(anno.db$tx.db, anno.db$dna)
}