[Biopython-dev] [Bug 2382] Generic FASTA parser

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Oct 16 20:03:33 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2382





------- Comment #1 from jflatow at northwestern.edu  2007-10-16 16:03 EST -------
My mistake, the parse_gsflex_header function should look something like this:
def parse_gsflex_header(gs_header):
    parts = re.split('[,|]?\s+', header, maxsplit=1)
    assert len(parts) == 2
    return {'id': parts[0],
            'description': header}

def my_qualitycleanup(data):
   return [int x for x in data.replace('\n', '').split(' ')]


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list