CEDAR / NVIDIA collaboration
Project description
nvidia-collaboration
OHSU CEDAR Cyclic IF and H&E images
Getting started
Setup python environment
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements-dev.txt
python3 -m pip install -e .
Run meta import with --plugin_path
The input directory:
tests/fixtures-new/
├── HandE
├── RegisteredImages
│ ├── 17633-6-Scene-001
│ ├── 18538-6-Scene-001
│ ├── 19142-6-Scene-001
│ ├── 24952-6-Scene-001
│ ├── 30411-6-Scene-001
│ ├── 31022-6-Scene-001
│ ├── 31480-6-Scene-001
│ ├── 33548-6-Scene-001
│ ├── 38592-6-Scene-001
│ ├── 48411-6-Scene-001
│ ├── 54774-4-Scene-001
│ ├── 57494-6-Scene-001
│ └── 57658-6-Scene-001
└── annotations
will produce:
gen3_util meta import dir tests/fixtures/ tmp/output --project_id aced-nvidia --plugin_path gen3_util_plugin_nvidia --remove_path_prefix tests/fixtures/
summary:
ResearchStudy:
count: 1
ResearchSubject:
count: 13
Patient:
count: 13
Specimen:
count: 13
DocumentReference:
count: 738
size: 74437
msg: OK
expected results
Output files:
tmp/output
├── DocumentReference.ndjson
├── Patient.ndjson
├── ResearchStudy.ndjson
├── ResearchSubject.ndjson
└── Specimen.ndjson
Identifiers:
$ cat tmp/output/*.ndjson | jq -rc '. as $r | .identifier[]? | [$r.resourceType, .value]'
["Patient","P1"]
["Specimen","T1"]
Run the tests
pytest tests/
Distribution
- PyPi
# update pypi
# pypi credentials - see https://twine.readthedocs.io/en/stable/#environment-variables
export TWINE_USERNAME= # the username to use for authentication to the repository.
export TWINE_PASSWORD= # the password to use for authentication to the repository.
# this could be maintained as so: export $(cat .env | xargs)
rm -r dist/
python3 setup.py sdist bdist_wheel
twine upload dist/*
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
Close
Hashes for gen3_util_plugin_nvidia-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e24357cf9acc587377650f1e607d95b52505e8e0472bb3b941ba37786730cd |
|
MD5 | 807ee64d7abbc999b688c99014c86049 |
|
BLAKE2b-256 | 94db678ee104f4202fd9d9d618ecc1fc4615e934bd8b2acaf4ebe349012abe3b |
Close
Hashes for gen3_util_plugin_nvidia-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd2bd59979afc062a04cf597f3c024a06850c7efb4af9b4b43e258a48740edd |
|
MD5 | 4524a2352d90b4fac3e36b62dfcbe605 |
|
BLAKE2b-256 | 13c6e65b70b325a6a365039cbeaeb6c1d2b1519090c265e4fdfb19960a1c1578 |