d3b-center / d3b-cds-manifest-prep

scripts to prep manifests for cds
Apache License 2.0
1 stars 0 forks source link

🍱 update histologies file with manual diagnoses #108

Closed chris-s-friedman closed 1 year ago

chris-s-friedman commented 1 year ago

🍱 update histologies file with manual diagnoses

Update the histologies with manually fixed diagnoses for:

This is done by setting the value of the pathology_diagnosis column manually. inserted before this line in fetch_histologies.py:

def manual_fix(row):
    if row['Kids_First_Participant_ID'] =='PT_1KEER2Q1':
        return "Low-grade glioma/astrocytoma (WHO grade I/II)"
    elif row['Kids_First_Participant_ID'] =='PT_GQZ84ACS':
        return "Low-grade glioma/astrocytoma (WHO grade I/II)"
    elif row['Kids_First_Participant_ID'] =='PT_DACV00WF':
        return "Medulloblastoma"
    else:
        return row['pathology_diagnosis']

histologies['pathology_diagnosis'] = histologies.apply(manual_fix, axis=1)