You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for preparing this package! When I tried to use the example from https://rustyms.readthedocs.io/en/stable/. It results in this error. I used version rustyms==0.9.0.
importrustyms# Create a new spectrumraw_spectrum=rustyms.RawSpectrum(
title="spectrum_1",
num_scans=6,
rt=10,
precursor_mass=436.12634,
precursor_charge=2,
mz_array=[72.04444, 148.06048, 175.05362, 263.08742, 290.08056, 366.09661],
intensity_array=[100, 600, 300, 400, 500, 200],
)
# Create a new peptide from a ProForma 2.0 stringpeptide=rustyms.LinearPeptide("ACDE/2")
# Annotate the spectrum with the peptideannotated_spectrum=raw_spectrum.annotate(peptide, "cid_hcd")
TypeErrorTraceback (mostrecentcalllast)
CellIn[3], [line18](vscode-notebook-cell:?execution_count=3&line=18)
[15](vscode-notebook-cell:?execution_count=3&line=15) peptide=rustyms.LinearPeptide("ACDE/2")
[17](vscode-notebook-cell:?execution_count=3&line=17) # Annotate the spectrum with the peptide---> [18](vscode-notebook-cell:?execution_count=3&line=18) annotated_spectrum=raw_spectrum.annotate(peptide, "cid_hcd")
TypeError: argument'peptide': 'LinearPeptide'objectcannotbeconvertedto'CompoundPeptidoform'
The text was updated successfully, but these errors were encountered:
Hi, thank you for preparing this package! When I tried to use the example from https://rustyms.readthedocs.io/en/stable/. It results in this error. I used version
rustyms==0.9.0
.The text was updated successfully, but these errors were encountered: