-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration test; fix bugs related to edges being added with nan …
…values and split not defined edges; setup code quality with black and isort
- Loading branch information
Showing
16 changed files
with
1,006 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[bumpversion] | ||
current_version = 0.0.1 | ||
commit = True | ||
tag = True | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) | ||
serialize = {major}.{minor}.{patch} | ||
|
||
[bumpversion:file:pyproject.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
fail_fast: false | ||
default_language_version: | ||
python: python3 | ||
default_stages: | ||
- commit | ||
- push | ||
minimum_pre_commit_version: 2.7.1 | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
- repo: https://github.com/snok/pep585-upgrade | ||
rev: v1.0 | ||
hooks: | ||
- id: upgrade-type-hints | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
exclude: ^.bumpversion.cfg$ | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
args: [--unsafe] | ||
- id: check-ast | ||
- id: fix-encoding-pragma | ||
args: [--remove] # for Python3 codebase, it's not necessary | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: python-no-eval | ||
- id: python-use-type-annotations | ||
- id: python-check-blanket-noqa | ||
- id: rst-backticks | ||
- id: rst-directive-colons | ||
- id: rst-inline-touching-normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Nodes: | ||
# clinical terms (Snomed CT) | ||
Patient ID: | ||
coding_system: snomedct | ||
object_type: instance | ||
id_in_coding_system: 116154003 | ||
Overall Survival (days): | ||
coding_system: snomedct | ||
object_type: concept | ||
id_in_coding_system: 445320007 | ||
Clinical_Oxygen saturation in Arterial blood ; %: | ||
coding_system: snomedct | ||
object_type: concept | ||
id_in_coding_system: 442476006 | ||
# Lab values (Loinc) | ||
LAB_Eos. Granulozyten# ; /nl: | ||
coding_system: loinc | ||
object_type: concept | ||
id_in_coding_system: 26449-9 | ||
# Diseases (ICD) | ||
ICD_B95: | ||
coding_system: icd10 | ||
object_type: concept | ||
id_in_coding_system: B95 | ||
ICD_A02: | ||
coding_system: icd10 | ||
object_type: concept | ||
id_in_coding_system: A02 | ||
Cancer_C01: | ||
coding_system: icd10 | ||
object_type: concept | ||
id_in_coding_system: C01 | ||
# Operations and procedures (german OPS) | ||
OPS_1-100: | ||
coding_system: ops | ||
object_type: concept | ||
id_in_coding_system: 1-100 | ||
# not mapped columns | ||
not_mapped_discrete_value: | ||
coding_system: not_mapped_to_ontology | ||
object_type: concept | ||
id_in_coding_system: .nan | ||
not_mapped_continuous_value: | ||
coding_system: not_mapped_to_ontology | ||
object_type: concept | ||
id_in_coding_system: .nan | ||
|
||
Edges: | ||
HAS_CLINICAL_PARAMETER: | ||
source_node: Patient ID | ||
target_nodes: [Overall Survival (days), Clinical_Oxygen saturation in Arterial blood ; %] | ||
properties: | ||
value: | ||
type: float # TODO: use float because int is also float (but is this really a good solution?) | ||
HAS_LAB_VALUE: | ||
source_node: Patient ID | ||
target_nodes: [LAB_Eos. Granulozyten# ; /nl] | ||
properties: | ||
value: | ||
type: float | ||
HAS_DISEASE: | ||
source_node: Patient ID | ||
target_nodes: [ICD_B95, ICD_A02, Cancer_C01] | ||
HAS_TREATMENT: | ||
source_node: Patient ID | ||
target_nodes: [OPS_1-100] | ||
NOT_DEFINED_BINARY: | ||
source_node: Patient ID | ||
target_nodes: | ||
- not_mapped_discrete_value | ||
NOT_DEFINED_CONTINUOUS: | ||
properties: | ||
value: | ||
type: float | ||
source_node: Patient ID | ||
target_nodes: | ||
- not_mapped_continuous_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Patient ID,Overall Survival (days),LAB_Eos. Granulozyten# ; /nl,ICD_B95,ICD_A02,Clinical_Oxygen saturation in Arterial blood ; %,Cancer_C01,OPS_1-100,not_mapped_discrete_value,not_mapped_continuous_value | ||
1,150,0.11,0,1,97,0,1,1,0.1 | ||
2,164,0.12,1,1,96,0,1,0,0.0 | ||
3,"",,,,,1,,, | ||
4,,0.14,0,0,94,,0,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
sleep 15 | ||
echo "Creating database '$BC_TABLE_NAME'" | ||
cypher-shell -u $NEO4J_USER -p $NEO4J_PASSWORD "create database $BC_TABLE_NAME;" | ||
echo "Database created!" | ||
echo "Database created!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.