Skip to content

Commit

Permalink
backend linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimarabab committed Jul 6, 2023
1 parent 49086c7 commit 52a494a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/src/core/phenotips_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,21 @@ def import_analysis_data(self, phenotips_json_data, phenotips_variants, phenotip
if genomic_unit['gene']:
new_sections = [{
"header": str(genomic_unit["gene"] + " Gene to Phenotype"), "content": [
{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Gene to Phenotype"), "value": []},
{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Gene to Phenotype"),
"value": []},
{
"type": "section-text", "field": 'HPO Terms',
"value": [self.extract_hpo_terms(phenotips_json_data["features"])]
},
]
}, {
"header": str(genomic_unit["gene"] + " Molecular Mechanism"),
"content": [{"type": "section-text", "field": str(genomic_unit["gene"] + " Molecular Mechanism"), "value": []}]
"content": [{"type": "section-text", "field": str(genomic_unit["gene"] + " Molecular Mechanism"),
"value": []}]
}, {
"header": str(genomic_unit["gene"] + " Function"),
"content": [{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Function"), "value": []},]
"content": [{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Function"),
"value": []},]
}]
analysis_data['sections'].extend(new_sections)

Expand Down

0 comments on commit 52a494a

Please sign in to comment.