Nomads classifier with PyMeda and Boss functionality.
This pipeline will:
- Pull data from BOSS (assuming correct permissions)
- Run Nomads-unsupervised
- Run Nomads-classifier
- Run PyMeda
- Upload results to BOSS (assuming correct permissions to push to channel "collman_nomads" and experiment "nomads_predictions").
Prequisites:
Have Docker installed on machine. Instructions here
-
Open Terminal
-
Pull built image from DockerHub by running:
docker pull rguo123/nomads-classifier
- Start image with the following command
docker run -it -p 8888:8888 rguo123/nomads-classifier:latest bash
You will ssh into running docker container.
- Start notebook with the command:
jupyter notebook --ip 0.0.0.0 --allow-root --no-browser
- A url that looks like the following should appear:
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://<host>:8888/?token=<long token>
- Copy URL into your browser and replace whatever is in with "localhost"
http://localhost:8888/?token=....
You should now be able to access the Nomads-Classifier jupyter notebook. Leave the container running and follow the
instructions in there to run the pipeline!
- To get results after your pipeline is done running, press
Ctr-C
in the docker container. Type:
cd results
- You are now inside the results directory and can checkout the results. If you want to move results to your computer follow instructions in this link.
Inside the results directory, you should have NDVis_links.csv which contains links to NDVis, pickled numpy arrays of the predictions, and PyMeda HTML files.
- You can exit container by typing
exit
-
Go into Terminal (can skip step 1 if you already have image)
-
Pull built image from DockerHub by running:
docker pull rguo123/nomads-classifier
- Start image with the following command
docker run -it rguo123/nomads-classifier:latest bash
You will ssh into running docker container.
3. Run the command
python3 driver.py --host api.boss.neurodata.io --token <insert BOSS API token> --col <insert BOSS collection> --exp <insert BOSS experiment> --z-range <z_start>,<z_end> --y-range <y_start>,<y_end> --x-range <x_start>,<x_end>
- See steps 6 and 7 in Method 1 to retrieve results.
Prequisites: Have python3 and pip3 working on computer.
git clone https://github.com/rguo123/nomads-classifier-pipeline.git
pip3 install -r requirements.txt
- Run the command step 3 in Running with Docker Method 2.