Skip to content

Commit

Permalink
allele registry may not always have a transcript entry
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Aug 1, 2023
1 parent c53acce commit de910e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/models/mane_select_transcript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def mane_select_transcript
Rails.cache.fetch(cache_key(variant), expires_in: 24.hours) do
if variant.allele_registry_id
transcripts = get_allele_registry_transcripts(variant)
select = transcripts.find{ |t| t.key?('MANE') && t['MANE']['maneStatus'] == 'MANE Select' }
select = transcripts&.find{ |t| t.key?('MANE') && t['MANE']['maneStatus'] == 'MANE Select' }
if select
select.dig('MANE', 'nucleotide', 'Ensembl', 'hgvs')
end
Expand Down

0 comments on commit de910e8

Please sign in to comment.