-
Notifications
You must be signed in to change notification settings - Fork 9
fixing prefixing issue #21
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
Conversation
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 don't think this solution will ensure that the bam and vcf files for a sample are input to hiphase together, however you can use the multiMap operator to achieve this.
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 change log?
|
@fellen31 my solution should preserve the same order as join joins on meta. @maxulysse I will add the add to the change log! |
Yes, but after the join, what keeps |
|
Okay - I switched to using multiMap and updated the CHANGELOG (including changes from a previous PR where I did not update the changelog - #19 . Thanks!! |
| //join the bam and bai and vcf based off the meta id (ensure correct order) | ||
| bam_bai_vcf_ch = bam_bai_ch.join(BAM_SV_VARIANT_CALLING.out.vcf_ch) | ||
|
|
||
| bam_bai_vcf_ch | ||
| .multiMap { meta, bam, bai, vcf, tbi -> | ||
| bam_bai: [meta, bam, bai] | ||
| vcf_tbi: [meta, vcf, tbi] | ||
| } | ||
| .set { orderd_bam_bai_vcf_tbi } | ||
|
|
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 would be a bit careful naming the channels containing SNPs and SVs the same.
Perhaps you could for example have bam_bai_vcf_snp_ch and bam_bai_vcf_sv_ch etc. so that someone not as familiar with the code can more easily distinguish them?
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.
Have modified according to your suggestion!
Co-authored-by: Felix Lenner <[email protected]>
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.
Nice!
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).This PR should just ensure that for Hiphase, the VCF and BAM and BAI channels are correctly ordered such that the orders correspond to the same file prefix