Skip to content

Migrate STARFUSION_DETECT local module #8813

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

Merged
merged 17 commits into from
Aug 8, 2025

Conversation

delfiterradas
Copy link
Contributor

@delfiterradas delfiterradas commented Jul 24, 2025

PR checklist

Closes nf-core/rnafusion#696

  • 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

@delfiterradas delfiterradas self-assigned this Jul 24, 2025
@delfiterradas delfiterradas added the new module Adding a new module label Jul 24, 2025
@delfiterradas delfiterradas marked this pull request as ready for review July 24, 2025 13:24
@delfiterradas delfiterradas enabled auto-merge July 25, 2025 16:15
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 we test single end data?
How big are the input data files that are being downloaded other locations?

@delfiterradas
Copy link
Contributor Author

Can we test single end data? How big are the input data files that are being downloaded other locations?

@SPPearce yes! I have added a new test for single end data. Right now the tests are using reads from the STAR-Fusion repository but I will update it when the data is available on nf-core (nf-core/test-datasets#1693).

Regarding the files that are downloaded with the STARFUSION_BUILD module, most of them are quite large (around 300 MB). The AnnotFilterRule.pm script is 4 KB so that one could be added if necessary.

@delfiterradas delfiterradas requested a review from SPPearce August 5, 2025 17:34
@delfiterradas
Copy link
Contributor Author

@SPPearce should be ready for another review now 👍

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.

Just a few minor formatting changes.

script:
def prefix = task.ext.prefix ?: "${meta.id}.starfusion"
def fastq_arg = reads ? (meta.single_end ? "--left_fq ${reads[0]}" : "--left_fq ${reads[0]} --right_fq ${reads[1]}") : ""
def junction_arg = junction ? "-J ${junction}" : ""
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
def junction_arg = junction ? "-J ${junction}" : ""
def junction_arg = junction ? "-J ${junction}" : ""

tag "$meta.id"
label 'process_high'

conda "${moduleDir}/environment.yml"
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
conda "${moduleDir}/environment.yml"
// WARN: Incorrect version information provided by tool on CLI. Please update version string below when bumping container versions.
conda "${moduleDir}/environment.yml"

Comment on lines +6 to +10
tag "modules_nfcore"
tag "starfusion/build"
tag "starfusion"
tag "starfusion/detect"
tag "modules"
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
tag "modules_nfcore"
tag "starfusion/build"
tag "starfusion"
tag "starfusion/detect"
tag "modules"
tag "modules"
tag "modules_nfcore"
tag "starfusion"
tag "starfusion/build"
tag "starfusion/detect"

@delfiterradas delfiterradas added this pull request to the merge queue Aug 8, 2025
Merged via the queue into nf-core:master with commit 310a7a5 Aug 8, 2025
56 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate local STARFUSION_DETECT to nf-core/modules
3 participants