Skip to content
Prev 4730 / 21312 Next

[Bioc-devel] isActiveSeq deprecated

Hi Marc,

Wouldn't it make sense to just ignore the 'force' arg when
dropping the seqlevels of a TranscriptDb?

The 'force' argument is FALSE by default and this prevents
seqlevels<- to shrink GRanges or other vector-like objects
when the user tries to drop seqlevels that are in use.
Internally seqlevels<- calls seqlevelsInUse() to get the
seqlevels currently in use and see if they intersect with
the seqlevels to drop.

In the TranscriptDb situation, people always have to use
'force=TRUE' to drop seqlevels, regardless of whether the
levels to drop are in use or not (the seqlevelsInUse()
getter not being defined for TranscriptDb objects, I suspect
seqlevels<- doesn't look at this).

So maybe 'force' could just be ignored for TranscriptDb objects?
That would make seqlevels<- a little bit more user-friendly on
those objects.

Thanks,
H.
On 09/13/2013 10:38 AM, Marc Carlson wrote: