-
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.
transform script now creates loader files
added README for description
- Loading branch information
Showing
2 changed files
with
42 additions
and
6 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,18 @@ | ||
# Cancer Moonshot Biobank to CTDC Transformer | ||
|
||
v0.1 (05 Feb 2024) | ||
|
||
|
||
The file (cmb-transform-ctdc.r)[./cmb-transform-ctdc.r] is an R script that uses the mapping spreadsheet (cmb-dbgap-to-ctdc-mapping.v02-05-24.xlsx)[./cmb-dbgap-to-ctdc-mapping.v02-05-24.xlsx] to transform Biobank data in dbGaP submission spreadsheets to CSV (.txt) files suitable for the Bento data loader. | ||
|
||
The transformation as of v0.1 performs the following actions: | ||
|
||
* Converts source (Biobank dbGaP) file column names to target (CTDC model) Property names; | ||
* Copies the data values for the desired columns (given in the mapping file) to the appropriate records in the loader files; | ||
* Regroups the desired columns from source data under desired Node in the target model, by creating per-node CSVs, named after the Nodes; | ||
* Correctly maintains the subject id and specimen id relationships with the data records; | ||
* Creates unique random IDs for each record in the CSVs (e.g., the values for "diagnosis\_id", "treatment\_id" and so on.). | ||
|
||
The data values themselves are not yet transformed to CTDC model values; this is a planned task that requires data mappings. | ||
|
||
|
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