示例#1
0
 def convertAlignFileIntoPathFile( alignFile, pathFile ):
     alignFileHandler = open( alignFile, "r" )
     pathFileHandler = open( pathFile, "w" )
     iAlign = Align()
     countAlign = 0
     while True:
         line = alignFileHandler.readline()
         if line == "":
             break
         countAlign += 1
         iAlign.setFromString( line, "\t" )
         pathFileHandler.write( "%i\t%s\n" % ( countAlign, iAlign.toString() ) )
     alignFileHandler.close()
     pathFileHandler.close()
示例#2
0
 def toString(self):
     string = "%i" % ( self.id )
     string += "\t%s" % (Align.toString(self))
     return string