Changeset 18


Ignore:
Timestamp:
Aug 11, 2010, 4:02:29 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805131703-ft3f535ezlmukpum
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-20100805133009-k3n8lq42t030hm3c
bzr:revno:
18
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 15:30:09.867000103 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T13:30:09.867000Z
Message:

Attributes for PSM model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r17 r18  
    1414        self.sequence = str(native_id)
    1515        self.sequence = str(sequence)
    16         #self.pep_refs = tuple(pep_refs)
     16        self.pep_refs = tuple(pep_refs)
    1717
    1818class Peptides(Folder):
     
    2727        self.length = len(sequence)
    2828
    29 class Psms(Folder):
    30     pass
    31 
    32 class Psm(Persistent):
    33     pass
    34 
    3529class Spectra(Folder):
    3630    pass
     
    3933    pass
    4034
    41 class ClassName(object):
    42     """docstring for ClassName"""
    43     def __init__(self, arg):
    44         super(ClassName, self).__init__()
    45         self.arg = arg
     35class Psms(Folder):
     36    """A container for Psms"""
     37    pass
     38
     39class Psm(Persistent):
     40    """A Peptide to Spectrum Match"""
     41    def __init__(self, score, rank, delta_mass, delta_score,
     42                 sequence_rank2, pep_ref, spec_ref):
     43        self.score = float(score)
     44        self.rank = int(rank)
     45        self.delta_mass = float(delta_mass)
     46        self.delta_score = float(delta_score)
     47        self.sequence_rank2 = str(sequence_rank2)
     48        self.pep_ref = str(pep_ref)
     49        self.spec_ref = str(spec_ref)
    4650
    4751def appmaker(zodb_root):
Note: See TracChangeset for help on using the changeset viewer.