-
Notifications
You must be signed in to change notification settings - Fork 8
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
deimos.plot.stem(): KeyError with res object #21
Comments
Yep, see how the data frame index starts at 58, not 61? So to select the top feature, you'd need to grab the row with index 58, i.e.: deimos.plot.stem(np.array(res.loc[58, 'mz_ms2']),
np.array(res.loc[58, 'intensity_ms2']),
width=1)
plt.tight_layout()
plt.show() Is this using the same underlying example data, or your own? I probably need to regenerate the documentation if the example data is no longer producing the same result. |
Hi Sean, Thanks! Ah yes, that fixed the issue. This is using the same underlying example data. Kind regards, |
Hello,
I am trying to follow the DEIMoS documentation for the MS2 Extraction steps. At the end, where I have the final
res
object and I go to use thedeimos.plot.stem()
function, I get the following error message:All the other preceding steps worked as expected and
res
is the same as the fragmentation spectra of the highest intensity MS1 feature table printed in the documentation.Any help would be much appreciated.
Kind regards,
Jessica
The text was updated successfully, but these errors were encountered: