annotate uniqprimer.sh @ 5:e57b034c1fae draft

Uploaded
author dereeper
date Mon, 03 Jan 2022 10:07:20 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
2 include=$1
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
3 exclude=$2
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
4 product_size_range=$3
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
5 primer_size=$4
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
6 min_size=$5
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
7 max_size=$6
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
8 crossvalidate=$7
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
9 outfile=$8
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
10 log=$9
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
11 fasta=${10}
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
12
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
13 directory=`dirname $0`
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
14 other_inputs_line=""
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
15
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
16 j=1
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
17 for i in $*
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
18 do
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
19 if [[ $j -ge 11 ]]
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
20 then other_inputs_line=${other_inputs_line}" "$i
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
21 fi
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
22 j=$((j+1))
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
23 done
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
24
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
25
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
26 if [[ $crossvalidate == "Yes" ]]
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
27 then python $directory/uniqprimer-0.5.0/uniqprimer.py -i $include -x $exclude --productsizerange $product_size_range --primersize $primer_size --minprimersize $min_size --crossvalidate --keeptempfiles --maxprimersize $max_size -o $outfile -f $fasta -l $log $other_inputs_line >>$log 2>&1
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
28 elif [[ $crossvalidate = "No" ]]
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
29 then python $directory/uniqprimer-0.5.0/uniqprimer.py -i $include -x $exclude --productsizerange $product_size_range --primersize $primer_size --minprimersize $min_size --keeptempfiles --maxprimersize $max_size -o $outfile -f $fasta -l $log $other_inputs_line >>$log 2>&1
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
30 fi
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
31
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
32
e57b034c1fae Uploaded
dereeper
parents:
diff changeset
33