Skip to content

Commit

Permalink
fixing json structure for the genomic_position field
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnwright committed May 2, 2019
1 parent d0c9fbc commit 5d5545c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest_api/classes/generic_fields.clj
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@
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))
(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 5d5545c

Please sign in to comment.