File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash --noprofile
2
2
THIS=$( dirname $0 )
3
3
source $THIS /../bash_common.sh
4
- if [ $# -ne 6 ]; then
4
+ if [ $# -ne 7 ]; then
5
5
echo " Run tblastn"
6
6
echo " #1: query protein FASTA file"
7
7
echo " #2: subject nucleotide FASTA file, may be gzip'ped"
8
- echo " #3: tblastn parameters (except: -query -subject -db -out)"
9
- echo " #4: part_size"
10
- echo " #5: cores"
11
- echo " #6: output file"
8
+ echo " #3: tblastn search parameters (except: -query -subject -db -out -outfmt)"
9
+ echo " #4: tblastn output parameters (-outfmt 6 ...)"
10
+ echo " #5: part_size"
11
+ echo " #6: cores"
12
+ echo " #7: output file"
12
13
exit 1
13
14
fi
14
15
PROT=$1
15
16
DNA=$2
16
- PARM=$3
17
- PART=$4 # 50000000 ??
18
- CORES=$5
19
- OUT=$6
17
+ SEARCH=$3
18
+ OUTFMT=$4
19
+ PART=$5
20
+ CORES=$6
21
+ OUT=$7
20
22
21
23
22
24
TMP=$( mktemp )
@@ -28,9 +30,10 @@ if [ -z ${DNA##*.gz} ]; then
28
30
DNA=$TMP
29
31
fi
30
32
mkdir $TMP .dna
31
- $THIS /splitFasta $DNA $TMP .dna -group_size $PART
33
+ # PAR
34
+ $THIS /splitFasta $DNA $TMP .dna -group_size $PART -mono_nuc_max 20
32
35
mkdir $TMP .out
33
- $THIS /../trav $TMP .dna -step 1 -threads $CORES " tblastn -query $PROT -subject %d/%f $PARM > $TMP .out/%f"
36
+ $THIS /../trav $TMP .dna -step 1 -threads $CORES " tblastn -query $PROT -subject %d/%f $SEARCH -outfmt '6 $OUTFMT ' > $TMP .out/%f"
34
37
# tblastn -query $PROT -subject $DNA -comp_based_stats 0 -evalue 1e-10 -seg no -max_target_seqs 10000 -task tblastn-fast -threshold 100 -window_size 15 -db_gencode 11 -outfmt '6 sseqid qseqid sstart send slen qstart qend qlen nident length'
35
38
# 1 2 3 4 5 6 7 8 9 10
36
39
$THIS /../trav $TMP .out " cat %d/%f" > $OUT
You can’t perform that action at this time.
0 commit comments