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

Fix #1018 #1037

Merged
merged 1 commit into from
May 31, 2023
Merged

Fix #1018 #1037

merged 1 commit into from
May 31, 2023

Conversation

drpatelh
Copy link
Member

Closes #1018

@github-actions
Copy link

github-actions bot commented May 31, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 5dececa

+| ✅ 150 tests passed       |+
#| ❔   5 tests were ignored |#
!| ❗   3 tests had warnings |!

❗ Test warnings:

  • files_exist - File not found: .github/workflows/awstest.yml
  • files_exist - File not found: .github/workflows/awsfulltest.yml
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: assets/email_template.html
  • files_unchanged - File ignored due to lint config: assets/email_template.txt
  • files_unchanged - File ignored due to lint config: lib/NfcoreSchema.groovy
  • files_unchanged - File ignored due to lint config: lib/NfcoreTemplate.groovy
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/rnaseq/rnaseq/.github/workflows/awstest.yml

✅ Tests passed:

Run details

  • nf-core/tools version 2.8
  • Run at 2023-05-31 14:24:54

@drpatelh drpatelh merged commit cd0a95b into nf-core:dev May 31, 2023
Copy link
Member

@MatthiasZepper MatthiasZepper left a comment

Choose a reason for hiding this comment

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

I think two of the if clauses should be rephrased slightly with AND conjunctions. !skip_peudoalignment seems a bit too lenient to me.

if (params.pseudo_aligner) { prepareToolIndices << params.pseudo_aligner }
if (!params.skip_bbsplit) { prepareToolIndices << 'bbsplit' }
if (!params.skip_alignment) { prepareToolIndices << params.aligner }
if (!params.skip_pseudo_alignment) { prepareToolIndices << params.pseudo_aligner }
Copy link
Member

Choose a reason for hiding this comment

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

I think you should have put params.pseudo_aligner && !params.skip_pseudo_alignment here, because params.pseudo_aligner is null by default?

So it will add null to prepareToolIndices most of the time. This may or may not cause issues, depending on how prepareToolIndices is used later, but I think it preferable to avoid that in the first place?

Copy link
Member Author

Choose a reason for hiding this comment

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

We are also doing parameter validation for --pseudo_aligner and --aligner via the Nextflow schema which should fail sooner before hitting this logic which is why I hadn't included it. But we can be explicit 👍🏽

Copy link
Member Author

Choose a reason for hiding this comment

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

Done 993fff6

Copy link
Member

Choose a reason for hiding this comment

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

We are also doing parameter validation for --pseudo_aligner and --aligner via the Nextflow schema which should fail sooner before hitting this logic which is why I hadn't included it. But we can be explicit 👍🏽

Admittedly, those peculiarities escaped me. I just assumed that !params.skip_pseudo_alignment will also evaluate to true when no pseudoalignment is performed at all (because the user performs a regular run with alignment).

lib/WorkflowRnaseq.groovy Show resolved Hide resolved
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.

3 participants