A package for converting spectrometry imaging line scan data files to a visualizable format
Project description
MSIGen
MSIGen is designed for converting mass spectrometry imaging (MSI) data from the raw line-scan data to a visualizable format and is designed with nano-DESI MSI in mind. It has premade files for converting to images using a GUI, jupyter notebook, or from the command line.
Installation on Windows
Using Anaconda (https://www.anaconda.com/download), create a new environment titled "MSIGen" with python >=3.9 and <3.12 and activate it. Then, MSIGen can be installed using the pip package manager.
Run the following in Anaconda Prompt one line at a time:
conda create --name MSIGen python=3.11 -y
conda activate MSIGen
pip install MSIGen
For GUI tool:
Download "make GUI shortcut.py" from the tests folder in the Github repository. Run this code from Anaconda Prompt.
conda activate MSIGen
python "C:/path/to/make GUI shortcut.py"
After running with the actual location of "make GUI shortcut.py", there should be a shortcut called "MSIGen GUI" on your desktop. This runs the GUI for MSIGen.
For Jupyter Notebook Tool:
Download "MSIGen_jupyter.ipynb" from the tests folder in the Github repository. Open Anaconda Navigator and run Jupyter Notebook in the MSIGen environment. Open "MSIGen_jupyter.ipynb" from Jupyter Notebook.
Alternatively, Jupyter Notebook can be run from Anaconda Prompt. For the first time opening MSIGen:
conda activate MSIGen
pip install notebook
jupyter notebook
After the first run:
conda activate MSIGen
jupyter notebook
For Command Line Interface Tool:
Download "MSIGen_CLI.py" from the tests folder in the Github repository. Create a configuration file for your experiment. An example can be found in the tests folder. Run the following in Anaconda Prompt:
conda activate MSIGen
python "C:/Path/to/MSIGen_CLI.py" "C:/path/to/config_file1.json" "C:/path/to/config_file2.json"
Supply one configuration file for each dataset to be processed.
Referencing
If MSIGen was used in your project, please reference it using the following:
[1.] Hernly E, Hu H, Laskin J. MSIGen: An Open-Source Python Package for Processing and Visualizing Mass Spectrometry Imaging Data. ChemRxiv. 2024; doi:10.26434/chemrxiv-2024-brc8d This content is a preprint and has not been peer-reviewed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file msigen-0.2.1.tar.gz
.
File metadata
- Download URL: msigen-0.2.1.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb5535584772b0f769d1b5ff08bca7bca71250fcf1eb887d6686fd7d829d000 |
|
MD5 | 9d68453c5ad74a04c879cdbdfbdba968 |
|
BLAKE2b-256 | 93051617749a99d14bcb81a3a7def6c22e232dfc3c134cdb42c2c55525518670 |
File details
Details for the file msigen-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: msigen-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa621f1bde49db4a343baba18bd645b2f0695f10ee36df5c440df9bcbd3e0022 |
|
MD5 | 1c2d2934bd99a279b0e114e96b2731a6 |
|
BLAKE2b-256 | d9393b487407da241257a23272d6c747167159c5ff1ba0be0b66136c20e9b3dd |