forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/nf-core/modules
- Loading branch information
Showing
84 changed files
with
1,936 additions
and
300 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
process BLAST_BLASTP { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "bioconda::blast=2.14.1" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/blast:2.14.1--pl5321h6f7f691_0': | ||
'biocontainers/blast:2.14.1--pl5321h6f7f691_0' }" | ||
|
||
input: | ||
tuple val(meta), path(fasta) | ||
path(db) | ||
|
||
output: | ||
tuple val(meta), path("*.csv"), emit: csv | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def is_compressed = fasta.name.endsWith(".gz") | ||
def fasta_name = fasta.name.replace(".gz", "") | ||
""" | ||
if [ "$is_compressed" == "true" ]; then | ||
gzip -c -d $fasta > $fasta_name | ||
fi | ||
DB=`find -L ./ -name "*.phr" | sed 's/\\.phr\$//'` | ||
blastp \\ | ||
-db \$DB \\ | ||
-query ${fasta_name} \\ | ||
-out ${prefix}.csv \\ | ||
-num_threads ${task.cpus} \\ | ||
-outfmt 10 \\ | ||
$args | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
blast: \$(blastp -version 2>&1 | sed 's/^.*blastp: //; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch ${prefix}.csv | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
blast: \$(blastp -version 2>&1 | sed 's/^.*blastp: //; s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
} |
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,52 @@ | ||
--- | ||
name: "blast_blastp" | ||
description: BLASTP (Basic Local Alignment Search Tool- Protein) compares an amino acid (protein) query sequence against a protein database | ||
keywords: | ||
- fasta | ||
- blast | ||
- blastp | ||
- protein | ||
tools: | ||
- "blast": | ||
description: "BLAST+ is a new suite of BLAST tools that utilizes the NCBI C++ Toolkit." | ||
homepage: "https://blast.ncbi.nlm.nih.gov/Blast.cgi" | ||
documentation: "https://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&PAGE_TYPE=Blastdocs" | ||
doi: "10.1016/S0022-2836(05)80360-2" | ||
licence: "['US-Government-Work']" | ||
|
||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. `[ id:'test', single_end:false ]` | ||
- fasta: | ||
type: file | ||
description: Input fasta file containing queries sequences | ||
pattern: "*.{fa,fasta}" | ||
|
||
- db: | ||
type: directory | ||
description: Directory containing blast database | ||
pattern: "*" | ||
|
||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. `[ id:'test', single_end:false ]` | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
|
||
- csv: | ||
type: file | ||
description: File containing blastp hits | ||
pattern: "*.csv" | ||
|
||
authors: | ||
- "@vagkaratzas" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,4 @@ output: | |
authors: | ||
- "@joseespinosa" | ||
- "@drpatelh" | ||
- "@vagkaratzas" |
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
Oops, something went wrong.