Skip to content

Commit

Permalink
Merge pull request #8294 from uc-cdis/chore/prometheus_agg_mds_config…
Browse files Browse the repository at this point in the history
…_with_commons_name_and_bloodpac_normalizations

Normalizes cancer_grade for Bloodpac and capitalizes GDC, PDC commons name
  • Loading branch information
jawadqur authored Jan 23, 2025
2 parents 476ecf1 + 7c0740f commit bae413a
Showing 1 changed file with 44 additions and 30 deletions.
74 changes: 44 additions & 30 deletions prometheus.data-commons.org/metadata/aggregate_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"study_description": "path:name",
"full_name": "",
"short_name": "",
"commons": "gdc",
"commons": "GDC",
"study_url": "",
"_subjects_count": {
"path": "summary.case_count",
Expand All @@ -155,7 +155,7 @@
"keep_original_fields": false,
"field_mappings": {
"authz": "/VA",
"commons": "pdc",
"commons": "PDC",
"tags": [
{
"name": "path:disease_type",
Expand Down Expand Up @@ -217,7 +217,21 @@
"subject_ethnicity": "path:ethnicity",
"subject_metastasis": "path:metastasis",
"subject_cancer_type": "path:cancer_type",
"subject_cancer_grade": "path:cancer_grade",
"subject_cancer_grade": {
"path": "cancer_grade",
"filters": [
"normalize_value"
],
"filterParams": {
"normalize_value": {
"Grade 1": "Grade I",
"Grade 2": "Grade II",
"Grade 3": "Grade III",
"Grade 4": "Grade IV"
}
},
"default": ""
},
"subject_cancer_stage": "path:cancer_stage",
"subject_year_of_birth": "path:year_of_birth",
"subject_primary_disease": "path:primary_disease",
Expand All @@ -239,7 +253,7 @@
"tags": {
"path": "tags",
"filters": [
"normalize_tags"
"normalize_tags"
],
"filterParams": {
"normalize_tags": {
Expand Down Expand Up @@ -289,14 +303,14 @@
],
"filterParams": {
"normalize_value": {
"M": "Male",
"F": "Female",
"male": "Male",
"female": "Female",
"not reported": "Not Reported"
"M": "Male",
"F": "Female",
"male": "Male",
"female": "Female",
"not reported": "Not Reported"
}
},
"default": ""
"default": ""
},
"subject_ethnicity": {
"path": "ethnicity",
Expand All @@ -305,10 +319,10 @@
],
"filterParams": {
"normalize_value": {
"NOT HISPANIC OR LATINO": "Not Hispanic or Latino",
"not reported": "Not Reported",
"DECLINED TO ANSWER": "Declined to Answer",
"HISPANIC OR LATINO": "Hispanic or Latino"
"NOT HISPANIC OR LATINO": "Not Hispanic or Latino",
"not reported": "Not Reported",
"DECLINED TO ANSWER": "Declined to Answer",
"HISPANIC OR LATINO": "Hispanic or Latino"
}
},
"default": ""
Expand All @@ -328,14 +342,14 @@
],
"filterParams": {
"normalize_value": {
"Grade 1": "Grade I",
"G1": "Grade I",
"Grade 2": "Grade II",
"G2": "Grade II",
"Grade 3": "Grade III",
"G3": "Grade III",
"Grade 4": "Grade IV",
"G4": "Grade IV"
"Grade 1": "Grade I",
"G1": "Grade I",
"Grade 2": "Grade II",
"G2": "Grade II",
"Grade 3": "Grade III",
"G3": "Grade III",
"Grade 4": "Grade IV",
"G4": "Grade IV"
}
},
"default": ""
Expand Down Expand Up @@ -409,7 +423,7 @@
}
],
"_unique_id": "path:id",
"commons": "gdc",
"commons": "GDC",
"disease_type": "path:disease_type",
"primary_site": "path:primary_site",
"subject_id": "path:submitter_id",
Expand All @@ -418,7 +432,7 @@
"subject_gender": {
"path": "demographic.gender",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand All @@ -434,7 +448,7 @@
"subject_ethnicity": {
"path": "demographic.ethnicity",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand All @@ -451,7 +465,7 @@
"subject_cancer_grade": {
"path": "diagnoses[*].tumor_grade",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand Down Expand Up @@ -494,7 +508,7 @@
}
],
"_unique_id": "path:case_submitter_id",
"commons": "pdc",
"commons": "GDC",
"disease_type": "path:disease_type",
"primary_site": "path:primary_site",
"subject_id": "path:case_submitter_id",
Expand All @@ -503,7 +517,7 @@
"subject_gender": {
"path": "demographic.gender",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand All @@ -519,7 +533,7 @@
"subject_ethnicity": {
"path": "demographic.ethnicity",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand All @@ -536,7 +550,7 @@
"subject_cancer_grade": {
"path": "diagnoses[*].tumor_grade",
"filters": [
"normalize_value"
"normalize_value"
],
"filterParams": {
"normalize_value": {
Expand Down

0 comments on commit bae413a

Please sign in to comment.