This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
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.
Merge pull request #67 from thehyve/age_at_diagnosis
Age at diagnosis
- Loading branch information
Showing
11 changed files
with
101 additions
and
10 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 @@ | ||
from pathlib import Path | ||
|
||
# Project root dir | ||
ROOT_DIR = Path(__file__).parent.resolve() | ||
|
||
TEST_DATA_DIR = ROOT_DIR.joinpath('test_data') | ||
TESTS_DIR = ROOT_DIR.joinpath('tests') | ||
TEST_EXPECTED_OUT_DIR = TESTS_DIR.joinpath('expected_out') |
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,4 @@ | ||
biomaterial_id src_biosource_id src_biomaterial_id type biomaterial_date | ||
BM1 BS1 RNA 12-10-2017 | ||
BM2 BS2 DNA 22-11-2017 | ||
BM3 BS3 RNA 12-12-2017 |
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,4 @@ | ||
biosource_id biosource_dedicated individual_id diagnosis_id src_biosource_id tissue biosource_date disease_status tumor_percentage | ||
BS1 Yes P1 D1 BS1 medula 12-03-2017 ST1 5 | ||
BS2 P2 D2 BS2 cortex 01-04-2017 ST2 3 | ||
BS3 P3 BS3 cortex 14-05-2017 ST1 2 |
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 @@ | ||
1 GENDER m male f female u unknown | ||
|
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,3 @@ | ||
diagnosis_id individual_id topography treatment_protocol tumor_type tumor_stage diagnosis_date center_treatment | ||
D1 P1 liver chemo neuroblastoma IV 01-05-2016 Center 1 | ||
D2 P2 kidney surgery nephroblastoma III Center 2 |
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,4 @@ | ||
individual_id taxonomy birth_date gender death_date IC_type IC_given_date IC_withdrawn_date IC_material IC_data IC_linking_ext report_her_susc report_inc_finding | ||
P1 Human 01-02-1993 f yes 01-03-2017 yes yes NA yes yes | ||
P2 Human 02-03-1992 m yes 10-04-2017 yes yes NA yes yes | ||
P3 Human 03-04-1994 f yes 11-05-2017 yes NA not applicable yes yes |
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,11 @@ | ||
study_id individual_id individual_study_id | ||
STUDY1 P1 1 | ||
STUDY1 P2 2 | ||
STUDY1 P3 3 | ||
STUDY1 P4 4 | ||
STUDY1 P5 5 | ||
STUDY2 P5 6 | ||
STUDY2 P6 7 | ||
STUDY2 P7 8 | ||
STUDY2 P8 9 | ||
STUDY2 P9 10 |
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,3 @@ | ||
study_id acronym title datadictionary | ||
STUDY1 STD1 Study 1 http://www.example.com | ||
STUDY2 STD2 Study 2 http://www.example.com |
12 changes: 12 additions & 0 deletions
12
tests/expected_out/missing_diagnosis_date/csr_transformation_data.tsv
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,12 @@ | ||
INDIVIDUAL_ID BIOMATERIAL_ID DIAGNOSIS_ID BIOSOURCE_ID SRC_BIOSOURCE_ID BIOMATERIAL_DATE BIOSOURCE_DATE BIOSOURCE_DEDICATED BIRTH_DATE CENTER_TREATMENT DEATH_DATE DIAGNOSIS_DATE DISEASE_STATUS GENDER IC_DATA IC_GIVEN_DATE IC_LINKING_EXT IC_MATERIAL IC_TYPE IC_WITHDRAWN_DATE REPORT_HER_SUSC REPORT_INC_FINDING SRC_BIOMATERIAL_ID TAXONOMY TISSUE TOPOGRAPHY TREATMENT_PROTOCOL TUMOR_PERCENTAGE TUMOR_STAGE TUMOR_TYPE TYPE | ||
P1 1993-02-01 f yes 2017-03-01 yes yes yes yes Human | ||
P2 1992-03-02 m yes 2017-04-10 yes yes yes yes Human | ||
P3 1994-04-03 f 2017-05-11 not applicable yes yes yes yes Human | ||
P1 D1 Center 1 2016-05-01 liver chemo IV neuroblastoma | ||
P2 D2 Center 2 kidney surgery III nephroblastoma | ||
P1 D1 BS1 BS1 2017-03-12 Yes ST1 medula 5 | ||
P2 D2 BS2 BS2 2017-04-01 ST2 cortex 3 | ||
P3 BS3 BS3 2017-05-14 ST1 cortex 2 | ||
P1 BM1 D1 BS1 BS1 2017-10-12 RNA | ||
P2 BM2 D2 BS2 BS2 2017-11-22 DNA | ||
P3 BM3 BS3 BS3 2017-12-12 RNA |
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