Skip to content

Commit

Permalink
Merge branch 'master' into feature/transcript-cds-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnwright authored May 3, 2019
2 parents 752f095 + 5d5545c commit 6728a1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rest_api/classes/generic_fields.clj
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@
id-kw (first (filter #(= (name %) "id") (keys object)))
role (namespace id-kw)]
{:data (if (= role "protein")
(some->> (:cds.corresponding-protein/_protein object)
[(some->> (:cds.corresponding-protein/_protein object)
(map :cds/_corresponding-protein)
(filter #(not= "history" (:method/id (:locatable/method %))))
(first)
(sequence-fns/genomic-obj))

(when-let [position (sequence-fns/genomic-obj object)]
[position]))
:description "The genomic location of the sequence"}))
Expand Down

0 comments on commit 6728a1e

Please sign in to comment.