Skip to content
Prev 16163 / 21312 Next

[Bioc-devel] Compatibility of Bioconductor with tidyverse S3 classes/methods

This is an interesting discussion and I hope it is ok to continue it a
bit.  I found the
readme for the ttBulk repo extremely enticing and I am sure many people
will want to
explore this way of working with genomic data.  I have only a few moments
to explore
it and did not read the vignette, but it looks to me as if it is mostly
recapitulated in the
README, which is an excellent overview.

One thing I feel is missing is an approach to the following question: I
like the
idea of a pipe-oriented operator for programming steps in genomic workflows.
How do I make one that works the way ttBulk's operators work?  Well, I can
have a look at ttBulk:::reduce_dimensions.ttBulk ...

It's involved.  Are there patterns there that
are preserved across different operators?  Can
they be factored out to improve maintainability?

One other point before I run

It seems to me the operators "require" that certain
fields be defined in their tibble operands.
[1] "names"      "class"      "row.names"  "parameters"
[1] "sample"             "transcript"         "Cell type"

[4] "count"              "time"               "condition"

[7] "batch"              "factor_of_interest"
*Error in .classEnv(classDef) : *

*  trying to get slot "package" from an object of a basic class ("NULL")
with no slots*


Enter a frame number, or 0 to exit


1: validObject(counts)

2: .classEnv(classDef)


I think you mentioned validity checking in a previous email.  This

is a feature of S4 that is not frequently invoked.  Of course

validObject will not work on counts, but do you have something similar?

(Not all working S4 objects from Bioc will pass validObject tests, but

they should....)



On Fri, Feb 7, 2020 at 5:26 AM Martin Morgan <mtmorgan.bioc at gmail.com>
wrote:

  
    
Message-ID: <CAANT7+W7F+HkoM=ZDDjB+EyB=buDp52sUZ2kEsnmNBViP-FvdQ@mail.gmail.com>
In-Reply-To: <DM6PR04MB5531524508DC39DEE4660C4CF91C0@DM6PR04MB5531.namprd04.prod.outlook.com>