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
Conversation
txp2gene is generated as part of the salmon indexing, but if an index is supplied, the file must be supplied manually
|
subworkflows/local/alevin.nf
Outdated
@@ -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) { |
There was a problem hiding this comment.
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()
There was a problem hiding this comment.
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
txp2gene is generated as part of the salmon indexing, but if an index is supplied, the file must be supplied manually
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).