Commits

James Taylor  committed e85651c

Include TY (type) lines in motif parsing

  • Participants
  • Parent commits 52c31c7

Comments (0)

Files changed (1)

File lib/bx/motif/io/transfac.py

     "CC": ( "store_block", "comment" ),
     "P0": ( "store_matrix", "matrix" ),
     # For CREAD format files
+    "TY": ( "store_single", "type" ),
     "AT": ( "store_single_key_value", "attributes" ),
     "BS": ( "store_single_list", "sites" )
 }
                     for i in range( matrix.width ):
                         print >> output, "%02d" % ( i + 1 ), "  ", " ".join( [ str(matrix.values[i,matrix.char_to_index[ord(s)]]).rjust(6) for s in matrix.alphabet ] )
                     print >> output, "XX"
-        print "//"
+        print "//"