Skip to content

Commit

Permalink
sorting features
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnwright committed May 10, 2019
1 parent ba85805 commit 7ef4357
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rest_api/classes/sequence/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@
{:start (- end
(- (:stop feature) (:start feature)))
:stop (count sequence-positive)})))))))
modified-positive-features-with-padding (if (> padding 0)
(add-padding-to-feature-list
modified-positive-features
padding
(count sequence-positive))
modified-positive-features)]
modified-positive-features-with-padding (sort-by :start (if (> padding 0)
(add-padding-to-feature-list
modified-positive-features
padding
(count sequence-positive))
modified-positive-features))]
{:positive_strand
{:features modified-positive-features-with-padding
:sequence sequence-positive}
Expand Down

0 comments on commit 7ef4357

Please sign in to comment.