# nvidia-collaboration
OHSU CEDAR Cyclic IF and H&E images
## Getting started
### Setup python environment
```commandline
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/*
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ACED-IDP/nvidia-collaboration",
"name": "gen3-util-plugin-nvidia",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9, <4",
"maintainer_email": "",
"keywords": "bioinformatics",
"author": "compbio",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/fd/75/ab4245a137a45ffa1a54e109469b62c03d00745462afefc52434b1adf863/gen3_util_plugin_nvidia-0.0.4.tar.gz",
"platform": null,
"description": "# nvidia-collaboration\nOHSU CEDAR Cyclic IF and H&E images\n\n## Getting started\n\n### Setup python environment\n\n```commandline\nsource venv/bin/activate\npython3 -m pip install -r requirements.txt\npython3 -m pip install -r requirements-dev.txt \npython3 -m pip install -e .\n```\n\n## Run meta import with --plugin_path\n\nThe input directory:\n\n```\ntests/fixtures-new/\n\u251c\u2500\u2500 HandE\n\u251c\u2500\u2500 RegisteredImages\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 17633-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 18538-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 19142-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 24952-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 30411-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 31022-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 31480-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 33548-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 38592-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 48411-6-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 54774-4-Scene-001\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 57494-6-Scene-001\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 57658-6-Scene-001\n\u2514\u2500\u2500 annotations\n\n```\n\nwill produce:\n\n```\ngen3_util meta import dir tests/fixtures/ tmp/output --project_id aced-nvidia --plugin_path gen3_util_plugin_nvidia --remove_path_prefix tests/fixtures/\nsummary:\n ResearchStudy:\n count: 1\n ResearchSubject:\n count: 13\n Patient:\n count: 13\n Specimen:\n count: 13\n DocumentReference:\n count: 738\n size: 74437\nmsg: OK\n\n\n```\n\n### expected results\n\nOutput files:\n\n```\ntmp/output\n\u251c\u2500\u2500 DocumentReference.ndjson\n\u251c\u2500\u2500 Patient.ndjson\n\u251c\u2500\u2500 ResearchStudy.ndjson\n\u251c\u2500\u2500 ResearchSubject.ndjson\n\u2514\u2500\u2500 Specimen.ndjson\n```\n\nIdentifiers:\n\n```\n$ cat tmp/output/*.ndjson | jq -rc '. as $r | .identifier[]? | [$r.resourceType, .value]'\n[\"Patient\",\"P1\"]\n[\"Specimen\",\"T1\"]\n```\n\n\n## Run the tests\n\n```\npytest tests/\n```\n## Distribution\n\n- PyPi\n\n```\n# update pypi\n\n# pypi credentials - see https://twine.readthedocs.io/en/stable/#environment-variables\n\nexport TWINE_USERNAME= # the username to use for authentication to the repository.\nexport TWINE_PASSWORD= # the password to use for authentication to the repository.\n\n# this could be maintained as so: export $(cat .env | xargs)\n\nrm -r dist/\npython3 setup.py sdist bdist_wheel\ntwine upload dist/*\n```\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "CEDAR / NVIDIA collaboration",
"version": "0.0.4",
"project_urls": {
"Bug Reports": "https://github.com/ACED-IDP/nvidia_collaboration/issues",
"Homepage": "https://github.com/ACED-IDP/nvidia-collaboration",
"Source": "https://github.com/ACED-IDP/nvidia_collaboration"
},
"split_keywords": [
"bioinformatics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "65aa7d7ea166ce410691e7f4d41e77b51bb0bfd7268e9292840e04135273e5b3",
"md5": "0cd19db69b5ea16ef17a113b66e7e1ca",
"sha256": "c255214cbbf8ac0f8b921c98a6933f6e5c11f456bee0a708fdea20b65e85fc47"
},
"downloads": -1,
"filename": "gen3_util_plugin_nvidia-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0cd19db69b5ea16ef17a113b66e7e1ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9, <4",
"size": 4995,
"upload_time": "2023-07-19T19:21:53",
"upload_time_iso_8601": "2023-07-19T19:21:53.867323Z",
"url": "https://files.pythonhosted.org/packages/65/aa/7d7ea166ce410691e7f4d41e77b51bb0bfd7268e9292840e04135273e5b3/gen3_util_plugin_nvidia-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fd75ab4245a137a45ffa1a54e109469b62c03d00745462afefc52434b1adf863",
"md5": "c2b7b41eb6ef4f9f5eacdbeff63d0324",
"sha256": "43528ae570ad276727777b26ab852b4d36136215dec3346b700a64a83624205e"
},
"downloads": -1,
"filename": "gen3_util_plugin_nvidia-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "c2b7b41eb6ef4f9f5eacdbeff63d0324",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9, <4",
"size": 5129,
"upload_time": "2023-07-19T19:21:55",
"upload_time_iso_8601": "2023-07-19T19:21:55.343352Z",
"url": "https://files.pythonhosted.org/packages/fd/75/ab4245a137a45ffa1a54e109469b62c03d00745462afefc52434b1adf863/gen3_util_plugin_nvidia-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-19 19:21:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ACED-IDP",
"github_project": "nvidia-collaboration",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "gen3-util-plugin-nvidia"
}