|
58 | 58 | 'year_of_diagnosis': 'year', |
59 | 59 | 'days_to_birth': 'by_negative_3k', |
60 | 60 | 'year_of_initial_pathologic_diagnosis': 'year', |
61 | | - 'age_at_diagnosis': None |
| 61 | + 'age_at_diagnosis': None, |
| 62 | + 'SUVbw': 'SUVbw', |
| 63 | + 'Volume': 'Volume', |
| 64 | + 'Diameter': 'Diameter', |
| 65 | + 'Surface_area_of_mesh': 'Surface_area_of_mesh', |
| 66 | + 'Total_Lesion_Glycolysis': 'Total_Lesion_Glycolysis', |
| 67 | + 'Standardized_Added_Metabolic_Activity': 'Standardized_Added_Metabolic_Activity', |
| 68 | + 'Percent_Within_First_Quarter_of_Intensity_Range': 'Percent_Within_First_Quarter_of_Intensity_Range', |
| 69 | + 'Percent_Within_Third_Quarter_of_Intensity_Range': 'Percent_Within_Third_Quarter_of_Intensity_Range', |
| 70 | + 'Percent_Within_Fourth_Quarter_of_Intensity_Range': 'Percent_Within_Fourth_Quarter_of_Intensity_Range', |
| 71 | + 'Percent_Within_Second_Quarter_of_Intensity_Range': 'Percent_Within_Second_Quarter_of_Intensity_Range', |
| 72 | + 'Standardized_Added_Metabolic_Activity_Background': 'Standardized_Added_Metabolic_Activity_Background', |
| 73 | + 'Glycolysis_Within_First_Quarter_of_Intensity_Range': 'Glycolysis_Within_First_Quarter_of_Intensity_Range', |
| 74 | + 'Glycolysis_Within_Third_Quarter_of_Intensity_Range': 'Glycolysis_Within_Third_Quarter_of_Intensity_Range', |
| 75 | + 'Glycolysis_Within_Fourth_Quarter_of_Intensity_Range': 'Glycolysis_Within_Fourth_Quarter_of_Intensity_Range', |
| 76 | + 'Glycolysis_Within_Second_Quarter_of_Intensity_Range': 'Glycolysis_Within_Second_Quarter_of_Intensity_Range' |
62 | 77 | } |
63 | 78 |
|
64 | 79 | ranges = { |
|
69 | 84 | 'by_500': [{'first': "500", "last": "6000", "gap": "500", "include_lower": False, "unbounded": True, |
70 | 85 | "include_upper": True, 'type': 'I'}], |
71 | 86 | 'year': [{'first': "1976", "last": "2015", "gap": "5", "include_lower": True, "unbounded": False, |
72 | | - "include_upper": False, 'type': 'I'}] |
| 87 | + "include_upper": False, 'type': 'I'}], |
| 88 | + 'SUVbw': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '3', 'last': '12', 'gap': '1'}], |
| 89 | + 'Volume': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '10', 'last': '28000', 'gap': '2800'}], |
| 90 | + 'Diameter': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '6', 'last': '55', 'gap': '6'}], |
| 91 | + 'Surface_area_of_mesh': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '150', 'last': '4500', 'gap': '435'}], |
| 92 | + 'Total_Lesion_Glycolysis': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '78', 'last': '698', 'gap': '78'}], |
| 93 | + 'Standardized_Added_Metabolic_Activity': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '56', 'last': '502', 'gap': '56'}], |
| 94 | + 'Percent_Within_First_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '10', 'last': '90', 'gap': '10'}], |
| 95 | + 'Percent_Within_Third_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '10', 'last': '90', 'gap': '10'}], |
| 96 | + 'Percent_Within_Fourth_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '10', 'last': '90', 'gap': '10'}], |
| 97 | + 'Percent_Within_Second_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '10', 'last': '90', 'gap': '10'}], |
| 98 | + 'Standardized_Added_Metabolic_Activity_Background': [{'type': 'F', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '0.5', 'last': '5', 'gap': '0.5'}], |
| 99 | + 'Glycolysis_Within_First_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '28', 'last': '251', 'gap': '28'}], |
| 100 | + 'Glycolysis_Within_Third_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '25', 'last': '225', 'gap': '25'}], |
| 101 | + 'Glycolysis_Within_Fourth_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '19', 'last': '170', 'gap': '19'}], |
| 102 | + 'Glycolysis_Within_Second_Quarter_of_Intensity_Range': [{'type': 'I', 'include_lower': '1', 'include_upper': '0', 'unbounded': '1', 'first': '25', 'last': '227', 'gap': '25'}] |
73 | 103 | } |
74 | 104 |
|
75 | 105 | BQ_PROJ_DATASET = 'idc-dev-etl.idc_tcia_views_mvp_wave0' |
@@ -576,8 +606,11 @@ def main(): |
576 | 606 |
|
577 | 607 | attr = all_attrs[line_split[0]] |
578 | 608 |
|
579 | | - if attr['type'] == Attribute.CONTINUOUS_NUMERIC: |
580 | | - attr['range'] = [] |
| 609 | + if attr['type'] == Attribute.CONTINUOUS_NUMERIC and 'range' not in attr: |
| 610 | + if attr['name'] in ranges_needed: |
| 611 | + attr['range'] = ranges.get(ranges_needed.get(attr['name'], ''), []) |
| 612 | + else: |
| 613 | + attr['range'] = [] |
581 | 614 |
|
582 | 615 | attr['solr_collex'].append(SOLR_INDEX['dicom_derived']) |
583 | 616 | attr['bq_tables'].append(BQ_TABLES['quan']) |
|
0 commit comments