Giter Site home page Giter Site logo

hicsail / constellation-js Goto Github PK

View Code? Open in Web Editor NEW
10.0 16.0 8.0 3 MB

Library for combinatorially specifying, constraining, and exploring genetic design spaces.

Home Page: http://constellationcad.org

License: MIT License

JavaScript 99.78% HTML 0.22%
javascript computational-biology graph-algorithms graph visualization programming-languages synthetic-biology genetic-design constraint-programming combinatorial-search

constellation-js's People

Contributors

dany-fu avatar frederickjansen avatar gxavier38 avatar lapets avatar lucyq avatar vidyaap avatar xin-cao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

constellation-js's Issues

Implement categories better

Inputting 'cds', 'CDS', 'coding-sequence' and 'coding_sequence' all generate different results. Currently only 'CDS' will show the correct sbol symbol in D3.

replace graph lib and replace with d3

We are currently using go.js and do not have a license for the full version, thus leaving a water mark.
While this was easy to use to create a working demo, we should replace it with D3.

write algorithm to untangle nodes in display

Edges and nodes are currently tangled in one another making it difficult to understand their relationships.

The goal is to display them in a manner where they are naturally spread out.

screen shot 2018-05-24 at 2 47 23 pm

One approach would be to use force-directed drawing algorithms.
D3 already has an example of this: https://bl.ocks.org/mbostock/4062045

Since we are moving to D3 anyway, it probably makes most sense to use the example above.

Ideally, the nodes would look more like this:
screen shot 2018-05-24 at 2 54 55 pm

write unit tests for graph generation

Write unit tests covering cases for:

Binary operators (or, and, then):

  • Multiple leaves
  • Multiple roots
  • Leaf and root

Unary operators (one-or-more, zero-or-more):

  • Multiple leaves
  • Leaf and root

Document input and correct output for each

enhance UI of graph representation

Nodes:

  • Root node: white circle
  • Accept node: green circle
  • Leaf node: text (no change)

Edges:

  • Forward: straight arrow (no change)
  • Backward: curved arrow

style index page

Style text box, display box and header. Add description with valid operations

Fix bugs with commands

Multiple ors broke during refactoring. Seems to be an issue with epsilon nodes not being added
Multiple zero-or-ones seem to be failing due to an edge case with handleZeroOrOne
See unit tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.