Skip to content
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 : Pilon #3331

Merged
merged 7 commits into from
May 2, 2023
Merged

New module : Pilon #3331

merged 7 commits into from
May 2, 2023

Conversation

scorreard
Copy link
Contributor

PR checklist

Closes #831

  • This comment contains a description of changes (with reason).
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • 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:
    • PROFILE=docker pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=singularity pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
    • PROFILE=conda pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware

@scorreard scorreard requested a review from d4straub April 25, 2023 21:54
@scorreard scorreard self-assigned this Apr 25, 2023
@scorreard scorreard added new module Adding a new module WIP Work in progress labels Apr 25, 2023
Copy link
Contributor

@d4straub d4straub left a comment

Choose a reason for hiding this comment

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

Looks good!
Formatting fails and I have a few suggestions, but fine overall I think.

modules/nf-core/pilon/main.nf Outdated Show resolved Hide resolved
modules/nf-core/pilon/main.nf Outdated Show resolved Hide resolved
tests/modules/nf-core/pilon/test.yml Show resolved Hide resolved
tests/modules/nf-core/pilon/main.nf Outdated Show resolved Hide resolved
Comment on lines +11 to +12
tuple val(meta), path(fasta)
tuple val(meta_bam), path(bam), path(bai)
Copy link
Contributor

Choose a reason for hiding this comment

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

Because fasta, bam and bai have to come all from the same sample, would it be rather:

Suggested change
tuple val(meta), path(fasta)
tuple val(meta_bam), path(bam), path(bai)
tuple val(meta), path(fasta), path(bam), path(bai)

I am not sure, thats just a question because I do not know better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is an interesting suggestion. Both would work.
I prefer to have them split, and it works if meta and meta_bam are the same.
In the case of purge_dups, they concatenated all the inputs and I had to split them because sometimes my meta reflects the input sequencing type (SR, PacBio, ONT), not only the sample name.

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to have them split, and it works if meta and meta_bam are the same.

Hm ok, I would prefer having them not split. Because I think the typical application is that before the module is some channel magic that joins the required input (genome = fasta, alignment = bam & bai) to have matching files by ensuring that meta is matching.

In the case of purge_dups, they concatenated all the inputs and I had to split them because sometimes my meta reflects the input sequencing type (SR, PacBio, ONT), not only the sample name.

That seems to me rather the exception than the usual module output. But I might be wrong.

Unfortunately the nf-core modules guidelines do not specify this clearly, see https://nf-co.re/developers/modules#inputoutput-options, i.e. Directly associated auxiliary files to an input file MAY be defined within the same input channel alongside the main input channel (e.g. BAM and BAI)., so it seems I shouldn't insist on it!

Comment on lines +11 to +12
tuple val(meta), path(fasta)
tuple val(meta_bam), path(bam), path(bai)
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to have them split, and it works if meta and meta_bam are the same.

Hm ok, I would prefer having them not split. Because I think the typical application is that before the module is some channel magic that joins the required input (genome = fasta, alignment = bam & bai) to have matching files by ensuring that meta is matching.

In the case of purge_dups, they concatenated all the inputs and I had to split them because sometimes my meta reflects the input sequencing type (SR, PacBio, ONT), not only the sample name.

That seems to me rather the exception than the usual module output. But I might be wrong.

Unfortunately the nf-core modules guidelines do not specify this clearly, see https://nf-co.re/developers/modules#inputoutput-options, i.e. Directly associated auxiliary files to an input file MAY be defined within the same input channel alongside the main input channel (e.g. BAM and BAI)., so it seems I shouldn't insist on it!

@scorreard scorreard added this pull request to the merge queue May 2, 2023
@scorreard scorreard removed the WIP Work in progress label May 2, 2023
Merged via the queue into nf-core:master with commit b37a64d May 2, 2023
@scorreard scorreard deleted the newmodule_pilon branch May 2, 2023 17:45
jvfe added a commit to jvfe/modules that referenced this pull request May 2, 2023
* master:
  New module : Pilon (nf-core#3331)
  Islandpath (nf-core#3145)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new module Adding a new module
Development

Successfully merging this pull request may close these issues.

new module: pilon
2 participants