User friendly writing of imzML mass spectrometry imaging files from continuous MSI data
Project description
#MAC Install instructions:#
-
Download and install the latest version of python (https://www.python.org/downloads/)
-
Download and Install VS Code (https://code.visualstudio.com/download)
-
Download and Install Docker (https://www.docker.com/products/docker-desktop/)
-
After both are successfully installed, launch both and open a terminal window in VS Code (Terminal --> New Terminal in top ribbon or CMD+SHIFT+`)
-
In the command line, enter the command:
docker pull chambm/pwiz-skyline-i-agree-to-the-vendor-licenses
Note: This will take ~5 - 10 mins to install, you can follow the progress in the terminal, when complete, the new docker image will appear under images in the docker GUI
-
Download or clone the repo for imzML_Writer, and navigate your terminal to the resulting folder
-
In VS Code, navigate to the folder where you installed imzML_Writer by clicking File --> Open in the top ribbon
-
Install the requisite packages by running the command:
pip3 install -r requirements.txt
Note: If this fails, try replacing pip3 with pip (Apple silicon chips need pip3/python3, older intel chips use pip/python)
- Launch imzML_Writer by typing the command:
python3 imzML_Writer.py
#PC Install instructions#
-
Download and install the latest version of python (https://www.python.org/downloads/)
-
Download and Install VS Code (https://code.visualstudio.com/download)
-
Download and Install msConvert (https://proteowizard.sourceforge.io/download.html)
-
Add the path to your msConvert folder (containing msConvert.exe) Note: This may vary depending on which version of windows you are using, instructions here: https://www.eukhost.com/kb/how-to-add-to-the-path-on-windows-10-and-windows-11/ This will likely require restarting your PC
-
Test you've successfully installed everything by entering into the terminal:
msconvert
Note: This should return an info page on msConvert
-
Download or clone the repo for imzML_Writer, and navigate your terminal to the resulting folder
-
In VS Code, navigate to the folder where you installed imzML_Writer by clicking File --> Open in the top ribbon
-
Install the requisite packages by running the command:
pip install -r requirements.txt
- Launch imzML_Writer by typing the command:
python imzML_Writer.py
##Customizing colormaps:## You can change the available colormaps by editing/creating a "Scout_Config.xlsx" file in the working directory (where imzML_Scout.py is located). A default sheet is available in the Github repo. You can edit which colormaps are available by adding/removing colormap names in the spreadsheet. Additional colormaps can be found here in the matplotlib documentation: https://matplotlib.org/stable/users/explain/colors/colormaps.html
##Troubleshooting:##
Nothing's working! Why?!?!
-
Start with a clean installation and try the test files to ensure all packages/msConvert/Docker are installed correctly
-
Verify that no 'hanging' imzML files are in the working directory where imzML_Writer is installed, these can result from failed file conversions and will cause errors if you try to process a new dataset without removing them
Everything turned green, but I don't have any imzML files and the progress bars look wacky? -This can occur for non-thermo files that specify the filter string in a new and exciting way I hadn't found yet. If comfortable, please share a test file and I'll add it to the library so it will convert correctly
Please direct any questions, concerns, or feature requests to me at Joseph.Monaghan@viu.ca
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imzml_writer-0.0.7.tar.gz.
File metadata
- Download URL: imzml_writer-0.0.7.tar.gz
- Upload date:
- Size: 44.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a60d6b57848e07100792ce56a11dbe9b3dff2930b36e93b13b35822a50e47d4
|
|
| MD5 |
8731e4c723b36872c77a9567e471f6cc
|
|
| BLAKE2b-256 |
23c1026821dbb7e7d2fbc48fb4e24fbf817eb772b79df00f00ba54de96d0f882
|
File details
Details for the file imzML_Writer-0.0.7-py3-none-any.whl.
File metadata
- Download URL: imzML_Writer-0.0.7-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57cd570e9b3ba41ae221386e97a79149e2cf952198a6115e4e6f0e06315b90c4
|
|
| MD5 |
c55a37e1c1f8934a60fd25b2ea0ddbf1
|
|
| BLAKE2b-256 |
ae2701a89938d6f7372fb0342b14cdd7e49c21f444396e4f1f31167541808536
|