File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
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 3 ]; then
4
+ if [ $# -ne 4 ]; then
5
5
echo " Print a good quality subset of eukaryotic marker proteins created by tblastn2marker_euk.sh"
6
6
echo " #1: marker proteins (FASTA)"
7
7
echo " #2: min. score to length ratio"
8
- echo " #3: output uniKernel file | ''"
8
+ echo " #3: min. complexity"
9
+ echo " #4: output uniKernel file | ''"
9
10
exit 1
10
11
fi
11
12
M=$1
12
13
T=$2
13
- UNI=$3
14
+ COMPL=$3
15
+ UNI=$4
14
16
15
17
16
18
TMP=$( mktemp )
17
19
18
20
19
21
grep ' ^>' $M | cut -f 1,7 -d ' ' | sed ' s/^>//1' | sed ' s/ score=/\t/1' > $TMP .score
20
22
$THIS /fasta2len $M > $TMP .len
21
- paste $TMP .len $TMP .score | awk -F ' \t' ' {OFS="\t"; print $1, $4/ $2};' > $TMP .stat
23
+ paste $TMP .len $TMP .score | awk -F ' \t' ' {OFS="\t"; print $1, $4 / $2};' > $TMP .stat
22
24
if [ " $UNI " ]; then
23
25
$THIS /../dm/conversion/cols2dm.sh $TMP .stat 0 5 1 > $TMP .dm
24
26
$THIS /../dm/uniKernel $TMP " V2" -qc > $UNI
25
27
fi
26
28
awk ' $2 > ' $T $TMP .stat | cut -f 1 > $TMP .list
27
- $THIS /filterFasta $M -aa -target $TMP .list -len_min 20 -complexity_min 3
29
+ $THIS /filterFasta $M -aa -target $TMP .list -len_min 20 -complexity_min $COMPL
28
30
29
31
30
32
rm $TMP *
You can’t perform that action at this time.
0 commit comments