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
conda
andmamba
. 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 Prompt
orAnaconda Prompt
from the Start menu depending on whether you installedmambaforge
or aconda
distribution. - In the prompt window, use
cd masskit*
to change to the directory starting withmasskit
in the directory you extracted the downloads to. - Run
call init_masskit.bat
to create themasskit
package 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
mambaforge
runMiniforge Prompt
from the Start menu otherwise runAnaconda Prompt
from the Start menu. - Run
conda activate masskit
.
- Our code is downloaded via
git
. Ifgit
is 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 -m
if you will be using GPUs. - Run
source environments/init_masskit.sh -c
if 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.sh
without options runconda activate masskit
- If you installed using
init_masskit.sh -c
runconda activate masskit_ai_cpu
. - If you installed using
init_masskit.sh -m
runconda activate masskit_ai