-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subsetting a SingleCellExperiment
breaks the ScpModel
object
#58
Comments
This also implies creating subsetting functionality for |
Wait, I'm confused... an ScpModel is computed on a Also, having a quick look at the issue, isn't one problem that the sce variable wasn't created with |
QFeatures
breaks the ScpModel
objectSingleCellExperiment
breaks the ScpModel
object
Sorry, you're right! It's subsetting the |
Ok, then sub-setting the On the other hand, from a user's perspective, what about sub-setting features at the model results data.frames level? Sub-setting cells or cell types kind of invalidates the results, as the model was produced with all cells. |
Also regarding this
do we want to allow sub-setting columns/cells? |
It makes indeed no sense to subset an
The output tables are disconnected from the
What do you think? |
Of course, it not our responsibility. My point was rather that sub-setting by feature can be done on that level, so do we really need support sub-setting the SCE? But now that I think a bit more about it, doesn't sub-setting by features invalidates some of the ScpModel results? Are the component and variance analyses still relevant? Would these be preformed on the sub-setted modelled data? |
In other words, and following up on your suggestions, do we want to support sub-setting an SCE after modelling? Shouldn't we not simply warn that this will lead to broken/invalid ScpModel results, and suggest to manipulate the individual dataframe results of re-run a new model on a subset of the data? |
The issues has been highlighted in: #56 (comment)
The reason is that the subsetting functionality in
QFeatures
does not know it should also subset theScpModel
objects contained inmetadata(qfObject)
.A solution I see is to overwrite the subsetting functionality of
QFeatures
(with call tonextMethod()
), but also including a substerring of the metadata.The text was updated successfully, but these errors were encountered: