-
Notifications
You must be signed in to change notification settings - Fork 749
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
Add CRAM and BAM support to last/mafconvert
#7391
Conversation
The target genome file is needed to create the CRAM file, therefore I added one input channel to the module. I also re-output the genome file in the `cram` output channel, because it is the only way I found to access it during tests. By the way, the module will fail if the genome file is encrypted with formats that are not BGZF.
tuple val(meta), path("*.cram"), path(fasta), optional:true, emit: cram | ||
path("*.fai"), optional:true, emit: fai |
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.
tuple val(meta), path("*.cram"), path(fasta), optional:true, emit: cram | |
path("*.fai"), optional:true, emit: fai | |
tuple val(meta), path("*.cram"), optional:true, emit: cram |
fasta
is an input file so shouldn't be in the output section,
fai
should also be an input file :)
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.
At the moment I need path(fasta)
in the cram
output channel because I did not find another way to access that file during the tests. Can you help me to solve that problem?
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 posted some comments, can you update those? Looking very good though!
@nvnieuwk ping :) |
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.
One more suggestion 😉
Co-authored-by: Nicolas Vannieuwkerke <[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.
LGTM when tests pass
last/*
modulesmaf-convert
supports SAM but not CRAM.samtools
to the container of this module, I allow the module to pipe the SAM output insamtools
and convert it to CRAM.PR checklist
Closes #XXX
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda