File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash --noprofile
22THIS=$( dirname $0 )
33source $THIS /../../bash_common.sh
4- if [ $# -ne 2 ]; then
4+ if [ $# -ne 3 ]; then
55 echo " Print: <Genome.id> <univs>"
66 echo " Input: hmm-univ.list"
77 echo " #1: Genome.id"
88 echo " #2: large (0/1)"
9+ echo " #3: suffix: HMM|tblastn"
910 exit 1
1011fi
1112G=$1
1213LARGE=$2
14+ SUF=$3
15+
16+
17+ sort -cu hmm-univ.list
1318
1419
1520H=" "
1621if [ $LARGE -eq 1 ]; then
1722 H=$( $THIS /../../file2hash $G )
1823fi
1924
20- $THIS /../../check_file.sh genome/$H /$G /$G .prot-univ 1
25+ F=genome/$H /$G /$G .prot-univ.$SUF
26+ if [ ! -e $F ]; then
27+ exit 0
28+ fi
2129
2230
2331TMP=$( mktemp )
2432
2533
26- grep ' ^>' genome/ $H / $G / $G .prot-univ | sed ' s/^>//1' | sed ' s/ .*$//1' | sort -u > $TMP || true
34+ grep ' ^>' $F | sed ' s/^>//1' | sed ' s/ .*$//1' | sort -u > $TMP || true
2735N=$( join -1 1 -2 1 $TMP hmm-univ.list | wc -l )
2836echo " $G $N "
2937
You can’t perform that action at this time.
0 commit comments