-
Notifications
You must be signed in to change notification settings - Fork 964
Fix fastANI module #9583
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?
Fix fastANI module #9583
Changes from all commits
cc1141a
8d54dba
fd58eb3
7269f2e
ae6a3c1
07024b8
b454c82
c0979e1
49bbc99
4162446
03ceb91
1b184c3
b2f8b66
cd935a6
e3fab37
bd45cca
b60c343
fe47276
b064fed
979d31f
86afed3
2c8c451
d9f4922
c1fb69a
7df07cd
75801b9
8c8f5fa
523e1dd
9d1c320
1c042d6
e28e09a
154f08b
349844e
d9023c5
43d6ed3
fe9795c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ channels: | |
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - bioconda::fastani=1.32 | ||
| - bioconda::fastani=1.34 | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,46 +4,43 @@ process FASTANI { | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| conda "${moduleDir}/environment.yml" | ||||||||||||||||||||||||||||||||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||||||||||||||||||||||||||||||||
| 'https://depot.galaxyproject.org/singularity/fastani:1.32--he1c1bb9_0' : | ||||||||||||||||||||||||||||||||
| 'biocontainers/fastani:1.32--he1c1bb9_0' }" | ||||||||||||||||||||||||||||||||
| 'https://depot.galaxyproject.org/singularity/fastani:1.34--hb66fcc3_7' : | ||||||||||||||||||||||||||||||||
| 'biocontainers/fastani:1.34--hb66fcc3_7' }" | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| input: | ||||||||||||||||||||||||||||||||
| tuple val(meta), path(query) | ||||||||||||||||||||||||||||||||
| path reference | ||||||||||||||||||||||||||||||||
| tuple val(meta), path(query) | ||||||||||||||||||||||||||||||||
| tuple val(meta2), path(reference) | ||||||||||||||||||||||||||||||||
| path(ql) | ||||||||||||||||||||||||||||||||
| path(rl) | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| output: | ||||||||||||||||||||||||||||||||
| tuple val(meta), path("*.ani.txt"), emit: ani | ||||||||||||||||||||||||||||||||
| path "versions.yml" , emit: versions | ||||||||||||||||||||||||||||||||
| tuple val(meta), path("*.txt") , emit: ani | ||||||||||||||||||||||||||||||||
| tuple val(meta), path("*.visual"), optional:true, emit: visual | ||||||||||||||||||||||||||||||||
| tuple val(meta), path("*.matrix"), optional:true, emit: matrix | ||||||||||||||||||||||||||||||||
| tuple val("${task.process}"), val("fastani"), eval('fastANI --version 2>&1 | head -1 | sed "s/version\\ //"'), topic: versions, emit: versions_fastani | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| when: | ||||||||||||||||||||||||||||||||
| task.ext.when == null || task.ext.when | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| script: | ||||||||||||||||||||||||||||||||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| if (meta.batch_input) { | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| fastANI \\ | ||||||||||||||||||||||||||||||||
| -ql $query \\ | ||||||||||||||||||||||||||||||||
| -rl $reference \\ | ||||||||||||||||||||||||||||||||
| -o ${prefix}.ani.txt | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| cat <<-END_VERSIONS > versions.yml | ||||||||||||||||||||||||||||||||
| "${task.process}": | ||||||||||||||||||||||||||||||||
| fastani: \$(fastANI --version 2>&1 | sed 's/version//;') | ||||||||||||||||||||||||||||||||
| END_VERSIONS | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| fastANI \\ | ||||||||||||||||||||||||||||||||
| -q $query \\ | ||||||||||||||||||||||||||||||||
| -r $reference \\ | ||||||||||||||||||||||||||||||||
| -o ${prefix}.ani.txt | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| cat <<-END_VERSIONS > versions.yml | ||||||||||||||||||||||||||||||||
| "${task.process}": | ||||||||||||||||||||||||||||||||
| fastani: \$(fastANI --version 2>&1 | sed 's/version//;') | ||||||||||||||||||||||||||||||||
| END_VERSIONS | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| def args = task.ext.args ?: '' | ||||||||||||||||||||||||||||||||
| def prefix = task.ext.prefix ?: ( meta.id ?: 'all' ) | ||||||||||||||||||||||||||||||||
| def prefix2 = task.ext.prefix2 ?: ( meta2.id ?: 'all' ) | ||||||||||||||||||||||||||||||||
| def input_query = query ? "-q ${query}": "--ql ${ql}" | ||||||||||||||||||||||||||||||||
Ethan-Hetrick marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||
| def input_reference = reference ? "-r ${reference}": "--rl ${rl}" | ||||||||||||||||||||||||||||||||
Ethan-Hetrick marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| fastANI \\ | ||||||||||||||||||||||||||||||||
| $input_query \\ | ||||||||||||||||||||||||||||||||
| $input_reference \\ | ||||||||||||||||||||||||||||||||
| --threads $task.cpus \\ | ||||||||||||||||||||||||||||||||
| -o ${prefix}.txt | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| stub: | ||||||||||||||||||||||||||||||||
| def prefix = task.ext.prefix ?: ( meta.id ?: 'all') | ||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| touch ${prefix}.visual | ||||||||||||||||||||||||||||||||
| touch ${prefix}.txt | ||||||||||||||||||||||||||||||||
| touch ${prefix}.matrix | ||||||||||||||||||||||||||||||||
|
Comment on lines
+39
to
+44
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,55 +1,119 @@ | ||||||
| name: fastani | ||||||
| description: Alignment-free computation of average nucleotide Identity (ANI) | ||||||
| description: Alignment-free computation of Average Nucleotide Identity (ANI) | ||||||
| keywords: | ||||||
| - genome | ||||||
| - fasta | ||||||
| - ANI | ||||||
| tools: | ||||||
| - fastani: | ||||||
| description: FastANI is developed for fast alignment-free computation of whole-genome | ||||||
| Average Nucleotide Identity (ANI). | ||||||
| description: FastANI is developed for fast alignment-free computation of | ||||||
| whole-genome Average Nucleotide Identity (ANI). | ||||||
| homepage: https://github.com/ParBLiSS/FastANI | ||||||
| documentation: https://github.com/ParBLiSS/FastANI | ||||||
| tool_dev_url: https://github.com/ParBLiSS/FastANI | ||||||
| doi: 10.1038/s41467-018-07641-9 | ||||||
| licence: ["Apache-2.0"] | ||||||
| licence: | ||||||
| - "Apache-2.0" | ||||||
| identifier: biotools:fastani | ||||||
| input: | ||||||
| - - meta: | ||||||
| type: map | ||||||
| description: | | ||||||
| Groovy Map containing sample information | ||||||
| e.g. [ id:'test', single_end:false ] | ||||||
| e.g. [ id:'test' ] | ||||||
| - query: | ||||||
| type: file | ||||||
| description: Fasta file(s) to be queried | ||||||
| pattern: "*.fasta" | ||||||
| ontologies: [] | ||||||
Ethan-Hetrick marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| - reference: | ||||||
| description: Fasta file to be used as the query. If provided, ql will be | ||||||
| ignored. | ||||||
| pattern: "*.{fasta,fna,fa}" | ||||||
| ontologies: | ||||||
| - edam: http://edamontology.org/format_1929 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - - meta2: | ||||||
| type: map | ||||||
| description: Groovy Map containing sample information for the reference | ||||||
| - reference: | ||||||
| type: file | ||||||
| description: Fasta file to be used as the reference. If provided, rl will | ||||||
| be ignored. | ||||||
| pattern: "*.{fasta,fna,fa}" | ||||||
| ontologies: | ||||||
| - edam: http://edamontology.org/format_1929 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - ql: | ||||||
| type: file | ||||||
| description: File containing a list of query fasta paths. query input takes | ||||||
| precedence over this list if both are provided. | ||||||
| pattern: "*.txt" | ||||||
| ontologies: | ||||||
| - edam: "http://edamontology.org/format_2330" | ||||||
| - rl: | ||||||
| type: file | ||||||
| description: Fasta file(s) to be used as reference for the query | ||||||
| pattern: "*.fasta" | ||||||
| ontologies: [] | ||||||
| description: File containing a list of reference fasta paths. reference | ||||||
| input takes precedence over this list if both are provided. | ||||||
| pattern: "*.txt" | ||||||
| ontologies: | ||||||
| - edam: "http://edamontology.org/format_2330" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| output: | ||||||
| ani: | ||||||
| - - meta: | ||||||
| type: map | ||||||
| description: | | ||||||
| Groovy Map containing sample information | ||||||
| e.g. [ id:'test', single_end:false ] | ||||||
| - "*.ani.txt": | ||||||
| e.g. [ id:'test' ] | ||||||
| - "*.txt": | ||||||
| type: file | ||||||
| description: Results of the query | ||||||
| pattern: "*.ani.txt" | ||||||
| ontologies: [] | ||||||
| description: ANI results file | ||||||
| pattern: "*.txt" | ||||||
| ontologies: | ||||||
| - edam: "http://edamontology.org/format_2330" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| visual: | ||||||
| - - meta: | ||||||
| type: map | ||||||
| description: | | ||||||
| Groovy Map containing sample information | ||||||
| e.g. [ id:'test' ] | ||||||
| - "*.visual": | ||||||
| type: file | ||||||
| optional: true | ||||||
| description: FastANI visualization output | ||||||
| pattern: "*.visual" | ||||||
| ontologies: | ||||||
| - edam: "http://edamontology.org/format_3475" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Is this a TSV? Make sure, because .visual can be misleading |
||||||
| matrix: | ||||||
| - - meta: | ||||||
| type: map | ||||||
| description: | | ||||||
| Groovy Map containing sample information | ||||||
| e.g. [ id:'test' ] | ||||||
| - "*.matrix": | ||||||
| type: file | ||||||
| optional: true | ||||||
| description: ANI matrix output | ||||||
| ontologies: | ||||||
| - edam: "http://edamontology.org/format_3033" | ||||||
| versions_fastani: | ||||||
| - - ${task.process}: | ||||||
| type: string | ||||||
| description: The name of the process | ||||||
| - fastani: | ||||||
| type: string | ||||||
| description: The name of the tool | ||||||
| - fastANI --version 2>&1 | head -1 | sed "s/version\ //": | ||||||
| type: eval | ||||||
| description: The expression to obtain the version of the tool | ||||||
| topics: | ||||||
| versions: | ||||||
| - versions.yml: | ||||||
| type: file | ||||||
| description: File containing software versions | ||||||
| pattern: "versions.yml" | ||||||
| ontologies: | ||||||
| - edam: http://edamontology.org/format_3750 # YAML | ||||||
| - - ${task.process}: | ||||||
| type: string | ||||||
| description: The name of the process | ||||||
| - fastani: | ||||||
| type: string | ||||||
| description: The name of the tool | ||||||
| - fastANI --version 2>&1 | head -1 | sed "s/version\ //": | ||||||
| type: eval | ||||||
| description: The expression to obtain the version of the tool | ||||||
| authors: | ||||||
| - "@abhi18av" | ||||||
| - "@Ethan-Hetrick" | ||||||
| maintainers: | ||||||
| - "@abhi18av" | ||||||
| - "@Ethan-Hetrick" | ||||||
Uh oh!
There was an error while loading. Please reload this page.