def scan_info(self, start_time, stop_time=0, start_mz=0, stop_mz=99999):
"""Gets a list of [(time, mz, scan_name, scan_type, scan_mode)] in the time and mz range provided
scan_name = the URL of the scan (goes to the HTML version)
All full MS scans that fall within the time range are included.
Only MS/MS scans that fall within the mz range (optional) are included
Example:
>>> scan_info = my_peakfile.scan_info(30.0, 35.0, 435.82, 436.00)
"""
if stop_time == 0:
stop_time = start_time
return [(t,mz,sn,st,sm) for t,mz,sn,st,sm in self.scans()
if start_time <= t <= stop_time and (st == 'MS1' or start_mz <= mz <= stop_mz)]
评论列表
文章目录