Changeset 38


Ignore:
Timestamp:
Aug 11, 2010, 4:08:18 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100809115605-tb1fgzs9o20f5730
bzr:committer:
Danny Navarro <j@dannynavarro.net>
bzr:file-ids:

mzcms/parsers.py parsers.py-20100806092910-g1sxvv1o5b9umkof-1
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100809120631-tojiityird7y8f68
bzr:revno:
38
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-09 14:06:31.609999895 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-09T12:06:31.610000Z
Message:

Implemented prot id accession string extractor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/parsers.py

    r37 r38  
    166166                yield psm
    167167
     168def get_prot_ids(accs):
     169    return (x[1].split('"')
     170            for x in (x.split(':')
     171            for x in accs.split(',"')
     172                      )
     173            )
     174
    168175def apply_mods(peptide_str, mod_str):
    169176    """Takes a peptide string and applies mascot modification string. It
Note: See TracChangeset for help on using the changeset viewer.