Skip to main content

MASSIVEChem is a pip-installable package for analytical chemistry. It simulates molecule mass spectra and graphically displays them. It includes tools like a functional group finder and unsaturation calculator to aid chemical analysis.

Project description

logo Thomas Thomas2

- MASSIVEChem -

  • Python package for applied analytical chemistry focused primarily on mass speectrometry

Project in practical programming in chemistry course -- EPFL CH-200

Package description

MASSIVEChem, which stands for "Mass Analytical Spectrometry System for Investigation and Visual Extrapolation in Chemistry", is a pip-installable package developped at EPFL in 2024 focused on, as its name would suggest, analytical chemistry. The aim of this package is to provide the user functions in order to simulate the mass spectrum of a molecule and to display this spectrum on a graph. The package also provides other features that can facilitate the chemical analysis of a molecule such as a functional group finder and an unsaturation calculator.

Developpers:

What is mass spectrometry ?

  • Mass spectrometry is an analytical technique used to identify and quantify chemical compounds in a sample by measuring the mass and sometimes the charge of molecules. It involves separating pre-charged ions according to their mass-to-charge ratio (m/z), then detecting and analysing them. This method is widely used in chemistry, biochemistry, pharmacology and other fields to characterise substances and understand their composition.

Now, let us go through the steps required to use this package !

Installation

MASSIVEChem can be installed using pip as

pip install MASSIVEChem

The package can also be installed from source by running the following commands

First, clone the repository from github and go in the folder.

git clone https://github.com/ThomasCsson/MASSIVEChem.git
cd MASSIVEChem

Then, install the package using :

pip install -e . 

Requirments

The package runs on python 3.10 but supports python 3.8 through 3.10 The package requires several other packages to function correctly.

matplotlib
bokeh
rdkit
pandas

If everything runs in order during the installation, the preceding packages should install automatically. But check that these packages are correctly installed using

pip show "name of the package"

If not, install them using the following commands, otherwise the package will not work.

pip install matplotlib
pip install bokeh
pip install rdkit
pip install pandas

Usage

The principal function of this package takes the SMILEs of a molecule as an input and displays the mass spectrometry of the molecule as well as the molecule itself and the functional groups it contains.

An example on how to make the function work is shown below for penicilin:

import MASSIVEChem as ms
from ms.MASSIVEChem import spectrum
from bokeh.plotting import show

mol_smi = 'CC1(C(N2C(S1)C(C2=O)NC(=O)CC3=CC=CC=C3)C(=O)O)C'

show(spectrum(mol_smi))

Getting started

To begin to use the package the following jupyter notebook will give you information about all the package's functions:

'''link to jupter notebook'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

massivechem-3.4.tar.gz (439.9 kB view details)

Uploaded Source

Built Distribution

massivechem-3.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file massivechem-3.4.tar.gz.

File metadata

  • Download URL: massivechem-3.4.tar.gz
  • Upload date:
  • Size: 439.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.10

File hashes

Hashes for massivechem-3.4.tar.gz
Algorithm Hash digest
SHA256 19a6b8d3323e55df621f03aa6e7ccca5b88dc84c49dffbc334529bbae8bfedd3
MD5 6b248cae7facf323a7a8cfdc480e610d
BLAKE2b-256 c4e14e6597482ab1a95343b88991b0eb382f6ffe6336809799fbd68596d50e41

See more details on using hashes here.

File details

Details for the file massivechem-3.4-py3-none-any.whl.

File metadata

  • Download URL: massivechem-3.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.10

File hashes

Hashes for massivechem-3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a84101e2ccc52f291d5d1b8aa35e0aa9878b8e61ecd1f0b80fc51a8815b6b03
MD5 24acd1500e3dddde170e6a724b9f01fb
BLAKE2b-256 d8d6128bbd921b309d974b3004df889f2176ea69c68af828926e6726e35529b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page