https://github.com/yhoogstrate/pymnp
Python 3 API and batch downloader/re-runner for the MolecularNeuropathology brain classifier
https://github.com/yhoogstrate/pymnp
Last synced: 5 months ago
JSON representation
Python 3 API and batch downloader/re-runner for the MolecularNeuropathology brain classifier
- Host: GitHub
- URL: https://github.com/yhoogstrate/pymnp
- Owner: yhoogstrate
- License: gpl-3.0
- Created: 2023-04-19T06:40:14.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T07:06:39.000Z (11 months ago)
- Last Synced: 2024-07-25T08:27:32.963Z (11 months ago)
- Language: Python
- Homepage:
- Size: 453 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
pymnp - python API to access the MolecularNeuropathology web portal
-------------------------------------------------------------------Python API for accessing: https://www.molecularneuropathology.org/mnp/
- Plus proxy-server with new all-sample all-status interface, allowing re-running, killing and starting new jobs (`./scripts/pymnp-proxy-server.sh`).
- Plus executable downloading and caching all completed jobs (`./bin/api_example_download_all.py`).
## Installation & usage
```
git clone https://github.com/yhoogstrate/pymnp.git
cd pymnpvirtualenv -p python3 .venv
source .venv/bin/activatepip install -r requirements.txt -U .
```# change to appropriate credentials:
```
cp config.txt.example config.txtnano config.txt
```# usage web server
1. install (see above)
2. configure credentials (see above)
3. run the proxy server:```
virtualenv -p python 3 .venv
source .venv/bin/activate./scripts/pymnp-proxy-server.sh
```4. go to your browser and open: http://127.0.0.1:5000/
5. press the `[update-all-data]`-button
6. press `[f5]`# usage downloader
1. ensure you have completed jobs
2. install (see above)
3. configure credentials (see above)
4. run the batch downloader:```
virtualenv -p python 3 .venv
source .venv/bin/activate./bin/api_example_download_all.py
ls ./cache
```