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 Thomas1 Thomas2 Thomas3 Thomas4 Thomas5 Thomas6 Thomas7 GitHub

- 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.10.tar.gz (643.2 kB view details)

Uploaded Source

Built Distribution

massivechem-3.10-py3-none-any.whl (226.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for massivechem-3.10.tar.gz
Algorithm Hash digest
SHA256 4415992896d9a8165797788c277edd98548ae9cd1256f6ce85515419fee52fa7
MD5 8aca552fa3e1fad5869812397dbdabc6
BLAKE2b-256 eece73e97f7db5ac405f9cc263062429187b168a047c990e19c02b1b05ad2aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: massivechem-3.10-py3-none-any.whl
  • Upload date:
  • Size: 226.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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 704611939b2671127ff1b856ffbf5973e310f1859b4af710084b1acecec0b5f0
MD5 5487f9d93cbb04f0b48a72c601cc698c
BLAKE2b-256 9ee9a38e11e94698b3efb16fb01daf7c5e0f898b3402149aec03787b64586bad

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