contains {ballgown} | R Documentation |
determine if one set of GRanges fully contains any of another set of GRanges
contains(transcripts, cds)
transcripts |
|
cds |
|
If gown
is a ballgown
object, transcripts
can
be structure(gown)$trans
(or any subset).
vector with length equal to length(transcripts)
, where each
entry is TRUE
if the corresponding transcript contains a coding
sequence (i.e., is a superset of at least one entry of cds
).
Alyssa Frazee
## pretend this annotation is coding sequence: gtfPath = system.file('extdata', 'annot.gtf.gz', package='ballgown') annot = gffReadGR(gtfPath, splitByTranscript=TRUE) data(bg) results = contains(structure(bg)$trans, annot) # results is a boolean vector sum(results) #61