-
Notifications
You must be signed in to change notification settings - Fork 417
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
Getting mapped bam and bai published in the same folder #1541
Conversation
…a.size * meta.num_lanes is one
|
Changelog? |
@maxulysse : Sure, but what about adding a pytest covering this bug, so that we don't reintroduce the bug later? |
@maxulysse : I ran
where we - as expected - get
|
reads_for_alignment = reads_for_alignment.map{ meta, reads -> | ||
// Update meta.id to meta.sample no multiple lanes or splitted fastqs | ||
if (meta.size * meta.num_lanes == 1) [ meta + [ id:meta.sample ], reads ] | ||
else [ meta, reads ] | ||
} | ||
|
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.
can this not be moved up to the previous mapping statement?
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.
Not sure what you mean, but you're welcome to move stuff around.
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.
Never mind, the other is Adam's cool grouping logic. One more concern from my side, below there is the joining between the reads_grouping_key
and reads_alignment
meta's. Is this working for both splitting and unsplitting and across several lanes?
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.
No idea 😬
You mean these combine-statements:
I just hope we have CI-tests covering all this intricate stuff 🤞
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.
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.
How about we merge as is for now, and we'll take care of beautifying it when we refactor?
Issue #1540
QUESTION : Should I add a pytest covering this bug? (It should be super easy to add such a test using the below-mentioned ntest-cmd.)
The following test works on this PR:
and gives
I also tried fixing the problem by setting
https://github.com/nf-core/sarek/blob/b5b766d3b4ac89864f2fa07441cdc8844e70a79e/conf/modules/aligner.config#L52C21-L52C52
to
) { "mapped/${meta.sample}/${it}" }
, but then I gotthat is, the above-mentioned test gave:
I suggest that we add the above-mentioned test as a pytest.
PR checklist
nf-core lint
).nf-test test tests/ --verbose --profile +docker
).nextflow run . -profile debug,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).