larsyunker / PythoMS

A series of python scripts which aid in the processing and interpretation of mass spectrometric data (formerly Mass-Spec-Python-Tools)
MIT License
34 stars 10 forks source link

Isotope patter overlay #23

Closed michelleting closed 5 years ago

michelleting commented 5 years ago

I tried running the script with the both your file in the validation folder and with my data but the output figure would only show the mass peak but not the isotope patter bars. see attached pics. The Ar-I+ figure doesn't even have the isotope pattern bars. Wondering what is going on...?

@Line 424 of molecule.py (out[0].append(x)) BAR x = [479.04256000000004, 480.04594086958247, 481.04927, 482.052625] y = [100.0, 27.280848507524876, 3.509399355066259, 0.24494730118962427] Automatically determining m/z window: 477 - 482

@Line 927 of tome.py (ax.bar) AXBAR simdict[species]['x'] = [479.04256000000004, 480.04594086958247, 481.04927, 482.052625] simdict[species]['y'] = [0.4452669723598899, 0.12147260818354422, 0.015626196256321032, 0.0010906694318843005]

larsyunker commented 5 years ago

The calibration of the included mzML file is particularly bad (off by m/z ~0.25), so the auto-scaling of peak heights is normalizing the predicted isotope pattern to a near-zero value. The user can override this functionality by changing 'simnorm' to 100 (or another value of their choice). The resulting patterns look like this: LY-2015-09-15 06 (summed spectra (scans 1-2576)) Ar+I LY-2015-09-15 06 (summed spectra (scans 1-2576)) L2PdAr+I

michelleting commented 5 years ago

Hi Lars, I updated the whole project with github desktop but with this extra line in molecule.py (see below), the script wouldn't run and make an isotope overlay figure. I ended up deleting this line from molecule.py but I wonder if deleting it would affect another script. Thanks.

from IsoSpecPy.IsoSpecPy import IsoSpec

larsyunker commented 5 years ago

You will need to rerun setup (python setup.py install) because there is a new dependency.