A downloader of PPMI files.
Project description
A downloader of PPMI metadata and imaging data files.
Example usage
import ppmi_downloader
ppmi = ppmi_downloader.PPMIDownloader()
# Download metadata files
ppmi.download_metadata(['Demographics.csv', 'Age_at_visit.csv'])
# Download 3D imaging metadata
ppmi.download_3D_T1_info()
# Download imaging data (in DICOM format)
ppmi.download_imaging_data([3001, 3003, 3011])
# Download imaging data (in Nifti format)
ppmi.download_imaging_data([3001, 3003, 3011], type='nifti')
Scripts to use Selenium Grid
ppmi_scrapper
provides scripts for building and running
selenium webdriver
build_selenium
Build selenium grid singularity container
This function is intended to be used as script
so arguments are passed by environment variables.
PPMI_SINGULARITY_BUILD_CACHE
: cache folder to store the built image
PPMI_SINGULARITY_SELENIUM_VERSION
: version of selenium used
PPMI_SINGULARITY_BUILD_VERBOSE
: enable verbose mode for the build
PPMI_SINGULARITY_BUILD_LOG
: log file name to dump build's outputs
Upon success, it exits with 0. Upon failure, Client raises exceptions caught by the script wrapper generated during the build
run_selenium
Run selenium grid singularity container
This function is intended to be used as script
so arguments are passed by environment variables.
PPMI_SINGULARITY_SELENIUM_VERSION
: version of selenium used
PPMI_SINGULARITY_RUN_CACHE
: cache folder to find the built image
PPMI_SINGULARITY_RUN_VERBOSE
: enable verbose mode for the run
PPMI_SINGULARITY_RUN_LOG
: log file name to dump run's outputs
Run the selenium grid singularity container by
creating and binding files required by the container
Communication is mapped on 4444 port.
Upon success, it exits with 0. Upon failure, Client raises exceptions caught by the script wrapper generated during the run
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
File details
Details for the file ppmi_downloader-0.7.5.tar.gz
.
File metadata
- Download URL: ppmi_downloader-0.7.5.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f8d15bff106eafc4bc5954c5e455acf119fc4939f97a4a02c40b52267cfda8 |
|
MD5 | c5556e4fa584238182ed9856b66fdddc |
|
BLAKE2b-256 | 6e9fe4a6d4812e86eb712ae0509cada31ed34c98b0d423637ee28f1f82008c24 |
File details
Details for the file ppmi_downloader-0.7.5-py3-none-any.whl
.
File metadata
- Download URL: ppmi_downloader-0.7.5-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b333519d99a1feffb2c9a2ba5fa31a71e45969fcf9af2fb304c8bcce2f8d9c08 |
|
MD5 | 9aee3578ba034f9130ffdc0ff50d5946 |
|
BLAKE2b-256 | 383f7a157bd0237840ba22f0021bb9f974b0629b4caca9804cb065e112a26518 |