-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
144 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM antismash/standalone-lite-nonfree:7.1.0 | ||
|
||
#we override the base image's entrypoint for appropriate interaction with Nextflow | ||
ENTRYPOINT ["/usr/bin/env"] | ||
SHELL ["/bin/bash", "-c"] | ||
CMD /bin/bash |
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,29 @@ | ||
params { | ||
//defaults | ||
input = null //either contig file or gbk from annotation | ||
projName = "Project" | ||
outDir = "." | ||
numCPU=8 | ||
database = "$projectDir/../../database/antiSMASH" //path to downloaded database location (download-antismash-databases --database-dir <DBPATH>) | ||
//defaults | ||
taxon = 'bacteria' | ||
clusterblast = false | ||
subclusterblast = true | ||
knownclusterblast = true | ||
mibig = false | ||
smcogs = false | ||
pfam2go = false | ||
asf = true | ||
rre = true | ||
fullhmm = false | ||
tigrfam = false | ||
cassis = false //only with fungi | ||
} | ||
|
||
process.container="apwat/sma:0.14" | ||
singularity{ | ||
enabled=true | ||
runOptions="--compat -H $PWD --bind $projectDir/../../database/antiSMASH:$projectDir/../../database/antiSMASH" | ||
} | ||
|
||
cleanup=true |
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,55 @@ | ||
|
||
//runs ANTISMASH on provided .fa or .gbk input. | ||
process antismash { | ||
publishDir( | ||
path: "$params.outDir/AssemblyBasedAnalysis/AntiSmash", | ||
mode: 'copy' | ||
) | ||
|
||
input: | ||
path input | ||
|
||
output: | ||
path "output/*" | ||
path "antismashLog.txt" | ||
|
||
script: | ||
def taxon = params.taxon.equalsIgnoreCase("fungi") ? "--taxon fungi" : "--taxon bacteria" | ||
def clusterblast = params.clusterblast == true ? "--cb-general" : "" | ||
def subclusterblast = params.subclusterblast == true ? "--cb-subclusters" : "" | ||
def knownclusterblast = params.knownclusterblast == true ? "--cb-knownclusters" : "" | ||
def mibig = params.mibig == true ? "--cc-mibig" : "" | ||
def smcogs = params.smcogs == true ? "--smcog-trees" : "" | ||
def asf = params.asf == true ? "--asf" : "" | ||
def rre = params.rre == true ? "--rre" : "" | ||
def fullhmmer = params.fullhmm == true ? "--fullhmmer" : "" | ||
def tigrfam = params.tigrfam == true ? "--tigrfam" : "" | ||
def pfam2go = params.pfam2go == true ? "--pfam2go" : "" | ||
def genefinding = params.taxon.equalsIgnoreCase("fungi") ? "--genefinding-tool glimmerhmm" : "--genefinding-tool prodigal-m" | ||
def cassis = (params.taxon.equalsIgnoreCase("fungi") && params.cassis == true) ? "--cassis" : "" | ||
|
||
""" | ||
antismash -c $params.numCPU $taxon \ | ||
--logfile antismashLog.txt --output-dir ./output \ | ||
--html-title $params.projName --database $params.database \ | ||
$clusterblast \ | ||
$subclusterblast \ | ||
$knownclusterblast \ | ||
$mibig \ | ||
$smcogs \ | ||
$asf \ | ||
$rre \ | ||
$fullhmmer \ | ||
$tigrfam \ | ||
$pfam2go \ | ||
$cassis \ | ||
$genefinding \ | ||
$input | ||
""" | ||
|
||
} | ||
|
||
|
||
workflow { | ||
antismash(channel.fromPath(params.input,checkIfExists:true)) | ||
} |
16 changes: 16 additions & 0 deletions
16
runAntiSmash/test_files/parameters/antismash_all_opts.json
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,16 @@ | ||
{ | ||
"numCPU": 4, | ||
"input": "${projectDir}/../test_data/contigs.fa", | ||
"projName": "BasicAntismashTest", | ||
"database": "${projectDir}/../../database/antiSMASH", | ||
"clusterblast": true, | ||
"subclusterblast": true, | ||
"knownclusterblast": true, | ||
"mibig": true, | ||
"smcogs": true, | ||
"pfam2go": true, | ||
"asf": true, | ||
"rre": true, | ||
"fullhmm": true, | ||
"tigrfam": true | ||
} |
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,6 @@ | ||
{ | ||
"numCPU": 4, | ||
"input": "${projectDir}/../test_data/contigs.fa", | ||
"projName": "BasicAntismashTest", | ||
"database": "${projectDir}/../../database/antiSMASH" | ||
} |
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,8 @@ | ||
{ | ||
"numCPU": 4, | ||
"input": "${projectDir}/../test_data/contigs.fa", | ||
"projName": "FungiAntismashTest", | ||
"database": "${projectDir}/../../database/antiSMASH", | ||
"taxon": "fungi", | ||
"cassis": true | ||
} |
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 |
---|---|---|
|
@@ -57,6 +57,4 @@ nextflow_workflow { | |
} | ||
|
||
} | ||
|
||
|
||
} |
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 |
---|---|---|
|
@@ -91,5 +91,4 @@ nextflow_workflow { | |
} | ||
|
||
} | ||
|
||
} |
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