- Install dependencies.
-
OSX/Windows You will probably want to install Anaconda, a Python package manager. IMPORTANT: Install the Python 3.X version.
-
Linux You will need Python 3, and the python3 packages
numpy
,matplotlib
, andpillow
, installed through your package manager orpip
.
- Clone this repository.
- Open the terminal, and run
git clone git@github.com:wackywendell/diffusiontrap.git
That's all, there's no setup for a pure-python program like this.
- Export your data.
- First, you will need to export your data to
tif
format, so that it alternates yellow and cyan frames, with cyan first.
- Open a terminal in the right directory.
-
Open the Terminal application.
-
Type in
cd /Users/your_username/directory_you_want_to_work_in
-
Run
python3 /path/to/diffusiontrap.py path/to/image.tif
- Choose your options.
-
Run
python3 /path/to/diffusiontrap.py --help
to see all the options -
For example, run
python3 /path/to/diffusiontrap.py -t 20 -u 150
to use a threshold of 20 and an "upper limit" of 150.
- Files will appear in the same directory as the original image, with roughly the same name as the original file.
- The one ending in
.csv
is the spreadsheet with all the columns.