Add varnet (https://github.com/skandlab/VarNet)#11787
Conversation
| cat <<-END_VERSIONS > \$WORKDIR/versions.yml | ||
| "${task.process}": | ||
| varnet: 1.5.0 | ||
| END_VERSIONS |
There was a problem hiding this comment.
please switch to topics.
cf https://nf-co.re/blog/2025/version_topics for example
| vcf_tbi: | ||
| - - meta: | ||
| type: map | ||
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'sample1', single_end:false ]` | ||
| - ${prefix}/${prefix}.vcf.gz.tbi: {} |
There was a problem hiding this comment.
I feel like we're missing this in the main.nf
No tbi are being emitted out
|
@maxulysse I have updated the pull request. Thank you |
The snapshots need to be updated too. They appear empty at the moment |
@maxulysse Pull requested updated. Thank you |
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
| TF_CPP_MIN_LOG_LEVEL=3 python /VarNet/filter.py \\ | ||
| --sample_name ${prefix} \\ | ||
| ${normal} \\ | ||
| --tumor_bam \$WORKDIR/${input_tumor} \\ |
There was a problem hiding this comment.
Does this really need to use WORKDIR for everything? Given it is your tool, could you patch it to respect the current working directory?
There was a problem hiding this comment.
I modified this because the test input files were using relative paths based on $WORKDIR instead of absolute paths, which was causing the tests to fail. Prepending $WORKDIR was a quick fix to make those paths valid so the tests could run.
| tag "$meta.id" | ||
| label 'process_high_memory' | ||
|
|
||
| container "docker.io/kiranchari/varnet:latest" |
There was a problem hiding this comment.
Is there a plan to put it on bioconda?
There was a problem hiding this comment.
Note that a nf-core recommendation describes this: https://nf-co.re/docs/specifications/pipelines/recommendations/bioconda
We do make some exceptions for this but usually only for things like licensing issues etc. We have a #bioconda channel on slack with a bunch of experts around to help :)
There was a problem hiding this comment.
My institution requires VarNet to use a PolyForm Noncommercial License 1.0.0, which prevents adding it to bioconda. Please let me know if my understanding is incorrect.
There was a problem hiding this comment.
Never heard of that one before.
From what I can tell, it allows for redistribution, which I think would mean it is compatible with bioconda. But I'm not a bioconda expert.
|
Please join the nf-core organization on GitHub to enable the CI-tests to run on your PR. You can request to join the organization via #github-invitations in the nf-core slack. You can join the nf-core slack via https://nf-co.re/join. |
Done! |
|
|
||
| WORKDIR=\$(pwd) | ||
|
|
||
| cd /VarNet |
There was a problem hiding this comment.
Why are you changing the directory to here? Hence you obviously need the WORKDIR.
There was a problem hiding this comment.
At the moment, my scripts rely on being in the /VarNet working directory. The test input files were using relative paths based on $WORKDIR instead of absolute paths, which was causing the tests to fail. Prepending $WORKDIR was a quick fix to make those paths valid so the tests could run.
There was a problem hiding this comment.
To be honest with you, it sounds like you need to update your tool to make it functional.
There was a problem hiding this comment.
To elaborate a little: a key feature of Nextflow is that execution of each task is encapsulated within its work directory. That way, different tasks do not affect one another and the execution becomes much safer and more reproducible.
Moving outside of the work directory violates this, and also means the pipeline is much less likely to work in diverse compute environments. eg. You typically cannot make root directories like this if you're running on a HPC using conda.
PR checklist
Closes #XXX
topic: versions- See version_topicsnf-core modules test <MODULE> --profile docker