Demuxalot: Adjust script for v. 0.4.0 #46
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Demuxalot changed its API between the version currently included in the Demuxafy Singularity image (v. 0.2.0) and the latest (as of 2024-02-22) version (v. 0.4.0):
Notably, the
only_singlets
parameter of thepredict_posteriors
function was dropped (seearogozhnikov/demuxalot@3939e81). However, as far as I can tell, as long as the
doublet_prior
parameter is non-zero, the it defaults to the behaviour ofonly_singlets = FALSE
(cf. arogozhnikov/demuxalot@2b1535b).As Demuxafy's
Demuxalot.py
uses,only_singlets = FALSE
anddoublet_prior
defaults to0.35
(i.e. a non-zero value), simply dropping the (now) unsupported parameter restores compatibility of Demuxafy'sDemuxalot.py
with the current version of Demuxalot.I have verified that the adjusted version of Demuxafy's
Demuxalot.py
works with Demuxalot v. 0.4.0 by running the corresponding tutorial (with the reduced dataset) as a test case.The final (refined) assignments (as per
assignments_refined.tsv.gz
) were identical to those obtained by running the current version from the Demuxafy Singularity image.As usual with my PR's this one adds a final newline to the script due to my editor configuration.
@drneavin: I could not find any place in the repository that actually defines which version of Demuxalot to include in the Demuxafy Singularity image. Else I would have bumped the version accordingly.
So please ensure that upon mergin this PR you also update Demuxafy via pip.
If I just missed it, please point me to it so I can modify this PR accordingly.