Debian Codegraph @

current/driver/MakeTestScriptScoreOnly.java

raw symbols SCIP
1 package driver;
2
3 public class MakeTestScriptScoreOnly {
4
5
6 public static void main(String[] args){
7
8 assert(args.length==1) : "Please enter number of reads.";
9 numReads=Integer.parseInt(args[0]);
10
11 // String[] strings=new String[] {
12 // "/work/bbushnell/ssaha2/ssaha2 -solexa -outfile #S.sam -best -1 -output sam_soft -save hg37 " +
13 // "/work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq",
14 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime defaultTime.txt",
15 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S.sam #R ssaha2",
16 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime defaultTime.txt"
17 // };
18
19
20 // String[] strings=new String[] {
21 // "bwa aln -t 22 bs_ /work/bbushnell/synth/reads_B1_100000x100bp_#S_chr1-25.fq > temp_default.sai",
22 // "bwa samse bs_ temp_default.sai /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq > #S_default.sam",
23 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime defaultTime.txt",
24 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_default.sam #R",
25 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime defaultTime.txt"
26 // };
27
28
29 // String[] strings=new String[] {
30 // "java -ea -Xms24g -Xmx31g -server -XX:+UseNUMA -XX:+AggressiveOpts -XX:+UseCompressedOops " +
31 // "align.TestIndex11f 1 25 100 0 /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq null " +
32 // "outfile=#S_bbmap11f.sam cs=false threads=22 paired=false pairlen=100 build=37 match=short " +
33 // "removeambiguous=false fastqparsecustom overwrite savepar=false",
34 //
35 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bbmap11fTime.txt",
36 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_bbmap11f.sam #R",
37 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bbmap11fTime.txt"
38 // };
39
40
41 // String[] strings=new String[] {
42 // "bowtie --best -y --chunkmbs 1024 --strata -m 1 -k 2 -v 3 -p 24 -t -q -S HG37" +
43 // " /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq #S_bowtie.sam",
44 //
45 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bowtieTime.txt",
46 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_bowtie.sam #R",
47 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bowtieTime.txt"
48 // };
49
50
51 // String[] strings=new String[] {
52 // "bfast match -T $TMPDIR/ -n 16 -f hg19.fa -r /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq > $TMPDIR/#S.bmf",
53 // "bfast localalign -n 16 -f hg19.fa -m $TMPDIR/#S.bmf > $TMPDIR/#S.baf",
54 //// "bfast postprocess -n 16 -a 3 -f hg19.fa -i $TMPDIR/#S.baf > #S.sam",
55 //// "bfast postprocess -n 16 -a 3 -m 20 -f hg19.fa -i $TMPDIR/#S.baf > #S_r#R.sam",
56 // "bfast postprocess -n 16 -M 20 -f hg19.fa -i $TMPDIR/#S.baf > #S_r#R.sam",
57 //
58 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bfastTime.txt",
59 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_r#R.sam #R",
60 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime bfastTime.txt"
61 // };
62
63 // String[] strings=new String[] {
64 // "smalt_x86_64 map -n 8 -a -f samsoft -o #S_r#R.sam hg37 /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq",
65 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
66 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_r#R.sam #R ssaha2",
67 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
68 // };
69
70 // String[] strings=new String[] {
71 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
72 // "./soap -p 24 -a /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq -D hg37.fa.index -o #S_r#R.soap",
73 // "perl soap2sam.pl -p #S_r#R.soap > #S_r#R.sam",
74 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
75 // "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_r#R.sam #R",
76 // };
77
78 String[] strings=new String[] {
79 "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
80 "./bin/gmapper-ls /work/bbushnell/synth/reads_B1_#Rx100bp_#S_chr1-25.fq --single-best-mapping --qv-offset 33 -L hg37 -N 24 -o 5 -h 80% > #S_r#R.sam",
81 "java -ea -Xmx96m -cp /work/bbushnell/java/ align.PrintTime mapTime.txt",
82 "java -ea -Xmx96m -cp /work/bbushnell/java/ align.GradeSamFile #S_r#R.sam #R",
83 };
84
85 int[] blank=new int[] {0, 0, 0, 0};
86
87 print(strings, blank, 100);
88 print(strings, blank, 100);
89 print(strings, blank, 100);
90 print(strings, blank, 100);
91 for(int[] array : sets){
92 print(strings, array, numReads);
93 }
94
95 }
96
97 private static void print(String[] array, int[] blank, int x) {
98
99 String counts=(blank[0]+"S_"+blank[1]+"I_"+blank[2]+"D_"+blank[3]+"U");
100 String reads=""+x;
101
102 for(String s : array){
103 String s2=s.replaceAll("#S", counts).replaceAll("#R", reads);
104 System.out.println(s2);
105 }
106 System.out.println();
107
108 }
109
110 public static int numReads=400000;
111
112 public static final int[][] sets=new int[][] {
113 {0, 0, 0, 0},
114 {1, 0, 0, 0},
115 {2, 0, 0, 0},
116 {3, 0, 0, 0},
117 {4, 0, 0, 0},
118 {5, 0, 0, 0},
119 {6, 0, 0, 0},
120 {7, 0, 0, 0},
121 {8, 0, 0, 0},
122 {10, 0, 0, 0},
123 {12, 0, 0, 0},
124 {14, 0, 0, 0},
125 {16, 0, 0, 0},
126 {18, 0, 0, 0},
127 {20, 0, 0, 0},
128 {24, 0, 0, 0},
129 {28, 0, 0, 0},
130 {32, 0, 0, 0},
131 {36, 0, 0, 0},
132 {40, 0, 0, 0},
133
134 {0, 1, 0, 0},
135 {0, 2, 0, 0},
136 {0, 3, 0, 0},
137 {0, 4, 0, 0},
138 {0, 5, 0, 0},
139 {0, 6, 0, 0},
140 {0, 7, 0, 0},
141 {0, 8, 0, 0},
142 {0, 10, 0, 0},
143 {0, 12, 0, 0},
144 {0, 14, 0, 0},
145 {0, 16, 0, 0},
146 {0, 20, 0, 0},
147 {0, 24, 0, 0},
148 {0, 28, 0, 0},
149 {0, 32, 0, 0},
150 {0, 36, 0, 0},
151 {0, 40, 0, 0},
152
153 {0, 0, 1, 0},
154 {0, 0, 2, 0},
155 {0, 0, 3, 0},
156 {0, 0, 4, 0},
157 {0, 0, 5, 0},
158 {0, 0, 6, 0},
159 {0, 0, 7, 0},
160 {0, 0, 8, 0},
161 {0, 0, 10, 0},
162 {0, 0, 12, 0},
163 {0, 0, 14, 0},
164 {0, 0, 16, 0},
165 {0, 0, 20, 0},
166 {0, 0, 24, 0},
167 {0, 0, 28, 0},
168 {0, 0, 32, 0},
169 {0, 0, 48, 0},
170 {0, 0, 64, 0},
171 {0, 0, 128, 0},
172 {0, 0, 192, 0},
173 {0, 0, 256, 0},
174 {0, 0, 512, 0},
175 {0, 0, 1000, 0},
176 {0, 0, 2000, 0},
177 {0, 0, 3000, 0},
178 {0, 0, 4000, 0},
179 {0, 0, 6000, 0},
180 {0, 0, 8000, 0},
181 {0, 0, 10000, 0},
182 {0, 0, 12000, 0},
183 {0, 0, 14000, 0},
184 {0, 0, 16000, 0},
185 {0, 0, 20000, 0},
186 {0, 0, 24000, 0},
187 {0, 0, 28000, 0},
188 {0, 0, 32000, 0},
189
190 {0, 0, 0, 1},
191 {0, 0, 0, 2},
192 {0, 0, 0, 3},
193 {0, 0, 0, 4},
194 {0, 0, 0, 5},
195 {0, 0, 0, 6},
196 {0, 0, 0, 7},
197 {0, 0, 0, 8},
198 {0, 0, 0, 10},
199 {0, 0, 0, 12},
200 {0, 0, 0, 14},
201 {0, 0, 0, 16},
202 {0, 0, 0, 20},
203 {0, 0, 0, 24},
204 {0, 0, 0, 28},
205 {0, 0, 0, 32},
206 {0, 0, 0, 36},
207 {0, 0, 0, 40}
208 };
209
210 }