Skip to content

Conversation

@lucaspatel
Copy link

PR checklist

Closes #9653

This PR adds ViralConsensus as an nf-core/module.

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • 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:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

Comment on lines +28 to +29
def pos_counts_arg = task.ext.save_pos_counts ? "-op ${prefix}.pos_counts.tsv" : ''
def ins_counts_arg = task.ext.save_ins_counts ? "-oi ${prefix}.ins_counts.json" : ''
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't like adding new task.ext values. Can these be optional inputs instead please.

Copy link
Contributor

@SPPearce SPPearce left a comment

Choose a reason for hiding this comment

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

Can you take a look at:
https://nf-co.re/docs/guidelines/components/modules#configuration-of-extargs-in-tests
and configure the ext.args that way please.
Or if they are all the same after you change the ext., then I guess just have the one nextflow.config

{ assert snapshot(
process.out.fasta,
process.out.versions_viralconsensus
).match("basic") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
).match("basic") }
).match() }

{ assert snapshot(
process.out.fasta,
process.out.versions_viralconsensus
).match("primer") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
).match("primer") }
).match() }

{ assert process.out.fasta },
{ assert process.out.pos_counts },
{ assert process.out.ins_counts },
{ assert snapshot(process.out.versions_viralconsensus).match("optional_versions") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{ assert snapshot(process.out.versions_viralconsensus).match("optional_versions") }
{ assert snapshot(process.out.versions_viralconsensus).match() }

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match("stub") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{ assert snapshot(process.out).match("stub") }
{ assert snapshot(process.out).match() }

Comment on lines +84 to +87
{ assert process.out.fasta },
{ assert process.out.pos_counts },
{ assert process.out.ins_counts },
{ assert snapshot(process.out.versions_viralconsensus).match("optional_versions") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Are none of these files stable and able to be put into the snapshot?

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.

new module: ViralConsensus

2 participants