Skip to content

Commit

Permalink
roll back change
Browse files Browse the repository at this point in the history
  • Loading branch information
gtluu committed Nov 8, 2023
1 parent d787533 commit 30111e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions pyTDFSDK/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def get_lcms_tsf_data(self):
elif int(frames_dict['MsMsType']) in [2, 8, 9]:
framemsmsinfo_dict = self.tsf_data.analysis['FrameMsMsInfo'][self.tsf_data.analysis['FrameMsMsInfo']['Frame'] ==
self.frame].to_dict(orient='records')[0]
# Auto MS/MS and MRM MS/MS
if int(frames_dict['ScanMode']) == 1 or int(frames_dict['ScanMode']) == 2:
# Auto MS/MS
if int(frames_dict['ScanMode']) == 1:
self.scan_type = 'MSn spectrum'
self.ms_level = 2
self.target_mz = float(framemsmsinfo_dict['TriggerMass'])
Expand All @@ -232,6 +232,17 @@ def get_lcms_tsf_data(self):
self.activation = 'collision-induced dissociation'
self.collision_energy = float(framemsmsinfo_dict['CollisionEnergy'])
self.parent_frame = int(framemsmsinfo_dict['Parent'])
# MRM
elif int(frames_dict['ScanMode']) == 2:
self.scan_type = 'MSn spectrum'
self.ms_level = 2
self.target_mz = float(framemsmsinfo_dict['TriggerMass'])
self.isolation_lower_offset = float(framemsmsinfo_dict['IsolationWidth']) / 2
self.isolation_upper_offset = float(framemsmsinfo_dict['IsolationWidth']) / 2
self.selected_ion_mz = float(framemsmsinfo_dict['TriggerMass'])
self.charge_state = framemsmsinfo_dict['PrecursorCharge']
self.activation = 'collision-induced dissociation'
self.collision_energy = float(framemsmsinfo_dict['CollisionEnergy'])
# bbCID
elif int(frames_dict['ScanMode']) == 4:
self.scan_type = 'MSn spectrum'
Expand Down Expand Up @@ -265,7 +276,7 @@ def get_maldi_tsf_data(self):
self.low_mz = float(min(self.mz_array))
# MS1
if int(frames_dict['MsMsType']) == 0:
self.scan_type = 'MS1 spectrum'
self.scan_type = 'MS1 specttrum'
self.ms_level = 1
# MS/MS
elif int(frames_dict['MsMsType']) in [2, 8, 9]:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='pyTDFSDK',
version='0.3.2',
version='0.3.3',
description='Python wrapper for Bruker TDF-SDK',
url='https://github.com/gtluu/pyTDFSDK',
author='Gordon T. Luu',
Expand Down

0 comments on commit 30111e2

Please sign in to comment.