Exemplo n.º 1
0
 def testExtraDataSet(self):
     file = open('/home/giannis/Downloads/pair_end.txt')
     data =list(file)
     file.close()
     d= int(data[1])
     lines = [d.strip() for d in data[2:-2]]
     out = data[-1].strip()
     
     string = pairedReads(lines, d)
     assert string == out
Exemplo n.º 2
0
 def testPairs(self):
     d = 2
     lines = ["GAGA|TTGA",
              "TCGT|GATG",
              "CGTG|ATGT",
              "TGGT|TGAG",
              "GTGA|TGTT",
              "GTGG|GTGA",
              "TGAG|GTTG",
              "GGTC|GAGA",
              "GTCG|AGAT"]
     
     string = pairedReads(lines,d)
     assert string == "GTGGTCGTGAGATGTTGA"
     pass