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 txp2gene retrieval bug when salmon_index is supplied #202

Merged
merged 5 commits into from Mar 5, 2023
Merged

fix txp2gene retrieval bug when salmon_index is supplied #202

merged 5 commits into from Mar 5, 2023

Conversation

azedinez
Copy link
Contributor

@azedinez azedinez commented Mar 1, 2023

txp2gene is generated as part of the salmon indexing, but if an index is supplied, the file must be supplied manually

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/scrnaseq 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>).
  • 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).

txp2gene is generated as part of the salmon indexing, but if an index is supplied, the file must be supplied manually
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

nf-core lint overall result: Passed ✅

Posted for pipeline commit 73cb4b5

+| ✅ 158 tests passed       |+

✅ Tests passed:

Run details

  • nf-core/tools version 2.7.2
  • Run at 2023-03-01 17:56:02

@@ -31,9 +31,9 @@ workflow SCRNASEQ_ALEVIN {
"""Must provide a genome fasta file ('--fasta') and a gtf file ('--gtf'), or a genome fasta file
and a transcriptome fasta file ('--transcript_fasta`) if no index is given!""".stripIndent()

if (transcript_fasta) {
if (transcript_fasta || salmon_index) {
Copy link
Member

Choose a reason for hiding this comment

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

Actually, maybe it would be neater if this whole conditional was deleted, and this was just part of the assertions above?

assert (salmon_index && txp2gene) || (genome_fasta && gtf) || (genome_fasta && transcript_fasta && txp2gene):
        """Must provide a genome fasta file ('--fasta') and a gtf file ('--gtf'), or a genome fasta file
        and a transcriptome fasta file ('--transcript_fasta`) if no index and txp2gene is given!""".stripIndent()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree! Done.

merging the conditional with the assertion on line 30
@grst grst merged commit a421066 into nf-core:dev Mar 5, 2023
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.

None yet

4 participants