Scripts for simulating high-resolution imaging mass spectrometry datasets.
- miniconda (see Install miniconda for Python 2.7)
- git (see Getting Started Installing Git)
- Create a directory for this repository
mkdir ~/projects/ims_simulator/
-
Clone this repository
cd ~/projects/ims_simulator/ git clone https://github.com/SpatialMetabolomics/ims-simulator.git
-
Set up a virtual environment for the code
cd ims-simulator/
conda env create
source activate ims_simulator
- Create a working directory where all generated files will be kept (
mkdir -p ~/projects/ims_simulator/data/test/ && cd ~/projects/ims_simulator/data/test/
). - Copy
example_config.yaml
from to the newly created directorycp ~/projects/ims_simulator/ims-simulator/example_config.yaml ~/projects/ims_simulator/data/test/config.yaml
- Open the
config.yaml
file in your favourite text editor and change theimzml:
field to be a centroided .imzml dataset you wish to use as a template for the simulation (the default is an example file provided along with this repository) - Run
python ~/projects/ims_simulator/ims-simulator/pipeline.py ~/projects/ims_simulator/data/test/config.yaml
from the directory and wait. In about an hour it should successfully finish. - If the run completes without errors, you will find a file named
report_<config hash>.pdf
along with the generatedimzML
file. It contains some useful metrics for comparing simulated and original datasets.
This project is funded from the European Horizon2020 project METASPACE (no. 634402), NIH NIDDK project KPMP and internal funds of the European Molecular Biology Laboratory.
Unless specified otherwise in file headers, all files are licensed under the Apache 2.0 license.