openproblems: Spatial decomposition: cell2location/RCTD/destVI benchmark results don't make sense
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the
mainbranch of openproblems.
I see that cell2location benchmark results as well as results for other methods such as RCTD don’t make sense (https://openproblems.bio/benchmarks/spatial_decomposition/pancreas_alpha_0_5). The accuracy and ranking are very unexpected - I would expect (from best to worst):
- Cell2location
- RCTD, Cell2location amortised, potentially DestVI
- Stereoscope
- NNLS, NMF-reg, SeuratV3, NMF? (not sure where to place NMF)
- Random assignment (baseline)
However, it seems that only NMF and Stereoscope are doing better than a random baseline. In addition, cell2location amortised is better than standard cell2location.
Would be great to investigate what happened before reporting these results in a publication @LuckyMD @scottgigante .
Where can I see the run time conditions for the number of iterations, other hyperparameter settings, and whether the training was performed on GPU/CPU? Maybe there is a bug in metric computation and the outputs of models are not normalised to proportions?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 35 (18 by maintainers)
Commits related to this issue
- cell2location with max normalisation flexibility I think this is necessary to properly analyse the data where total UMI is completely decoupled from biological RNA count https://github.com/openproble... — committed to vitkl/openproblems by vitkl 4 years ago
- cell2location with max normalisation flexibility (#704) * cell2location with max normalisation flexibility I think this is necessary to properly analyse the data where total UMI is completely deco... — committed to openproblems-bio/openproblems by vitkl 4 years ago
Thanks for the report @vitkl! @giovp is already looking into this. Hopefully we will find the cause soon.
Improved benchmarks are uploaded at https://openproblems.bio/benchmarks/spatial_decomposition/. Mostly match your expectations, except for Cell2location.
Not in the automated benchmark. Override is there for you if you want to run the methods yourself with different params.
If you’re not adding new dependencies,
should do the job. You only need docker images if a) you can’t install the deps locally e.g. in a virtualenv or b) you are running the tests locally as described in CONTRIBUTING.
Questions about the datasets and methods in this task are better posed to @giovp than to me.
Unless set manually, the defaults are set in the function. https://github.com/openproblems-bio/openproblems/blob/main/openproblems/tasks/spatial_decomposition/methods/cell2location.py#L38
No. We use only 10x data from lung at the 30m time point. https://github.com/openproblems-bio/openproblems/blob/main/openproblems/tasks/spatial_decomposition/datasets/tabula_muris_senis.py#L10
We keep only one batch of the pancreas data for this reason. https://github.com/openproblems-bio/openproblems/blob/main/openproblems/tasks/spatial_decomposition/datasets/pancreas.py#L28
Yes.
You can run the methods yourself. Either use the CLI (see CONTRIBUTING.md) or simply
and your results will be in
adata.obsm["proportions_pred "]as described in the task API.That would be great!
I changed to proportions in this PR: https://github.com/openproblems-bio/openproblems/pull/700