From 913e4dd36d4d1951a9333cb620031e1b7c935fc5 Mon Sep 17 00:00:00 2001 From: Kevin Schaper Date: Tue, 12 Mar 2024 16:27:54 -0700 Subject: [PATCH] Add object taxon info for gene to gene association export --- src/monarch_ingest/utils/export_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/monarch_ingest/utils/export_utils.py b/src/monarch_ingest/utils/export_utils.py index 6e8be4ae..3983e8a3 100755 --- a/src/monarch_ingest/utils/export_utils.py +++ b/src/monarch_ingest/utils/export_utils.py @@ -126,6 +126,7 @@ def generate_tsv(tsv_fh, solr, filters): 'frequency_qualifier_label', 'sex_qualifier', 'sex_qualifier_label']) + gene_to_gene_extra_fields = ','.join(['object_taxon', 'object_taxon_label']) golr_params = { 'q': '*:*', @@ -140,6 +141,8 @@ def generate_tsv(tsv_fh, solr, filters): for filter in filters: if filter == 'category:"biolink:DiseaseToPhenotypicFeatureAssociation"': golr_params['fl'] += ',' + disease_to_phenotype_extra_fields + elif 'GeneToGene' in filter: + golr_params['fl'] += ',' + gene_to_gene_extra_fields count_params = { 'wt': 'json',