forked from Biocomputing-Research-Group/DeepFilter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinference.sh
More file actions
executable file
·58 lines (56 loc) · 1.42 KB
/
inference.sh
File metadata and controls
executable file
·58 lines (56 loc) · 1.42 KB
1
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
inputfile=""
DBfile=""
model=""
outputfile=""
while [[ $# >0 ]]
do
key="$1"
case $key in
-h|--help)
echo -e "Usage:\n"
echo -e "inference.sh [OPTION}...<PARAM>...\n\n"
echo -e " -in\t ms2 files for experimental mass spectrum\n"
echo -e " -s\t database searching result file from Comet, should be .pin format\n"
echo -e " -m\t deep learning model used for filtering\n"
echo -e " -o\t output file stored the rescoring PSMs\n"
exit 1
;;
-in)
inputfile="$2"
shift
;;
-s)
DBfile="$2"
shift
;;
-m)
model="$2"
shift
;;
-o)
outputfile="$2"
shift
;;
*)
echo "ERROR: Unidentified user variable $key"
exit 1
;;
esac
shift
done
expEncode="test.expEncode.txt"
theoryEncode="test.theoryEncode.txt"
tempcharge="testcharge.txt"
tempidx="testidx.txt"
temppeptide="testpeptide.fasta"
theoryEncode="test.theoryEncode.txt"
tempfeature="test.feature.txt"
echo -e "Generate experimental mass spectrum group by charge\n"
python train_process.py $inputfile $expEncode
echo -e "Generate isotope distribution preprocessing files and 11 extra feature of each PSM\n"
python theory_process.py $DBfile $tempidx $tempcharge $temppeptide $tempfeature
echo -e "Generate isotope distribution for each peptide\n"
./Sipros_OpenMP -i1 $tempidx -i2 $tempcharge -i3 $temppeptide -i4 $theoryEncode -c SiprosConfig.cfg
echo -e "Rescore the PSMs\n"
python Predict.py $expEncode $theoryEncode $tempfeature $outputfile $model