Skip to content

Potential bug in def apply(self, dims=['drift_time', 'retention_time'], resolution=[0.01, 0.01]) #32

Description

@rpisalive

Hello,

I tried to perform MS2 deconvolution according to the steps demonstrated:
https://deimos.readthedocs.io/en/latest/user_guide/ms2_extraction.html

I used the provided example_data.h5 and example_data_peaks.h5 files provided at:
https://massive.ucsd.edu/ProteoSAFe/dataset.jsp?task=749e436db868410383159b450b470eff

When I run res = decon.apply(dims='drift_time', resolution=0.01), it returned the following error:


TypeError Traceback (most recent call last)
in

~/.conda/envs/deimos/lib/python3.7/site-packages/deimos/deconvolution.py in apply(self, dims, resolution)
370 for name, grp in self.decon_pairs.groupby(by=["index_ms1"], as_index=False):
371 # MS1 feature index
--> 372 idx_i = int(name[0])
373
374 # Extracted ion

TypeError: 'int' object is not subscriptable

Removing the [0] solved the error and I received the expected output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions