Skip to content

Commit

Permalink
fix db path in RDS threshold calculation script
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Sep 30, 2020
1 parent 83a335d commit cff6af0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions db-scripts/compute-rds-thresholds.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import java.nio.file.*


// Parameters
mpsPath = Paths.get( params.mps ).toRealPath()
contigsPath = Paths.get( params.contigs ).toRealPath()
pcDb = Paths.get( params.pcDb ).toRealPath()
mpsPath = Paths.get( params.mps ).toRealPath()
contigsPath = Paths.get( params.contigs ).toRealPath()
pcDb = Paths.get( params.pcDb ).toRealPath()


// Constants
Expand Down Expand Up @@ -38,7 +38,7 @@ process searchProts {
errorStrategy 'retry'
maxRetries 3
cpus 1
memory '2 GB'
memory '2.5 GB'

input:
set val(type), val(id), val(subSequence) from chContigs
Expand All @@ -52,7 +52,7 @@ process searchProts {
prodigal -i seq.fna -a cdss.faa -p meta
if [ -s cdss.faa ]
then
diamond blastp --query cdss.faa --db ${pcDB}/mps.dmnd --threads ${task.cpus} --out output.tsv --max-target-seqs 1 --id 90 --query-cover 80 --subject-cover 80
diamond blastp --query cdss.faa --db ${pcDb} --threads ${task.cpus} --out output.tsv --max-target-seqs 1 --id 90 --query-cover 80 --subject-cover 80
else
touch output.tsv
fi
Expand Down

0 comments on commit cff6af0

Please sign in to comment.