-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-fr-gridsearch
executable file
·38 lines (32 loc) · 1.61 KB
/
run-fr-gridsearch
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
#!/bin/sh
# usage: FRUtils
# -f,--frsprefix <arg> prefix of FRs file (e.g. HLAA-0.0-Inf)
# -g,--graphprefix <arg> prefix of graph file (e.g. HLAA)
# -m,--minsupport <arg> minimum number (not fraction) of
# supporting paths for an FR to be
# considered interesting
# -mp,--maxpvalue <arg> maximum p-value for an FR to be
# considered interesting
# -mpri,--minpriority <arg> minimum priority value for an FR to be
# considered interesting
# -p,--pathsprefix <arg> prefix of paths file (e.g. HLAA)
# -svm,--svm print out an SVM style file from the
# data given by inputprefix
GRAPH=$1
FRPREFIX=$2
MINSUPPORT=$3
MAXP=$4
MINPRI=$5
## make the filtered SVM files
java -server -cp "build/install/pangenomics/lib/*" org.ncgr.pangenomics.genotype.fr.FRUtils -svm -g $GRAPH -p $GRAPH -f $FRPREFIX \
--minsupport $MINSUPPORT --maxpvalue $MAXP --minpriority $MINPRI
java -server -cp "build/install/pangenomics/lib/*" org.ncgr.pangenomics.genotype.fr.FRUtils -svm -g $GRAPH -p $GRAPH.testing -f $FRPREFIX \
--minsupport $MINSUPPORT --maxpvalue $MAXP --minpriority $MINPRI
## remove the extra chunk from the file names
mv $FRPREFIX.$GRAPH.svm.txt $FRPREFIX.svm.txt
mv $FRPREFIX.$GRAPH.testing.svm.txt $FRPREFIX.testing.svm.txt
## scale the SVM files
./run-libsvmscaler-samples $FRPREFIX
./run-libsvmscaler-testing $FRPREFIX
## run GridSearch with RBF
./run-libsvmgridsearch RBF $FRPREFIX