Skip to main content

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 other_files 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 other_files 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 other_files folder in the Github repository. Create a configuration file for your experiment. An example can be found in the other_files 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. J. Am. Soc. Mass Spectrom. 2024, 35, 10, 2315–2323; doi:10.1021/jasms.4c00178

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

msigen-0.3.1.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msigen-0.3.1-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file msigen-0.3.1.tar.gz.

File metadata

  • Download URL: msigen-0.3.1.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for msigen-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d855026ed31abde28ba59ac34fb1945699bbb6c17ae7fff4eb4c2e445b3db8a8
MD5 df788a5b7db90be3b6a8c691e0115c15
BLAKE2b-256 df5467b52a9808d3811a5d8f2e0e5bd7258d10c53a93f50a17fe22adccc3535b

See more details on using hashes here.

File details

Details for the file msigen-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: msigen-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for msigen-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4460fb02045d4fc975b5fb39e8dc430d4d5acc688ce236152ad50486a1ee521f
MD5 49411cb265e1ad620627322867696c0d
BLAKE2b-256 abf1863ac3d4cc3b8c5523940c3db083db859e9282eb15b0410f22469c6e10a3

See more details on using hashes here.

Supported by

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