-
Notifications
You must be signed in to change notification settings - Fork 928
Added module samtools/samples #9311
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?
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.
Nice addiiton, some minor comments
| def headers = '' | ||
| if (args.contains('-h\\n')) { | ||
| headers = "#SM\tPATH" | ||
| if (args.contains('-i')) { | ||
| headers += "\tINDEX" | ||
| } | ||
| if (fasta) { | ||
| headers += "\tREFERENCE" | ||
| } | ||
| } |
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.
Why have this logic in here and not just add them all by default?
Also if it gets parsed by nextflow, no samples will be there as well so no other processes will be started afterwards.
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 guess if we remove all this logic, it might be better to just write an empty file. Otherwise the header messes with downstream tools which do not expect one.
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.
Fine for me!
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.
Generally we just make empty files. I guess it might be important here for workflow logic downstream though, as @Schmytzi says, so I'm happy to include this here.
PR checklist
Closes #9306
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