view SMART/Java/Python/test/MockGetLetterDistribution.py @ 25:7809e72960fe

Deleted selected files
author m-zytnicki
date Mon, 29 Apr 2013 03:29:14 -0400
parents 94ab73e8a190
children
line wrap: on
line source

class MockGetLetterDistributionFasta (object) :
	def write(self,inFileName):
		f = open(inFileName,'w')
		f.write('>HWI-EAS337_3:7:1:415:1217/1\n')
		f.write('GATGTGCAGACTTTTCACGCAGGACTACATCACTGT\n')
		f.write('>HWI-EAS337_3:7:1:208:1489/1\n')
		f.write('GGAAACATATGCACATAAACGTTGAAATCATGCTTA\n')
		f.write('>HWI-EAS337_3:7:1:278:1153\n')
		f.write('GAGAAAACCTGTAATAAATACTGAGAGAAAGTAGGG\n')
		f.close()

class MockGetLetterDistributionFastq (object) :
	def write(self,inFileName):
		f = open(inFileName,'w')
		f.write('@HWI-EAS337_3:7:1:415:1217/1\n')
		f.write('GATGTGCAGACTTTTCACGCAGGACTACATCACTGT\n')
		f.write('+HWI-EAS337_3:7:1:415:1217/1\n')
		f.write('WWWVVVWPWWWVWWWWVVVVKVPWWVVWVWUUQUTQ\n')
		f.write('@HWI-EAS337_3:7:1:208:1489/1\n')
		f.write('GGAAACATATGCACATAAACGTTGAAATCATGCTTA\n')
		f.write('+HWI-EAS337_3:7:1:208:1489/1\n')
		f.write('WWWWWWWWWWWWWWWWWVWWVWWVWWWWWWUUUUUU\n')
		f.write('@HWI-EAS337_3:7:1:278:1153/1\n')
		f.write('GAGAAAACCTGTAATAAATACTGAGAGAAAGTAGGG\n')
		f.write('+HWI-EAS337_3:7:1:278:1153/1\n')
		f.write('WWWWWWWWWWWWWWWWWWWWWWVWVVVWWVUUUUUR\n')
		f.close()

class MockGetLetterDistributionExpectedCSV (object) :
	def write(self,inFileName):
		f = open(inFileName,'w')
		f.write('1;A=0%;C=0%;T=0%;G=0%;\n')
		f.write('2;A=0%;C=0%;T=0%;G=100.00%;\n')
		f.write('3;A=66.67%;C=0%;T=0%;G=33.33%;\n')
		f.write('4;A=33.33%;C=0%;T=33.33%;G=33.33%;\n')
		f.write('5;A=66.67%;C=0%;T=0%;G=33.33%;\n')
		f.write('6;A=66.67%;C=0%;T=33.33%;G=0%;\n')
		f.write('7;A=33.33%;C=33.33%;T=0%;G=33.33%;\n')
		f.write('8;A=66.67%;C=33.33%;T=0%;G=0%;\n')
		f.write('9;A=33.33%;C=33.33%;T=33.33%;G=0%;\n')
		f.write('10;A=33.33%;C=33.33%;T=0%;G=33.33%;\n')
		f.write('11;A=33.33%;C=0%;T=66.67%;G=0%;\n')
		f.write('12;A=0%;C=33.33%;T=0%;G=66.67%;\n')
		f.write('13;A=0%;C=33.33%;T=66.67%;G=0%;\n')
		f.write('14;A=66.67%;C=0%;T=33.33%;G=0%;\n')
		f.write('15;A=33.33%;C=33.33%;T=33.33%;G=0%;\n')
		f.write('16;A=33.33%;C=0%;T=66.67%;G=0%;\n')
		f.write('17;A=33.33%;C=33.33%;T=33.33%;G=0%;\n')
		f.write('18;A=100.00%;C=0%;T=0%;G=0%;\n')
		f.write('19;A=66.67%;C=33.33%;T=0%;G=0%;\n')
		f.write('20;A=33.33%;C=0%;T=33.33%;G=33.33%;\n')
		f.write('21;A=33.33%;C=66.67%;T=0%;G=0%;\n')
		f.write('22;A=33.33%;C=33.33%;T=0%;G=33.33%;\n')
		f.write('23;A=0%;C=0%;T=66.67%;G=33.33%;\n')
		f.write('24;A=0%;C=0%;T=33.33%;G=66.67%;\n')
		f.write('25;A=66.67%;C=0%;T=0%;G=33.33%;\n')
		f.write('26;A=33.33%;C=33.33%;T=0%;G=33.33%;\n')
		f.write('27;A=66.67%;C=0%;T=33.33%;G=0%;\n')
		f.write('28;A=66.67%;C=0%;T=0%;G=33.33%;\n')
		f.write('29;A=33.33%;C=33.33%;T=33.33%;G=0%;\n')
		f.write('30;A=66.67%;C=33.33%;T=0%;G=0%;\n')
		f.write('31;A=66.67%;C=0%;T=33.33%;G=0%;\n')
		f.write('32;A=0%;C=33.33%;T=33.33%;G=33.33%;\n')
		f.write('33;A=33.33%;C=0%;T=33.33%;G=33.33%;\n')
		f.write('34;A=33.33%;C=66.67%;T=0%;G=0%;\n')
		f.write('35;A=0%;C=0%;T=66.67%;G=33.33%;\n')
		f.write('36;A=0%;C=0%;T=33.33%;G=66.67%;\n')
		f.close()