Masskit is a Python package for easy-to-use, efficient and flexible computing on mass spectra. Masskit does this by taking advantage of modern software and hardware architectures. It features:
- Functions to filter, normalize, annotate, plot and compute on mass spectra.
- Searching and indexing of spectral libraries.
- Reading and writing of multiple file formats.
- Computational algorithms for small molecules, including reactions.
- Algorithms and encodings for peptides.
- Use of columnar memory for optimal efficiency in distributed, multicore computation.
- Masskit is installed using the package managers
condaandmamba. If you do not have either installed we recommend installing mambaforge. Detailed installation instructions for macOS and Linux can be found here.
- If you intend to use Masskit AI, please use the Masskit AI instructions instructions instead.
- Download the latest Masskit Windows zip file from the Releases page.
- Extract the contents of the file to a directory on your computer by navigating explorer to the
Downloads folder, right clicking on the zip file, and selecting
Extract all.... - Run
Miniforge PromptorAnaconda Promptfrom the Start menu depending on whether you installedmambaforgeor acondadistribution. - In the prompt window, use
cd masskit*to change to the directory starting withmasskitin the directory you extracted the downloads to. - Run
call init_masskit.batto create themasskitpackage environment. - Run
pip install --find-links=. masskit.
Whenever using the programs in Masskit, please make sure you initialize the appropriate package environment:
- If you installed
mambaforgerunMiniforge Promptfrom the Start menu otherwise runAnaconda Promptfrom the Start menu. - Run
conda activate masskit.
- Our code is downloaded via
git. Ifgitis not installed, installers can be found at the Git website. - Change to a directory that will hold the masskit directory.
- Run
git clone https://github.com/usnistgov/masskit.git - Run
cd masskit. - If you are going to use Masskit AI:
- Run
source environments/init_masskit.sh -mif you will be using GPUs. - Run
source environments/init_masskit.sh -cif you will be using CPUs.
- Run
- If you are not using Masskit AI, run
source environments/init_masskit.sh - Run
pip install .
Whenever using the programs in Masskit, please make sure you have initialized the appropriate package environment:
- If you installed using
init_masskit.shwithout options runconda activate masskit - If you installed using
init_masskit.sh -crunconda activate masskit_ai_cpu. - If you installed using
init_masskit.sh -mrunconda activate masskit_ai
