File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,22 @@ DB=$1
11
11
if [ -e $DB ]; then
12
12
echo " collecting statistics for database $DB "
13
13
14
- ./metacache info $DB statistics | tail -n+2 > ${DB} _statistics.txt
14
+ ./metacache info $DB statistics | tail -n+1 > ${DB} _statistics.txt
15
15
16
- ./metacache info $DB lineages | tail -n+2 > ${DB} _lineages.txt
16
+ ./metacache info $DB lineages | tail -n+1 > ${DB} _lineages.txt
17
17
18
18
RANKSTAT=${DB} _ranks.txt
19
19
rm -f $RANKSTAT
20
20
21
- for r in subspecies species genus family order class phylum kingdom domain; do
21
+ for r in sequence subspecies species genus family order class phylum kingdom domain; do
22
22
RESFILE=${DB} _rank_${r} .txt
23
23
24
- ./metacache info $DB rank ${r} | tail -n+3 > $RESFILE
24
+ ./metacache info $DB rank ${r} | tail -n+2 > $RESFILE
25
25
26
- no=$( cat $RESFILE | head -n 1 | grep -e -- | sed ' s/--\s*//g' )
27
26
nr=$( cat $RESFILE | wc -l)
28
27
nr=$(( $nr - 1 ))
29
28
30
- echo " $r : $nr none: $no " >> $RANKSTAT
29
+ echo " $r : $nr " >> $RANKSTAT
31
30
done
32
31
33
32
fi
Original file line number Diff line number Diff line change @@ -251,7 +251,8 @@ void show_rank_statistics(const args_parser& args)
251
251
252
252
for (const auto & s : stat) {
253
253
cout << s.first ->id () << " \t "
254
- << s.first ->name () << " \t " << s.second << ' \n ' ;
254
+ << s.first ->name () << " \t "
255
+ << s.second << ' \n ' ;
255
256
}
256
257
}
257
258
You can’t perform that action at this time.
0 commit comments