pyteomics.mass.Unimod
class that can serve
as a Python interface to Unimod:>>> db = mass.Unimod() >>> aa_comp = dict(mass.std_aa_comp) >>> aa_comp['p'] = db.by_title('Phospho')['composition'] >>> mass.calculate_mass('PEpTIDE', aa_comp=aa_comp) 782.2735307010443
The Unimod
object can be initialized from a local file. If you download the file located at http://www.unimod.org/xml/unimod.xml to a portable drive and place it somewhere on the computer without an internet connection, you can create a working Unimod
object using the following commands
db = mass.Unimod(open("path/to/local/unimod.xml"))
--
---
You received this message because you are subscribed to the Google Groups "Pyteomics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyteomics+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.