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

small refactor + adding intervals #34

Merged
merged 6 commits into from
Nov 26, 2024

Conversation

maxulysse
Copy link
Member

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 pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/references branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@maxulysse maxulysse changed the title small refactor small refactor + adding intervals Nov 22, 2024
@maxulysse maxulysse marked this pull request as ready for review November 26, 2024 13:35
assets/schema_input.json Show resolved Hide resolved
tests/rnaseq.nf.test Show resolved Hide resolved
versions = versions.mix(GATK4_CREATESEQUENCEDICTIONARY.out.versions)
}
// the whole map -> null should be removed once I managed to make it work properly
BWAMEM1_INDEX(

Choose a reason for hiding this comment

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

This is a really nice way to skip the repeated if statement.
On the other hand this will pollute the output nextflow log with empty processes...
Is it okay for you ?

Copy link
Member Author

Choose a reason for hiding this comment

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

that's fine for now, I'll deal with this later if it's really an issue, but for now, I just want a code that is cleaner to read

Choose a reason for hiding this comment

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

In phaseimpute we also have this issue with branching event, but nothing can be done.


if (tools && tools.split(',').contains('gffread')) {
if (tools.contains('gffread')) {
GFFREAD(input.gff, [])

Choose a reason for hiding this comment

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

Why didn't you continue with the simplification of the if statements ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just testing it out on some processes, I didn't want to modify everything in one go as I just wanted to tackle intervals on this PR.

Choose a reason for hiding this comment

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

That does make sense.
Could you open an issue in this case in the repository to have a follow up for standardization ?

assets/schema_input.json Outdated Show resolved Hide resolved
Copy link

@LouisLeNezet LouisLeNezet left a comment

Choose a reason for hiding this comment

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

LGTM

@maxulysse maxulysse merged commit 5cfbd62 into nf-core:dev Nov 26, 2024
15 checks passed
@maxulysse maxulysse deleted the back_to_sarek_intervals branch November 26, 2024 14:51
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