-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gene info processing for druggability revamp (#163)
* Removed druggability dataset from gene_info provenance * Updated gene_metadata syn25953363 version from 13 to 14 * Added pharos_classes file to config and test_config * Updated gene_info transform to use pharos_classes dataset and only include pharos_class in druggability object * Added pharos classes good input for testing * Updated test outputs for gene_info to include pharos_class * pytest passing * Updated druggability json for gx validation and commented out the validation itself so I can run adt without problems and then update gx validation * Got gx validation to work. Had to use mostly=0.5, not ideal * Removed the mostly from the gene_info druggability json validation * Added docstrings to gene_info tests to prevent issues with CI interrogate * Sorted biodomains column so we stop seeing unnecessary changes in PRs * pin ubuntu version * fixes pin --------- Co-authored-by: Beatriz Saldana <[email protected]> Co-authored-by: bwmac <[email protected]>
- Loading branch information
1 parent
17485f6
commit 5c5931b
Showing
12 changed files
with
243 additions
and
252 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
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
57 changes: 24 additions & 33 deletions
57
src/agoradatatools/great_expectations/gx/json_schemas/gene_info/druggability.json
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,40 +1,31 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "http://example.com/example.json", | ||
"type": ["array", "null"], | ||
"default": [], | ||
"title": "Druggability Schema", | ||
"items": { | ||
"type": "object", | ||
"default": {}, | ||
"properties": { | ||
"sm_druggability_bucket": { | ||
"type": "number" | ||
}, | ||
"safety_bucket": { | ||
"type": "number" | ||
}, | ||
"abability_bucket": { | ||
"type": "number" | ||
}, | ||
"pharos_class": { | ||
"type": ["string", "null"] | ||
}, | ||
"classification": { | ||
"type": ["object", "null"], | ||
"default": null, | ||
"title": "Root Schema", | ||
"properties": { | ||
"pharos_class": { | ||
"type": "array", | ||
"default": [], | ||
"title": "The pharos_class Schema", | ||
"items": { | ||
"type": "string", | ||
"minLength": 22, | ||
"maxLength": 1000 | ||
}, | ||
"safety_bucket_definition": { | ||
"type": "string", | ||
"minLength": 50, | ||
"maxLength": 1000 | ||
}, | ||
"abability_bucket_definition": { | ||
"type": "string", | ||
"minLength": 44, | ||
"maxLength": 1000 | ||
"default": "", | ||
"title": "Pharos object", | ||
"enum": [ | ||
"Tdark", | ||
"Tchem", | ||
"Tbio", | ||
"Tclin", | ||
null | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"examples": [{ | ||
"pharos_class": [ | ||
"Tchem" | ||
] | ||
}] | ||
} |
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
20 changes: 20 additions & 0 deletions
20
tests/test_assets/gene_info/input/pharos_classes_good_input.csv
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,20 @@ | ||
ensembl_gene_id,uniprot_id,hgnc_symbol,pharos_class | ||
ENSG00000000005,Q9H2S6,TNMD,Tbio | ||
ENSG00000000419,O60762,DPM1,Tbio | ||
ENSG00000000457,Q8IZE3,SCYL3,Tbio | ||
ENSG00000000460,Q9NSG2,C1orf112,Tbio | ||
ENSG00000000938,P09769,FGR,Tchem | ||
ENSG00000000971,P08603,CFH,Tbio | ||
ENSG00000001036,Q9BTY2,FUCA2,Tchem | ||
ENSG00000001084,P48506,GCLC,Tchem | ||
ENSG00000001167,P23511,NFYA,Tbio | ||
ENSG00000001460,Q5TH74,STPG1,Tbio | ||
ENSG00000001461,Q6P499,NIPAL3,Tdark | ||
ENSG00000001497,Q9Y4W2,LAS1L,Tbio | ||
ENSG00000001561,Q9Y6X5,ENPP4,Tbio | ||
ENSG00000001617,Q13275,SEMA3F,Tbio | ||
ENSG00000001626,P13569,CFTR,Tclin | ||
ENSG00000001629,Q9P2G1,ANKIB1,Tdark | ||
ENSG00000001630,Q16850,CYP51A1,Tchem | ||
ENSG00000001631,O00522,KRIT1,Tbio | ||
ENSG00000001631,O00522,KRIT1,Tchem |
Oops, something went wrong.