Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rpisalive opened this issue Feb 24, 2025 · 0 comments

Comments

@rpisalive
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant