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

Optional filtering of the alignments input to last/dotplot. #7429

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

charles-plessy
Copy link
Contributor

@charles-plessy charles-plessy commented Feb 4, 2025

This uses the maf-filter tool distributed together with last-dotplot in the LAST suite.

The genome alignments that are plotted can be very large, even after the filtering step. Therefore I implemented it with a pipe command rather than creating a separate module, which would consume a lot of disk space.

PR checklist

  • 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.
  • 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:
    • 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

This uses the `maf-filter` tool distributed together with `last-dotplot`
in the LAST suite.

The genome alignments that are plotted can be very large, even after the
filtering step.  Therefore I implemented it with a pipe command rather
than creating a separate module, which would consume a lot of disk
space.
Copy link
Contributor

@kubranarci kubranarci left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -22,18 +23,21 @@ process LAST_DOTPLOT {

script:
def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: ''
Copy link
Contributor

Choose a reason for hiding this comment

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

why not to take all args in one? is there a specific reason?

Copy link
Contributor

Choose a reason for hiding this comment

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

okay saw it now :D

@charles-plessy charles-plessy added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit 83fb0b4 Feb 4, 2025
24 checks passed
@charles-plessy charles-plessy deleted the last_dotplot_filtered branch February 4, 2025 10:02
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.

2 participants