-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Replace VIBRANT with PhiSpy (#116)
* feat: Add PhiSpy to annotation subworkflow * refactor: Remove VIBRANT from the workflow * chore: Patch phispy image * refactor: Add param to skip phispy * feat: Add some optional outputs to phispy * feat: Concatenate PhiSpy output * feat: Add PhiSpy info to report * fix: Change to correct phispy columns * fix: Change merge order for phispy * Revert "fix: Change merge order for phispy" This reverts commit 15993c7. * Revert "fix: Change to correct phispy columns" This reverts commit 336f5dd. * Revert "feat: Add PhiSpy info to report" This reverts commit 8c88c73. * docs: Fix integron finder name in yml
- Loading branch information
Showing
18 changed files
with
263 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
process PHISPY { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "bioconda::phispy=4.2.21" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/phispy:4.2.21--py310h30d9df9_1': | ||
'quay.io/biocontainers/phispy:4.2.21--py310h30d9df9_1' }" | ||
|
||
input: | ||
tuple val(meta), path(gbk) | ||
|
||
output: | ||
tuple val(meta), path("${prefix}.tsv") , emit: coordinates | ||
tuple val(meta), path("${prefix}.gb*") , emit: gbk | ||
tuple val(meta), path("${prefix}.log") , emit: log | ||
tuple val(meta), path("${prefix}_prophage_information.tsv"), optional:true, emit: information | ||
tuple val(meta), path("${prefix}_bacteria.fasta") , optional:true, emit: bacteria_fasta | ||
tuple val(meta), path("${prefix}_bacteria.gbk") , optional:true, emit: bacteria_gbk | ||
tuple val(meta), path("${prefix}_phage.fasta") , optional:true, emit: phage_fasta | ||
tuple val(meta), path("${prefix}_phage.gbk") , optional:true, emit: phage_gbk | ||
tuple val(meta), path("${prefix}_prophage.gff3") , optional:true, emit: prophage_gff | ||
tuple val(meta), path("${prefix}_prophage.tbl") , optional:true, emit: prophage_tbl | ||
tuple val(meta), path("${prefix}_prophage.tsv") , optional:true, emit: prophage_tsv | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
// Extract GBK file extension, i.e. .gbff, .gbk.gz | ||
gbk_extension = gbk.getName() - gbk.getSimpleName() | ||
|
||
if ("$gbk" == "${prefix}${gbk_extension}") error "Input and output names are the same, set prefix in module configuration to disambiguate!" | ||
|
||
""" | ||
PhiSpy.py \\ | ||
$args \\ | ||
--threads $task.cpus \\ | ||
-p $prefix \\ | ||
-o . \\ | ||
$gbk | ||
mv ${prefix}_prophage_coordinates.tsv ${prefix}.tsv | ||
mv ${prefix}_${gbk} ${prefix}${gbk_extension} | ||
mv ${prefix}_phispy.log ${prefix}.log | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
PhiSpy: \$(echo \$(PhiSpy.py --version 2>&1)) | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
gbk_extension = gbk.getName() - gbk.getSimpleName() | ||
|
||
if ("$gbk" == "${prefix}${gbk_extension}") error "Input and output names are the same, set prefix in module configuration to disambiguate!" | ||
|
||
""" | ||
touch ${prefix}.tsv | ||
touch ${prefix}${gbk_extension} | ||
touch ${prefix}.log | ||
touch ${prefix}_prophage_information.tsv | ||
touch ${prefix}_bacteria.fasta | ||
touch ${prefix}_bacteria.gbk | ||
touch ${prefix}_phage.fasta | ||
touch ${prefix}_phage.gbk | ||
touch ${prefix}_prophage.gff3 | ||
touch ${prefix}_prophage.tbl | ||
touch ${prefix}_prophage.tsv | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
PhiSpy: \$(echo \$(PhiSpy.py --version 2>&1)) | ||
END_VERSIONS | ||
""" | ||
} |
Oops, something went wrong.