Skip to content

Add varnet (https://github.com/skandlab/VarNet)#11787

Open
kiranchari wants to merge 15 commits into
nf-core:masterfrom
kiranchari:add-varnet
Open

Add varnet (https://github.com/skandlab/VarNet)#11787
kiranchari wants to merge 15 commits into
nf-core:masterfrom
kiranchari:add-varnet

Conversation

@kiranchari
Copy link
Copy Markdown

PR checklist

Closes #XXX

  • [add varnet somatic variant caller] This comment contains a description of changes (with reason).
  • [yes] If you've added a new tool - have you followed the module conventions in the contribution docs
  • [tests passed] If necessary, include test data in your PR.
  • [done] Remove all TODO statements.
  • [yes] Broadcast software version numbers to topic: versions - See version_topics
  • [yes] Follow the naming conventions.
  • [yes] Follow the parameters requirements.
  • [yes] Follow the input/output options guidelines.
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • [done] nf-core modules test <MODULE> --profile docker

Comment thread modules/nf-core/varnet/main.nf Outdated
Comment on lines +50 to +53
cat <<-END_VERSIONS > \$WORKDIR/versions.yml
"${task.process}":
varnet: 1.5.0
END_VERSIONS
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please switch to topics.
cf https://nf-co.re/blog/2025/version_topics for example

Comment thread modules/nf-core/varnet/meta.yml Outdated
Comment on lines +82 to +88
vcf_tbi:
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- ${prefix}/${prefix}.vcf.gz.tbi: {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we're missing this in the main.nf

No tbi are being emitted out

@kiranchari
Copy link
Copy Markdown
Author

@maxulysse I have updated the pull request. Thank you

@maxulysse
Copy link
Copy Markdown
Member

@maxulysse I have updated the pull request. Thank you

The snapshots need to be updated too. They appear empty at the moment

@kiranchari
Copy link
Copy Markdown
Author

@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

Comment thread modules/nf-core/varnet/tests/main.nf.test Outdated
Comment thread modules/nf-core/varnet/tests/main.nf.test Outdated
Comment thread modules/nf-core/varnet/tests/nextflow.config
Comment thread modules/nf-core/varnet/main.nf Outdated
Comment thread modules/nf-core/varnet/main.nf
kiranchari and others added 4 commits June 3, 2026 20:11
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} \\
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really need to use WORKDIR for everything? Given it is your tool, could you patch it to respect the current working directory?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a plan to put it on bioconda?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at the moment!

Comment thread modules/nf-core/varnet/main.nf Outdated
container "docker.io/kiranchari/varnet:latest"

input:
tuple val(meta), path(input_normal), path(index_normal), path(input_tumor), path(index_tumor), path(intervals)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tumour before normal I think makes more sense, especially as the normal is not required.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in recent commit

Comment thread modules/nf-core/varnet/main.nf Outdated

output:
tuple val(meta), path("${prefix}/${prefix}.vcf.gz"), emit: vcf
tuple val("${task.process}"), val("varnet"), val("1.5.0"), emit: versions_varnet, topic: versions
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs the comments saying that the version is not avaialble within the container (again, if your tool, please add a way to get this)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the updated pull request. The version is now fetched from the container.

@famosab
Copy link
Copy Markdown
Contributor

famosab commented Jun 8, 2026

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.

@kiranchari
Copy link
Copy Markdown
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants