-
Notifications
You must be signed in to change notification settings - Fork 750
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
New module: SKA/DISTANCE #7437
base: master
Are you sure you want to change the base?
New module: SKA/DISTANCE #7437
Conversation
Co-authored-by: Jose Espinosa-Carrasco <[email protected]>
Co-authored-by: Jose Espinosa-Carrasco <[email protected]>
Co-authored-by: Jose Espinosa-Carrasco <[email protected]>
Co-authored-by: Jose Espinosa-Carrasco <[email protected]>
Co-authored-by: Jose Espinosa-Carrasco <[email protected]>
Co-authored-by: Sateesh_Peri <[email protected]>
Co-authored-by: Sateesh_Peri <[email protected]>
Co-authored-by: Sateesh_Peri <[email protected]>
Co-authored-by: Sateesh_Peri <[email protected]>
Co-authored-by: Sateesh_Peri <[email protected]>
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.
What exactly is the difference between the test with and without list? Would the list contain the URLs then? We could probably chain a setup with wget / curl to get local files?
modules/nf-core/ska/distance/main.nf
Outdated
""" | ||
touch ${prefix}.distances.tsv | ||
touch ${prefix}.clusters.tsv | ||
touch ${prefix}.cluster.1.txt |
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.
Can you adjust this stub test to produce a different number of cluster.*.txt files based on the args or the input?
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.
The number of clusters is not determinable from the size of the input, but I can assume every input file is a separate cluster
modules/nf-core/ska/distance/main.nf
Outdated
stub: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch ${prefix}.distances.tsv | ||
touch ${prefix}.clusters.tsv | ||
touch ${prefix}.cluster.1.txt | ||
touch ${prefix}.dot |
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.
More general: Can the stub be modified so that only the files are produced that are to be expected upon a specific input (because you marked the outputs as optional)?
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Co-authored-by: Famke Bäuerle <[email protected]>
Implementing the list test took way too long, but it works now. I hope I haven't added too many evil lines. |
PR checklist
Add SKA/DISTANCE module
There is no non-stub test for the list input because SKA cannot handle URLs in the list
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