Giter Club home page Giter Club logo

isotope's Introduction

isotopes

This module allows the precise computation of isotopic distributions, average mass, and monoisotopic masses of arbitrary chemical formula.

The handy determination from peptide and protein primary sequences is provided.

The possibility to draw the isotopic profil is also given.

Isotopic natural abundance can be changed with the enrich() function.

Typical use is :

molecule = "K23 I22 S30"
formula = parse_formula(molecule)   # formula object (in fact a dictionary)
print "average mass", formula.average()
print "monoisotopic mass", formula.monoisotop()

prot = "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG" # ubiquitine
form = parse_peptide(prot)
print "average mass", form.average()
D = form.distribution()
print "By mass\n", D, "\n"
D.draw(charge=6,  title="Ubiquitine 6+")
D.draw_lowres(charge=6)
plt.show()

adapted from Kubinyi, H. Calculation of isotope distributions in mass spectrometry. A trivial solution for a non-trivial problem. Anal Chim Acta 247, 107-119 (1991).

This module depends at import time on a isotope file to be present in the same directory by default called elements.asc

It is a copy of the file found at NIST | Physical Measurement Laboratory | Physical Reference Data | Atomic Weights and Isotopic Compositions Main Page http://www.nist.gov/

First version of algo by FX Coudert, Python rewrite by DELSUC Marc-Andre on 2014-03-28.

code for fine isotopic pattern is based on the external neutronstar prgm neutronstar from https://bitbucket.org/orserang/neutronstar.git

This program is under the Cecill free software licence.

Copyright (c) 2014 CNRS. All rights reserved.

isotope's People

Contributors

delsuc avatar astyan-42 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.