Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32 +/- ##
==========================================
- Coverage 94.76% 93.57% -1.19%
==========================================
Files 15 18 +3
Lines 439 529 +90
==========================================
+ Hits 416 495 +79
- Misses 23 34 +11
Continue to review full report at Codecov.
|
amcdavid
left a comment
There was a problem hiding this comment.
I understand what you were getting at with your code snippets the other day now, @LTLA , and I think this makes a lot of sense. I guess to use this, it will be incumbent on downstream packages to handle the altExp, ie,
runTSNE(sce, experiment = 'Ab', exprs_values = ...)
Until downstream packages do this (and inevitably, some will never do this) I would think that a common workaround would be for users would do would be something like
citeseq = altExp(sce, 'Ab')
citeseq = runTSNE(citeseq)
reducedDim(sce, 'Ab') = reducedDim(citeseq)
But this doesn't work without upcasting citeseq to a SingleCellExperiment. So I wonder if we shouldn't be storing (or upcasting with the accessor method by default) a SingleCellExperiment for the alternative experiments?
scater and scran can start flipping stuff over as soon as we agree that this is the way to go. Visualization is a bit more annoying, scater tries to be smart about how it interprets variables but this becomes a bit stressful. For example, take I suggest some people take this for a spin and tell me all the pain points for high-priority resolution.
The SCE is the default if one uses |
Ah, I understand now that SEBC can be a SummarizedExperiment or any derived class. I suspect that this will do the trick. It would be kinda nice to have some of the maintainers of packages that revdep SingleCellExperiment (besides scater and scran) see how it would fit in their workflow before we canonize it as API. |
|
Between you, me, @robertamezquita and anyone else who is watching, we can do some preliminary testing to iron out the obvious problems; then I'll post something on BioC-devel for further comments; and then we'll merge. After which I can start porting scater and scran over in earnest. |
|
scater refactoring for |
Updated docs and tests.
|
scater refactoring is, by and large, complete, see alanocallaghan/scater#93. The
The general philosophy is that a function should only have special arguments for handling alternative experiments if it intends to make use of the fact that the data comes from an alternative experiment. If it's just using the alternative experiment as a data store, it is better for the user to call altExp(sce) <- runTSNE(altExp(sce))The purpose of the reducedDim(sce, "TSNE") <- reducedDim(runTSNE(altExp(sce)))which we can all agree is much wordier and probably warrants a special argument. |
|
Can you clarify:
with an example? Say I have an (I've tried different combos for |
|
Not sure what exactly you want to do. You want to colour a UMAP off the alternative experiment? plotReducedDim(sce, "UMAP", colour_by="whatever your alt feature has as its row name",
by_exprs_values="counts") # this should get propagated to retrieveCellInfo().
|
I think that makes sense, good plan 👍 |
See
?altExperimentfor details.