Ejemplo n.º 1
0
 def testAddColumn(self):
     tsv = TSVTable(self.getInputFile("mrna1.tsv"), uniqKeyCols="qName")
     tsv.addColumn("joke")
     i = 0
     for row in tsv:
         row.joke = i
         i += 1
     fh = open(self.getOutputFile(".tsv"), "w")
     tsv.write(fh)
     fh.close()
     self.diffExpected(".tsv")
Ejemplo n.º 2
0
 def testAddColumn(self):
     tsv = TSVTable(self.getInputFile("mrna1.tsv"), uniqKeyCols="qName")
     tsv.addColumn("joke")
     i = 0
     for row in tsv:
         row.joke = i
         i += 1
     fh = open(self.getOutputFile(".tsv"), "w")
     tsv.write(fh)
     fh.close()
     self.diffExpected(".tsv")
Ejemplo n.º 3
0
 def testWrite(self):
     tsv = TSVTable(self.getInputFile("mrna1.tsv"), uniqKeyCols="qName")
     fh = open(self.getOutputFile(".tsv"), "w")
     tsv.write(fh)
     fh.close()
     self.diffExpected(".tsv")
Ejemplo n.º 4
0
 def testWrite(self):
     tsv = TSVTable(self.getInputFile("mrna1.tsv"), uniqKeyCols="qName")
     fh = open(self.getOutputFile(".tsv"), "w")
     tsv.write(fh)
     fh.close()
     self.diffExpected(".tsv")