-
Notifications
You must be signed in to change notification settings - Fork 735
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
Update Prokka to take compressed input && tidy module script #7250
base: master
Are you sure you want to change the base?
Conversation
Undoing container build bump - there's some kind of java version error with minced that I'm getting when running with Singularity on our HPC (but not on Gitpod). See tseemann/prokka#557 for details - bumped container image has a version of java that's too new: Original image:
Bumped image:
|
The minced binary is built with Java version 8 - I've switched the container to a Sequera container with the correct OpenJDK version pinned, and updated the Conda environment to match. Testing seems to have fixed the problem on our cluster; hopefully will fix this intermittently reported issue in mag too: nf-core/mag#552 |
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.
Hi Jim,
Supporting gzipped input is a nice adittion to have. And thank you for looking into the issues when running Prokka, because sometimes becomes mysteriously unreliable for some reason.
Aside from the minor changes I proposed, if you have time, can you please add the stub and the stub test?
Thank you.
label 'process_low' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/prokka:1.14.6--pl5321hdfd78af_4' : | ||
'biocontainers/prokka:1.14.6--pl5321hdfd78af_4' }" | ||
'oras://community.wave.seqera.io/library/prokka_openjdk:6ee087933c41335a' : |
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.
For singularity images, I've seen in the discussions that is prefered to use the https link instead of the oras one.
def prodigal_tf = prodigal_tf ? "--prodigaltf ${prodigal_tf[0]}" : "" | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def fasta_compressed = fasta.getExtension() == "gz" ? true : false |
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.
? true : false
seems redundant. Was there a specific reason for implementing it this way?
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def fasta_compressed = fasta.getExtension() == "gz" ? true : false | ||
def input = fasta_compressed ? fasta.toString() - ~/\.gz$/ : fasta |
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 the input declaration could be simplified too, because if the filename doesn't end with .gz
the pattern should not remove anything anyway.
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