Skip to content

Commit

Permalink
changing the genomic-position to use the location of the cds for protein
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnwright committed May 2, 2019
1 parent 3332421 commit d0c9fbc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rest_api/classes/generic_fields.clj
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,8 @@
(some->> (:cds.corresponding-protein/_protein object)
(map :cds/_corresponding-protein)
(filter #(not= "history" (:method/id (:locatable/method %))))
(map :gene.corresponding-cds/_cds)
first
(map :gene/_corresponding-cds)
(map sequence-fns/genomic-obj))
(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 d0c9fbc

Please sign in to comment.