We need to add a constructor to TimsFrame that accepts a list of MzSpectra:
|
class TimsFrame: |
|
def __init__(self, frame_pointer, *args): |
|
|
|
if len(args) > 0: |
|
frame_id, rt, scan, mz, intensity, tof, inv_ion_mob = args |
|
self.frame_ptr = pl.TimsFrame(frame_id, rt, scan, mz, intensity, tof, inv_ion_mob) |
|
|
|
else: |
|
self.frame_ptr = frame_pointer |
We need to add a constructor to TimsFrame that accepts a list of MzSpectra:
proteolizard-data/python/proteolizarddata/data.py
Lines 456 to 464 in 52dc4e0