-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from neurobagel/feat-109/discrete-values-check
Implement checks for unannotated categorical column values + unused annotated missing values
- Loading branch information
Showing
7 changed files
with
310 additions
and
8 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
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,86 @@ | ||
{ | ||
"participant_id": { | ||
"Description": "A participant ID", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:ParticipantID", | ||
"Label": "Unique participant identifier" | ||
} | ||
} | ||
}, | ||
"session_id": { | ||
"Description": "A session ID", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:SessionID", | ||
"Label": "Unique session identifier" | ||
} | ||
} | ||
}, | ||
"group": { | ||
"Description": "Group variable", | ||
"Levels": { | ||
"PAT": "Patient", | ||
"CTRL": "Control subject" | ||
}, | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:diagnosis", | ||
"Label": "Diagnosis" | ||
}, | ||
"Levels": { | ||
"PAT": { | ||
"TermURL": "snomed:49049000", | ||
"Label": "Parkinson's disease" | ||
}, | ||
"CTRL": { | ||
"TermURL": "purl:NCIT_C94342", | ||
"Label": "Healthy Control" | ||
} | ||
}, | ||
"MissingValues": ["OTHER", "NOT IN TSV"] | ||
} | ||
}, | ||
"tool_item1": { | ||
"Description": "item 1 scores for an imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:1234", | ||
"Label": "Imaginary tool" | ||
}, | ||
"MissingValues": ["missing", "NOT IN TSV 1", "NOT IN TSV 2"] | ||
} | ||
}, | ||
"tool_item2": { | ||
"Description": "item 2 scores for an imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:1234", | ||
"Label": "Imaginary tool" | ||
}, | ||
"MissingValues": ["missing", "NOT IN TSV 1", "NOT IN TSV 2"] | ||
} | ||
}, | ||
"other_tool_item1": { | ||
"Description": "item 1 scores for a different imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:4321", | ||
"Label": "A different imaginary tool" | ||
}, | ||
"MissingValues": ["none"] | ||
} | ||
} | ||
} |
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,7 @@ | ||
participant_id session_id group tool_item1 tool_item2 other_tool_item1 | ||
sub-01 ses-01 PAT 11.0 "missing" "none" | ||
sub-01 ses-02 PAT "missing" 12.0 "none" | ||
sub-02 ses-01 OTHER "missing" "missing" "none" | ||
sub-02 ses-02 OTHER "missing" "missing" "none" | ||
sub-03 ses-01 CTRL 10.0 8.0 "ok" | ||
sub-03 ses-02 CTRL 10.0 8.0 "bad" |
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,86 @@ | ||
{ | ||
"participant_id": { | ||
"Description": "A participant ID", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:ParticipantID", | ||
"Label": "Unique participant identifier" | ||
} | ||
} | ||
}, | ||
"session_id": { | ||
"Description": "A session ID", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:SessionID", | ||
"Label": "Unique session identifier" | ||
} | ||
} | ||
}, | ||
"group": { | ||
"Description": "Group variable", | ||
"Levels": { | ||
"PAT": "Patient", | ||
"CTRL": "Control subject" | ||
}, | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:diagnosis", | ||
"Label": "Diagnosis" | ||
}, | ||
"Levels": { | ||
"PAT": { | ||
"TermURL": "snomed:49049000", | ||
"Label": "Parkinson's disease" | ||
}, | ||
"CTRL": { | ||
"TermURL": "purl:NCIT_C94342", | ||
"Label": "Healthy Control" | ||
} | ||
}, | ||
"MissingValues": ["OTHER"] | ||
} | ||
}, | ||
"tool_item1": { | ||
"Description": "item 1 scores for an imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:1234", | ||
"Label": "Imaginary tool" | ||
}, | ||
"MissingValues": ["missing"] | ||
} | ||
}, | ||
"tool_item2": { | ||
"Description": "item 2 scores for an imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:1234", | ||
"Label": "Imaginary tool" | ||
}, | ||
"MissingValues": ["missing"] | ||
} | ||
}, | ||
"other_tool_item1": { | ||
"Description": "item 1 scores for a different imaginary tool", | ||
"Annotations": { | ||
"IsAbout": { | ||
"TermURL": "bg:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:4321", | ||
"Label": "A different imaginary tool" | ||
}, | ||
"MissingValues": ["none"] | ||
} | ||
} | ||
} |
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,9 @@ | ||
participant_id session_id group tool_item1 tool_item2 other_tool_item1 | ||
sub-01 ses-01 PAT 11.0 "missing" "none" | ||
sub-01 ses-02 PAT "missing" 12.0 "none" | ||
sub-02 ses-01 OTHER "missing" "missing" "none" | ||
sub-02 ses-02 OTHER "missing" "missing" "none" | ||
sub-03 ses-01 CTRL 10.0 8.0 "ok" | ||
sub-03 ses-02 CTRL 10.0 8.0 "bad" | ||
sub-04 ses-01 UNANNOTATED 12.0 9.0 "ok" | ||
sub-04 ses-02 UNANNOTATED 12.0 9.0 "bad" |
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