danielbiegler / visualize-dna-sequences Goto Github PK
View Code? Open in Web Editor NEWVisualizing DNA Sequences via Javascript
Home Page: https://danielbiegler.github.io/visualize-dna-sequences/
License: MIT License
Visualizing DNA Sequences via Javascript
Home Page: https://danielbiegler.github.io/visualize-dna-sequences/
License: MIT License
found something interesting here.
Unpacked its over 3gb big, I never tested opening something this huge in the browser. Is that even possible?
As I said, not tested yet, no idea how, when, where, .. just wanted to mention this, if someone is curious.
title.
would look nice and helps clarify what this is about
/u/DocZoi suggested:
[...] convert the DNA letters using the https://en.m.wikipedia.org/wiki/Genetic_code and use the resulting amino acids to generate the visualization.
Solution: Serve it ourself.
If the input is too large plotly will crash, currently there is no user feedback except for in the console which isn't good UX
Reproduce:
Now it prints:
Uncaught (in promise) RangeError: Array buffer allocation failed
at new ArrayBuffer (<anonymous>)
at h (plotly-latest.min.js:7)
at Object.y (plotly-latest.min.js:7)
at v.m.update (plotly-latest.min.js:7)
at e.exports (plotly-latest.min.js:7)
at m.y.update (plotly-latest.min.js:7)
at Object.e.exports [as plot] (plotly-latest.min.js:7)
at _.w.plot (plotly-latest.min.js:7)
at Object.r.plot (plotly-latest.min.js:7)
at r.drawData (plotly-latest.min.js:7)
really easy to add, might be useful.
Looks wayyyyy better.
https://plot.ly/javascript/plotlyjs-function-reference/#plotlyrelayout
Example: Plotly.relayout('plot', { 'xaxis.range':[123, 456], 'yaxis.range':[123, 456] })
See #14
/u/Bewelge suggested: example
meaning the browser will properly up/downscale the canvas to fit the screen. This should be toggle-able via a button, I think.
this'll be useful for very large sequences. A must is the ability to break a single image into smaller images so you dont have to render everything at once - but block by block.
See how google maps works as a comparison.
This'd be huge!
https://plot.ly/javascript/plotlyjs-function-reference/#plotlyrestyle
Example: Plotly.restyle('plot', {'marker.size': 82})
While this is possible via the JavaScript Developer Console already, I guess it would be still nice to have GUI for that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.