-
Notifications
You must be signed in to change notification settings - Fork 735
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
Add Cellsnp to modules #5518
Add Cellsnp to modules #5518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job so far! I've made some suggestions, but I'm still new to nf-core, so it's probably a good idea to have someone else look at the module, too.
@tstoeriko thanks for your detailed suggestion! I have now splitted cellsnp into two submodules for mode a and b (also according to the documentation[https://cellsnp-lite.readthedocs.io/en/latest/main/manual.html]) to control the input type. Both Mode 1a and mode 2a requie only a single bam file. hope this will make the structure more clear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very nice.
I have a question though, the docs talk about 4 modes, calling them Mode1a, Mode1b, Mode2a, Mode2b. Which is this? Should it be e.g. mode1a rather than modea?
Oh, I see that you have indeed answered this in the comment above, so this is appropriate for either mode1a or mode2a. |
input[0] = [[ id: 'sample1'], | ||
file(params.modules_testdata_base_path + '/genomics/homo_sapiens/demultiplexing/chr21.bam', checkIfExists: true), | ||
SAMTOOLS_INDEX.out.bai.map{it[1]}, | ||
file(params.modules_testdata_base_path + /genomics/homo_sapiens/demultiplexing/donor_genotype_chr21.vcf', checkIfExists: true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file(params.modules_testdata_base_path + /genomics/homo_sapiens/demultiplexing/donor_genotype_chr21.vcf', checkIfExists: true), | |
file(params.modules_testdata_base_path + '/genomics/homo_sapiens/demultiplexing/donor_genotype_chr21.vcf', checkIfExists: true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for pointing out. I have just found the error LOL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SPPearce I tried your suggestion but didnt pass the tests due to the error Not a valid path value type: groovyx.gpars.dataflow.DataflowVariable (DataflowVariable(value=null))
. It seems like I was trying to add a channel to the input channel. So i go back to the previous version now
PR checklist
Related to #5072
Add cellsnp-lite.
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda