Skip to content

Commit

Permalink
Merge pull request #576 from monarch-initiative/taxon-info-gene-to-ge…
Browse files Browse the repository at this point in the history
…ne-export

Add object taxon info for gene to gene association export
  • Loading branch information
kevinschaper authored Mar 13, 2024
2 parents 73b0967 + 913e4dd commit 3a61941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/monarch_ingest/utils/export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': '*:*',
Expand All @@ -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',
Expand Down

0 comments on commit 3a61941

Please sign in to comment.