I had not spotted this in my initial review for the respective pull request, but better now than ...
workflow AMBIENT_RNA_REMOVAL {
take:
ch_pairing
A comment would be nice on what ch_pairing is. I mean, it kind of gets evident from the context but then again ... would be nice. Also, it may be noteworthy that in this subworkflow that pairing is undone - only one stream continues.
main:
ch_versions = Channel.empty()
if (params.ambient_removal == 'none') {
println "AMBIENT_RNA_REMOVAL: Not performed since 'none' selected."
ch_h5ad = ch_pairing.map{ meta, filtered, unfiltered -> [meta, filtered] }
I agree that when the filtered channel is not empty then that filtered channel should be forwarded. But if only the unfiltered is available, then that is the one that is forwarded, even though we may be expecting problems. Or an error message should be raised.
This seems to work, at least this works for me when only providing unfiltered data.
}
else if (params.ambient_removal == 'cellbender') {
CELLBENDER_REMOVEBACKGROUND(ch_raw)
ch_raw is not defined. In analogy to CELDA_DECONTX, SCVITOOLS_SCAR and SOUPX I think ch_pairing should be forwarded but modules/local/cellbender/removebackground is not prepared for that.
Description of the bug
Hello,
I had not spotted this in my initial review for the respective pull request, but better now than ...
A comment would be nice on what ch_pairing is. I mean, it kind of gets evident from the context but then again ... would be nice. Also, it may be noteworthy that in this subworkflow that pairing is undone - only one stream continues.
I agree that when the filtered channel is not empty then that filtered channel should be forwarded. But if only the unfiltered is available, then that is the one that is forwarded, even though we may be expecting problems. Or an error message should be raised.
This seems to work, at least this works for me when only providing unfiltered data.
ch_raw is not defined. In analogy to CELDA_DECONTX, SCVITOOLS_SCAR and SOUPX I think ch_pairing should be forwarded but modules/local/cellbender/removebackground is not prepared for that.
Command used and terminal output
No response
Relevant files
No response
System information
No response