Changeset 17


Ignore:
Timestamp:
Aug 11, 2010, 4:02:13 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805130830-551u8o8vhuuow7dm
bzr:committer:
Danny Navarro <j@dannynavarro.net>
bzr:file-ids:

mzcms/models.py models.py-20100730084238-fjjwldiefr0w07zv-4
bzr:mapping-version:
v4
bzr:repository-uuid:
724254b2-fbe6-419d-9466-c04ef4c9d29d
bzr:revision-id:
j@dannynavarro.net-20100805131703-ft3f535ezlmukpum
bzr:revno:
17
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 15:17:03.411999941 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T13:17:03.412000Z
Message:

Attributes for Peptide model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r14 r17  
    1414        self.sequence = str(native_id)
    1515        self.sequence = str(sequence)
    16         self.pep_refs = tuple(pep_refs) or None
     16        #self.pep_refs = tuple(pep_refs)
    1717
    1818class Peptides(Folder):
     19    """A container for peptides"""
    1920    pass
    2021
    2122class Peptide(Persistent):
    22     pass
     23    """A peptide"""
     24    def __init__(self, sequence, mass):
     25        self.sequence = str(sequence)
     26        self.mass = float(mass)
     27        self.length = len(sequence)
    2328
    2429class Psms(Folder):
Note: See TracChangeset for help on using the changeset viewer.