#!/usr/bin/env sh

infile=$1
outfile=$2

methods1="2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42"
methods2="3,5,7,8,10,11,14,15,26,29,30,31,38,40,42"
methods3="3,7,10,11,14,26,38,40,42"
./array2ensemble_stat.py ${infile} -i ${methods1} --total-only > aaa
./array2ensemble_stat.py ${infile} -i ${methods1} --total-only -m v > bbb
./array2ensemble_stat.py ${infile} -i ${methods2} --total-only > ccc
./array2ensemble_stat.py ${infile} -i ${methods2} --total-only -m v > ddd
./array2ensemble_stat.py ${infile} -i ${methods3}  > eee
./array2ensemble_stat.py ${infile} -i ${methods3} -m v > fff
# merge 
../../base/annot_from_file.py eee ccc -v 2 > aa1
../../base/annot_from_file.py aa1 aaa -v 2 > ${outfile}_rough.ens
../../base/annot_from_file.py fff ddd -v 2 > bb1
../../base/annot_from_file.py bb1 bbb -v 2 > ${outfile}_vote.ens
rm aaa bbb ccc ddd eee fff aa1 bb1

