Skip to content

Commit

Permalink
Use the same approach as other scan types to report the scan_window.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjust-seerbio committed Apr 25, 2022
1 parent 7c7aa90 commit 0a10a6c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tdf2mzml.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,10 @@ def write_pasef_dia_spectrum(mzml_data_struct):
id=msn_spectrum_id,
centroided=True,
scan_start_time=mzml_data_struct['current_dia_frame']['frame'][1]/60,
# TODO: report proper scan window (the range of fragment masses scanned in this scan)
# scan_window_list=[(
# mz_center-mz_width/2.0,
# mz_center+mz_width/2.0,
# )],
scan_window_list=[(
mzml_data_struct['data_dict']['mz_acq_range_lower'],
mzml_data_struct['data_dict']['mz_acq_range_upper']
)],
compression=mzml_data_struct['compression'],
precursor_information=precursor_info,
params=[
Expand Down

0 comments on commit 0a10a6c

Please sign in to comment.