Mercurial > repos > yufei-luo > s_mart
comparison SMART/Java/Python/test/MockGetLetterDistribution.py @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:b0e8584489e6 | 18:94ab73e8a190 |
---|---|
1 class MockGetLetterDistributionFasta (object) : | |
2 def write(self,inFileName): | |
3 f = open(inFileName,'w') | |
4 f.write('>HWI-EAS337_3:7:1:415:1217/1\n') | |
5 f.write('GATGTGCAGACTTTTCACGCAGGACTACATCACTGT\n') | |
6 f.write('>HWI-EAS337_3:7:1:208:1489/1\n') | |
7 f.write('GGAAACATATGCACATAAACGTTGAAATCATGCTTA\n') | |
8 f.write('>HWI-EAS337_3:7:1:278:1153\n') | |
9 f.write('GAGAAAACCTGTAATAAATACTGAGAGAAAGTAGGG\n') | |
10 f.close() | |
11 | |
12 class MockGetLetterDistributionFastq (object) : | |
13 def write(self,inFileName): | |
14 f = open(inFileName,'w') | |
15 f.write('@HWI-EAS337_3:7:1:415:1217/1\n') | |
16 f.write('GATGTGCAGACTTTTCACGCAGGACTACATCACTGT\n') | |
17 f.write('+HWI-EAS337_3:7:1:415:1217/1\n') | |
18 f.write('WWWVVVWPWWWVWWWWVVVVKVPWWVVWVWUUQUTQ\n') | |
19 f.write('@HWI-EAS337_3:7:1:208:1489/1\n') | |
20 f.write('GGAAACATATGCACATAAACGTTGAAATCATGCTTA\n') | |
21 f.write('+HWI-EAS337_3:7:1:208:1489/1\n') | |
22 f.write('WWWWWWWWWWWWWWWWWVWWVWWVWWWWWWUUUUUU\n') | |
23 f.write('@HWI-EAS337_3:7:1:278:1153/1\n') | |
24 f.write('GAGAAAACCTGTAATAAATACTGAGAGAAAGTAGGG\n') | |
25 f.write('+HWI-EAS337_3:7:1:278:1153/1\n') | |
26 f.write('WWWWWWWWWWWWWWWWWWWWWWVWVVVWWVUUUUUR\n') | |
27 f.close() | |
28 | |
29 class MockGetLetterDistributionExpectedCSV (object) : | |
30 def write(self,inFileName): | |
31 f = open(inFileName,'w') | |
32 f.write('1;A=0%;C=0%;T=0%;G=0%;\n') | |
33 f.write('2;A=0%;C=0%;T=0%;G=100.00%;\n') | |
34 f.write('3;A=66.67%;C=0%;T=0%;G=33.33%;\n') | |
35 f.write('4;A=33.33%;C=0%;T=33.33%;G=33.33%;\n') | |
36 f.write('5;A=66.67%;C=0%;T=0%;G=33.33%;\n') | |
37 f.write('6;A=66.67%;C=0%;T=33.33%;G=0%;\n') | |
38 f.write('7;A=33.33%;C=33.33%;T=0%;G=33.33%;\n') | |
39 f.write('8;A=66.67%;C=33.33%;T=0%;G=0%;\n') | |
40 f.write('9;A=33.33%;C=33.33%;T=33.33%;G=0%;\n') | |
41 f.write('10;A=33.33%;C=33.33%;T=0%;G=33.33%;\n') | |
42 f.write('11;A=33.33%;C=0%;T=66.67%;G=0%;\n') | |
43 f.write('12;A=0%;C=33.33%;T=0%;G=66.67%;\n') | |
44 f.write('13;A=0%;C=33.33%;T=66.67%;G=0%;\n') | |
45 f.write('14;A=66.67%;C=0%;T=33.33%;G=0%;\n') | |
46 f.write('15;A=33.33%;C=33.33%;T=33.33%;G=0%;\n') | |
47 f.write('16;A=33.33%;C=0%;T=66.67%;G=0%;\n') | |
48 f.write('17;A=33.33%;C=33.33%;T=33.33%;G=0%;\n') | |
49 f.write('18;A=100.00%;C=0%;T=0%;G=0%;\n') | |
50 f.write('19;A=66.67%;C=33.33%;T=0%;G=0%;\n') | |
51 f.write('20;A=33.33%;C=0%;T=33.33%;G=33.33%;\n') | |
52 f.write('21;A=33.33%;C=66.67%;T=0%;G=0%;\n') | |
53 f.write('22;A=33.33%;C=33.33%;T=0%;G=33.33%;\n') | |
54 f.write('23;A=0%;C=0%;T=66.67%;G=33.33%;\n') | |
55 f.write('24;A=0%;C=0%;T=33.33%;G=66.67%;\n') | |
56 f.write('25;A=66.67%;C=0%;T=0%;G=33.33%;\n') | |
57 f.write('26;A=33.33%;C=33.33%;T=0%;G=33.33%;\n') | |
58 f.write('27;A=66.67%;C=0%;T=33.33%;G=0%;\n') | |
59 f.write('28;A=66.67%;C=0%;T=0%;G=33.33%;\n') | |
60 f.write('29;A=33.33%;C=33.33%;T=33.33%;G=0%;\n') | |
61 f.write('30;A=66.67%;C=33.33%;T=0%;G=0%;\n') | |
62 f.write('31;A=66.67%;C=0%;T=33.33%;G=0%;\n') | |
63 f.write('32;A=0%;C=33.33%;T=33.33%;G=33.33%;\n') | |
64 f.write('33;A=33.33%;C=0%;T=33.33%;G=33.33%;\n') | |
65 f.write('34;A=33.33%;C=66.67%;T=0%;G=0%;\n') | |
66 f.write('35;A=0%;C=0%;T=66.67%;G=33.33%;\n') | |
67 f.write('36;A=0%;C=0%;T=33.33%;G=66.67%;\n') | |
68 f.close() | |
69 |