Changeset 40


Ignore:
Timestamp:
Aug 11, 2010, 4:08:51 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100809121616-774ops20e8y2s6l7
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-20100809121654-z178epmzaaz802i2
bzr:revno:
40
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-09 14:16:54.305000067 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-09T12:16:54.305000Z
Message:

Deleted old decoy function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/parsers.py

    r39 r40  
    191191          p, match in zip(peptide_str, mod_str)))
    192192
    193 def check_decoy(accs, decoy_regex):
    194     """Returns True if there is at least one target protein in Mascot
    195        protein accession string.
    196     """
    197     prots = (y[1] for y in (x.split('"') for x in accs.split(',')))
    198     for prot in prots:
    199         match = re.search(decoy_regex, prot)
    200         if not match:
    201             return False
    202     return True
    203 
    204193def write_csv(psms, out_file):
    205194    """Takes a dictionary of PSMs and writes a modified InsPecT output.
Note: See TracChangeset for help on using the changeset viewer.