# Path: seqio.py
# def seqlen(record):
# def fastaIterator(fh):
# def recordToString(record):
# def fastaRecordToString(record):
# def fastqIterator(fh):
# def fastqRecordToString(record):
# def iteratorFromExtension(filename):


import sys
from seqio import fastaIterator, fastqIterator, seqIterator

sys.path.append('..')


for i in ["bad.fa","corrupt.fa","good.fa"]:
    with open(i) as fh:
        try:
            for record in fastaIterator(fh):
                print record.name

# Path: seqio.py
# def seqlen(record):
# def fastaIterator(fh):
# def recordToString(record):
# def fastaRecordToString(record):
# def fastqIterator(fh):
# def fastqRecordToString(record):
# def iteratorFromExtension(filename):


# Path: test/seqio_test.py
import sys
from seqio import fastaIterator, fastqIterator, seqIterator


sys.path.append('..')


for i in ["bad.fa","corrupt.fa","good.fa"]:
    with open(i) as fh:
        try:
            for record in fastaIterator(fh):
                print record.name

                print record.seq