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

Multiple tweaks #13

Merged
merged 31 commits into from
May 6, 2024
Merged

Multiple tweaks #13

merged 31 commits into from
May 6, 2024

Conversation

itrujnara
Copy link
Collaborator

PR checklist

  • Multiple changes in this PR. See commit messages for details.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If necessary, also make a PR on the nf-core/reportho branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core 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.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link
Member

@JoseEspinosa JoseEspinosa left a comment

Choose a reason for hiding this comment

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

Awesome! 🚀
Only some small questions/suggestions

@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Written by Igor Trujnara, released under the MIT license
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this is needed in each single script since the repository already has the MIT license and your attribution could be found in the README

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The checklist mentions this, and I saw some pipelines (e.g. rnaseq) do this, so I put those notes there just in case

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough

bin/yml2csv.py Outdated Show resolved Hide resolved
TREATMENT_REP3,AEG588A6_S6_L003_R1_001.fastq.gz,
TREATMENT_REP3,AEG588A6_S6_L004_R1_001.fastq.gz,
id,query
BicD2,Q8TD16
Copy link
Member

Choose a reason for hiding this comment

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

Maybe show here that is also to provide a path to a FASTA file?

@@ -113,11 +113,11 @@
"help_text": "If `local_databases` is set to `true`, the pipeline will use this path to the PANTHER database.",
"fa_icon": "fas fa-database"
},
"use_inspector": {
"skip_inspector": {
Copy link
Member

Choose a reason for hiding this comment

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

I would rename it to --skip_orthoinspector

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed, along with other related params. I have not renamed the modules and channels, as they are not user-facing anyway and the names are already long enough. Let me know if this is fine.

ch_fasta = ch_seqinfo.map { [it[0], []] }

if(params.skip_downstream) {
ch_seqhits = ch_seqinfo.map { [it[0], []] }
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, probably I am missing something but why creating all these empty channels?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are there to ensure that the channels are populated even if the steps that normally generate them are skipped. If this is not done, the report module will not run with downstream analysis turned off, even partially. Is there a more nf-core-idiomatic way to achieve this?

itrujnara and others added 2 commits May 6, 2024 15:04
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Copy link
Member

@JoseEspinosa JoseEspinosa left a comment

Choose a reason for hiding this comment

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

Awesome! 🎸

@JoseEspinosa JoseEspinosa merged commit 61581ea into nf-core:dev May 6, 2024
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