Changeset 21


Ignore:
Timestamp:
Aug 11, 2010, 4:03:20 PM (10 years ago)
Author:
j@…
bzr:base-revision:
j@dannynavarro.net-20100805134225-vax3gq8e4r8uvuhu
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-20100805153553-bbo0yp7iqreb5ilb
bzr:revno:
21
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:timestamp:
2010-08-05 17:35:53.127000093 +0200
bzr:user-agent:
bzr2.1.2+bzr-svn1.0.3
svn:original-date:
2010-08-05T15:35:53.127000Z
Message:

pseudocode for parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mzcms/models.py

    r19 r21  
    77class Proteins(Folder):
    88    """A container for proteins objects"""
    9     pass
     9    def __init__(self):
     10        self.name = 'proteins'
    1011
    1112class Protein(Persistent):
     
    1819class Peptides(Folder):
    1920    """A container for peptides"""
    20     pass
     21    def __init__(self):
     22        self.name = 'peptides'
    2123
    2224class Peptide(Persistent):
     
    2931class Spectra(Folder):
    3032    """A Container for spectra"""
    31     pass
     33    def __init__(self):
     34        self.name = 'spectra'
     35
    3236
    3337class Spectrum(Persistent):
     
    4246class Psms(Folder):
    4347    """A container for psms"""
    44     pass
     48    def __init__(self):
     49        self.name = 'psms'
    4550
    4651class Psm(Persistent):
     
    5964    if not 'app_root' in zodb_root:
    6065        app_root = Experiment()
    61         zodb_root['app_root'] = app_root
     66#        folders = parse_results(files)
     67#        for folder in folders:
     68#            app_root[folder.name] = folder
     69#        zodb_root['app_root'] = app_root
    6270        import transaction
    6371        transaction.commit()
     72
    6473    return zodb_root['app_root']
Note: See TracChangeset for help on using the changeset viewer.