Skip to content

Commit

Permalink
simple seq to line script
Browse files Browse the repository at this point in the history
  • Loading branch information
james committed Jun 27, 2014
1 parent 5bae9e2 commit e29ec82
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sequenceToLine.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env

import sys

from seqio import iteratorFromExtension
from nucio import fileIterator

if not len(sys.argv) == 2:
sys.exit("sequencToLine.py in.{fa.fq}\n")

it = iteratorFromExtension(sys.argv[1])
for record in fileIterator(sys.argv[1], it):
if hasattr(record, "desc"):
print "\t".join([record.name, record.seq, record.desc, record.qual])
else:
print "\t".join([record.name, record.seq])

1 change: 1 addition & 0 deletions zmwProductivityHeatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
plt.suptitle(cellname)

plt.savefig(pp, format="pdf")
plt.legend()

plt.figure()

Expand Down

0 comments on commit e29ec82

Please sign in to comment.