-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (29 loc) · 1.18 KB
/
Makefile
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
all:
echo "1. make features, once sge jobs complete 2. make svm"
features: clean process_fasta split build_features
svm: merge_files truncate run_svm
process_fasta:
python process_fasta.py ./data/3prime.fasta
python process_fasta.py ./data/5prime.fasta
split:
python file_splitter.py data/3prime.fasta.clean 5
python file_splitter.py data/5prime.fasta.clean 5
build_features:
mkdir data/class1
mkdir data/class2
qsub ./sun_grid_engine/job.q data/5prime.fasta.clean.splits/part data/class1/feature
qsub ./sun_grid_engine/job.q data/3prime.fasta.clean.splits/part data/class2/feature
status:
./sun_grid_engine/check_status.sh
merge_files:
python merge_feature_file.py data/class1 data/class1_features
python merge_feature_file.py data/class2 data/class2_features
truncate:
head -50000 data/class1_features > data/class1_features.tmp
head -50000 data/class2_features > data/class2_features.tmp
mv data/class1_features.tmp data/class1_features
mv data/class2_features.tmp data/class2_features
run_svm:
cd svm; ./run_svm.sh ../data/class1_features ../data/class2_features
clean:
rm -rf ./*.log data/*.clean data/*.splits data/class1 data/class2 data/class1_features data/class2_features