Changeset 29
- Timestamp:
- Aug 11, 2010, 4:05:43 PM (11 years ago)
- bzr:base-revision:
- j@dannynavarro.net-20100806130525-yx7xmtqcmpfmxqrh
- 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-20100806131029-8dov1nqec1ao917u
- bzr:revno:
- 29
- bzr:revprop:branch-nick:
- trunk
- bzr:root:
- trunk
- bzr:timestamp:
- 2010-08-06 15:10:29.417999983 +0200
- bzr:user-agent:
- bzr2.1.2+bzr-svn1.0.3
- svn:original-date:
- 2010-08-06T13:10:29.418000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mzcms/parsers.py
r27 r29 51 51 for line in datfile: 52 52 if line.startswith("FILE="): 53 #XXX: There must be something in the standard library54 # to normalize this properly55 53 full_path = line.strip().split('=')[1] 56 norm_path = full_path.replace( "\\", "/")54 norm_path = full_path.replace('\\', '/') 57 55 return norm_path.split("/")[-1] 58 56 … … 63 61 for line in datfile: 64 62 if line.startswith("INSTRUMENT="): 65 if line.strip().split('=')[1] == "ETD-TRAP": 63 frag_line = line.strip().split('=')[1] 64 if frag_line == "ETD-TRAP": 66 65 return 'ETD' 66 elif frag_line == "ESI-TRAP": 67 return 'CID' 67 68 else: 68 return 'CID'69 return frag_line 69 70 70 71 def _parse_annotations(self, datfile): … … 143 144 """Takes a dat file and returns a dictionary of psms. 144 145 """ 145 # TODO: handle frag_mode from mgf data146 146 pkl_fn = self._parse_spectra_fn(datfile) 147 147 frag_mode = self._parse_frag_mode(datfile)
Note: See TracChangeset
for help on using the changeset viewer.