Commits

Gregor Rot committed 0153f9f

Fasta split -> generates .string files from FASTA chromosomes.

Comments (0)

Files changed (1)

bin/biox.fastasplit

+#!/usr/bin/python
+
+import sys
+import biox
+filename = sys.argv[1]
+f = biox.data.Fasta(filename)
+while f.read():
+    print f.id
+    fout = open("%s.string" % f.id, "wt")
+    fout.write(f.sequence)
+    fout.close()