{ "info": { "author": "Mateusz Krzysztof \u0141\u0105cki", "author_email": "matteo.lacki@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Chemistry" ], "description": "# masstodon\n\nYour Python3 module for investigating the Electron Transfer Dissociation in Mass Spectrometry, and more generally finding stuff in the mass spectrum.\n\n# Prerequisites\nPython3\n\n# Installation\n\nThe package can be installed directly from the Python Package Index:\n```\npip install masstodon\n```\n\nOtherwise, download this github repo, use the default branch, and install the software with:\n\n```\npip install .\n```\nfrom the folder containing **setup.py**.\nThis will let you import `masstodon` simply by\n\n```{python}\nimport masstodon\n``` \n\n# Running\n\n## command line interface\n\nIt is possible to run `masstodon` from command line after installing it from PIP.\nGiven that it would be not comfortable to input multiple compounds with their possible modifications and charges from the terminal, we have restricted (for now) the possibility to run `masstodon` in the traditional case of studying precisely one protein and its c/z fragmentation patterns.\n\nTo see a detailed description of the possible arguments, open the terminal (or the Anaconda prompt on Windows, but seriously, Windows? You should feel guilty...) and write\n```{bash}\n masstodon -h\n```\n\nTo run `masstodon`, you do need to supply at least:\n* the file with the spectrum\n* the tolerance for the search in the m/z axis\n* the amino acid sequence (fasta)\n* the charge of the substance\n\nAll other parameters can be skipped, but it might be silly.\nFor instance, if you know that there is a particular PTM on a given amino acid,\nyou should supply the `-m` parameter, and so on.\n\n\n## Python scripting\n\n**Importing data.** You can analyze individual mass spectra with `masstodon`.\nThis might very well be individual scans of an *Orbitrap*, or a general mass spectrum.\nThe easiest way to import the mass spectrum is to present a plain **ASCII** file with m/z and intensity values in each row, separated by tab or some other whitespace sign.\n\n**Running masstodon**.\nTo call `masstodon` with a single compound, use the `masstodon_single` function.\n\nFor instance:\n\n```{python}\nfrom masstodon.data.substanceP_wh15_wv400 import mz, intensity, fasta, modifications, z # input data\nfrom masstodon.masstodon import masstodon_single # masstodon-proper\nfrom pprint import pprint # nicer output in the terminal\n\nprint(mz)\n# array([ 61.01 , 64.152, 66.515, ..., 1403.9 , 1485.578, 1497.226])\nprint(intensity)\n# array([844.4 , 25.35, 190.1 , ..., 15.38, 55.62, 21. ])\nprint(fasta)\n# 'RPKPQQFFGLM'\nprint(modifications)\n# {'11': {'C_carbo': {'H': 1, 'N': 1, 'O': -1}}}\n# (modify 11th amino-acid [starting from 1 for user-friendliness],\n# by adding the chemical diff unto the group of atoms that include the C_carbo.)\nprint(z)\n# 3\n\nm = masstodon_single(mz, intensity, fasta, z,\n min_mz_diff = 1.1, # this is actually the default\n modifications = modifications,\n orbitrap = False, # this ain't an orbitrap profile spectrum\n threshold = \"0.05 Da\", # how far away to search for\n isotopic_coverage = .999, # IsoSpec isotopic envelope coverage\n min_prob = .8, # minimal acceptance probability of a candidate theoretical envelope.\n std_cnt = 3 # m/z standard deviation count filter)\n# for min_prob and std_cnt check out the publication under the filtering procedures.\n\nprint(\"Save spectrum to where you started your python from.\")\nm.plotly(\"spectrum.html\", shape='rectangles', show=True)\n\nprint(\"Getting stats on inintial and final number of nodes and edges in the deconvolution graph.\")\npprint(m.ome.G_stats)\n\nprint(\"Errors: absolute deviations and relative distance between spectra.\")\npprint(m.imperator.errors())\n\nprint(\"Estimates of intensities of reactions and fragmentations.\")\npprint(m.cz_simple.intensities)\npprint(m.cz_simple.probabilities)\n\nprint(\"Save all things under the given path.\")\nm.write(\".\")\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MatteoLacki/masstodon", "keywords": "Mass Spectrometry,Mass spectra annotation.Analytical Chemistry,ETD,Electron Transfer Dissociation,Fragmentation", "license": "", "maintainer": "", "maintainer_email": "", "name": "masstodon", "package_url": "https://pypi.org/project/masstodon/", "platform": "", "project_url": "https://pypi.org/project/masstodon/", "project_urls": { "Homepage": "https://github.com/MatteoLacki/masstodon" }, "release_url": "https://pypi.org/project/masstodon/0.16/", "requires_dist": null, "requires_python": "", "summary": "Investigate mass spectra for chemical substances, especially ETD products.", "version": "0.16" }, "last_serial": 4790039, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7a6d9969d1977f14bf78210822c4d0e1", "sha256": "6eb198692a73e73ef7f9cb74baa2afba26f5b56ff96ddadae930d2139b4abd2f" }, "downloads": -1, "filename": "masstodon-0.1.tar.gz", "has_sig": false, "md5_digest": "7a6d9969d1977f14bf78210822c4d0e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49457, "upload_time": "2018-09-10T13:13:51", "url": "https://files.pythonhosted.org/packages/ab/2c/6dcca72c15cdf6e5436ace1a26defc14eb3b91815f1d3d1b8c8cba3467cd/masstodon-0.1.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "a910f6685ed9843c5fa4ab2104881472", "sha256": "08d65c5d79ef4ad901228d459f78f0fa3affb34241271776c0833f68347c8922" }, "downloads": -1, "filename": "masstodon-0.11.tar.gz", "has_sig": false, "md5_digest": "a910f6685ed9843c5fa4ab2104881472", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49447, "upload_time": "2018-09-10T13:13:53", "url": "https://files.pythonhosted.org/packages/d0/7c/fd9ad32acb71719e1850730e6ff6ede733cb35fc2e9be071b1935adddd68/masstodon-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "fad7e334ec817c0b22e91d832eb94875", "sha256": "f06fca33648a5e1ee77037a54204e10f10c647ed9880c7b807128920fcc7130d" }, "downloads": -1, "filename": "masstodon-0.12.tar.gz", "has_sig": false, "md5_digest": "fad7e334ec817c0b22e91d832eb94875", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49420, "upload_time": "2018-09-10T13:13:55", "url": "https://files.pythonhosted.org/packages/01/f5/b637df0ba1c004efc8a4dc394997a81ebb2aca3d9493bc3e1d4e10d85593/masstodon-0.12.tar.gz" } ], "0.14": [ { "comment_text": "", "digests": { "md5": "e855bb2e0c0d6b90d3ab98dd961bef37", "sha256": "2a6421db291c2a2ed3b3b0a3319de55ac8617798eed2f42772fc132c44479c19" }, "downloads": -1, "filename": "masstodon-0.14.tar.gz", "has_sig": false, "md5_digest": "e855bb2e0c0d6b90d3ab98dd961bef37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 89126, "upload_time": "2018-10-01T09:56:17", "url": "https://files.pythonhosted.org/packages/ca/58/e49fd490505b72efa96b12aed5683286de41ebbee3cef14569345352257c/masstodon-0.14.tar.gz" } ], "0.15": [ { "comment_text": "", "digests": { "md5": "77aab65e37b6cf6e69621651ce85ef22", "sha256": "c20e52875286bd9c7dd0d7d54e9a7362a2431c78c60d62c90d28b3411a6f8894" }, "downloads": -1, "filename": "masstodon-0.15.tar.gz", "has_sig": false, "md5_digest": "77aab65e37b6cf6e69621651ce85ef22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81870, "upload_time": "2019-01-22T22:38:23", "url": "https://files.pythonhosted.org/packages/21/e8/e06003bfb43a80a466a20a2f94e3b68f93b5c3ea20b969b3607e2be0fe6c/masstodon-0.15.tar.gz" } ], "0.16": [ { "comment_text": "", "digests": { "md5": "bb201732190b2ce133b4340b466adacb", "sha256": "1bacc75e4aa678b1597788995bc125e1be8d2c90d4d0d2c7f4048f22590525fc" }, "downloads": -1, "filename": "masstodon-0.16.tar.gz", "has_sig": false, "md5_digest": "bb201732190b2ce133b4340b466adacb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83495, "upload_time": "2019-02-07T08:20:54", "url": "https://files.pythonhosted.org/packages/e9/7d/8df74fdf7aba0fd841e9c6dcb21994f97e4e726a4b5acba335a13bd7e0a9/masstodon-0.16.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb201732190b2ce133b4340b466adacb", "sha256": "1bacc75e4aa678b1597788995bc125e1be8d2c90d4d0d2c7f4048f22590525fc" }, "downloads": -1, "filename": "masstodon-0.16.tar.gz", "has_sig": false, "md5_digest": "bb201732190b2ce133b4340b466adacb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83495, "upload_time": "2019-02-07T08:20:54", "url": "https://files.pythonhosted.org/packages/e9/7d/8df74fdf7aba0fd841e9c6dcb21994f97e4e726a4b5acba335a13bd7e0a9/masstodon-0.16.tar.gz" } ] }