-
Notifications
You must be signed in to change notification settings - Fork 951
feat: samclip module #8999
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
base: master
Are you sure you want to change the base?
feat: samclip module #8999
Conversation
a8c551d to
5b0fa90
Compare
SPPearce
left a comment
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.
This tool only works on sam files and only outputs sam tools?
I think this should be piped in and out of samtools inside the module.
Potentially also samtools fixmate to fix paired end reads.
…Seqera container, update tests
SPPearce
left a comment
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.
Other things to consider:
- I think it would be good to add args to the samtools commands, which would allow for e.g. sorting ready for tools that require name-sorted or template-coordinate sorted, or filtering via that first samtools view.
- Do we want to support making cram files?
- Do we want to support index creation inside the final samtools sort?
…decompressed reference if made
SPPearce
left a comment
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.
Left comments for the versions.
Need to fix the meta as well.
| { assert process.success }, | ||
| { assert snapshot( | ||
| process.out, | ||
| process.out.versions.collect{ path(it).yaml } |
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.
| process.out.versions.collect{ path(it).yaml } |
Co-authored-by: Simon Pearce <[email protected]>
SPPearce
left a comment
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.
Thank you.
modules/nf-core/samclip/main.nf
Outdated
| if [ "${is_compressed}" = "true" ]; then | ||
| rm -f ${ref_filename} | ||
| fi | ||
|
|
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.
This PR adds a new module,
samclip, and corresponding tests.samclipis used to filter SAM files for soft and hard clipped alignments. Test data is derived from nf-coretest-datasets.PR checklist
Closes #8342
versions.ymlfile.labelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda