veg / alignment.js Goto Github PK
View Code? Open in Web Editor NEWJavascript alignment viewer
License: MIT License
Javascript alignment viewer
License: MIT License
Hello,
I am currently testing the use of MSA Viewers for the use in a react application.
After importing alignment.js to throw away project for testing, the view appears like this:
If I import the sample CD2.fasta data that is included in this repo, I then see this:
Could this be some css/stylization issue after importing?
I am also looking for some functionality where I can pass in a FASTA file as a prop to this component instead of allowing a user to do this via the import button. Is this possible?
Thanks,
Greg
Hello,
This library is really cool and thanks for creating this.
I have created a tree using phylotree.js and got it working to cater to different functionality. I now want to integrate the alignment information besides the nodes that are not collapsed. I tried doing this using a colored rectangles and some text but it does not work too well. My attempt is in the picture below.
Using alignment.js would be much more efficient and work much better. Is there a basic example I can refer to, to integrate phylotree.js and alignment.js together?
Thanks for your help,
15:38:44 sweaver@new-silverback gisaid-downloader master ? node translate-to-master.js /data/shares/gisaid/2020-03-29-metadata.json -o hi.json -f /data/shares/gisaid/2020-03-29.fasta
/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1
module.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=38)
ReferenceError: window is not defined
at r (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:182532)
at u (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:182620)
at t.exports (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:186192)
at Object.<anonymous> (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:22:77756)
at e (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:124)
at Module.<anonymous> (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:22:234172)
at e (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:124)
at /data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:923
at Object.<anonymous> (/data/shares/veg/SARS-CoV-2/gisaid-downloader/node_modules/react-phylotree/lib/bundle.js:1:933)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
While there is a color scheme for amino acid alignments, the Alignment component does not automatically detect them. This can cause issues; for example, here is what happens when amino acid data is uploaded to the main application's nucleotide alignment viewer:
A similar issue occurs in HyPhy-Vision. It would be nice to have the Alignment component attempt to detect the kind of data that is being supplied, as opposed to requiring an explicit declaration with a prop.
Add a line plot component, with support for multiple lines. Similar to BUSTED:
Similar to create-react-app
.
Can be used without callback, which is desirable in some cases.
There is an issue with the webpack build. The dev build is (of course) large, while the prod build is not including CSS.
Essentially reproducing what is here:
http://phylotree.hyphy.org/examples/large-tree/
Hello,
It looks like the tree tips and sequences are not aligning as expected:
Here is the file contents:
>art
artartartartarta
>bart
bartbartbartbart
>cady
cadycadycadycady
>daak
daakdaakdaakdaak
>gary
garygarygarygary
>ham
hamhamhamhamhamh
>kart
kartkartkartkart
>mary
marymarymarymary
>naat
naatnaatnaatnaat
>rant
rantrantrantrant
(art,((((gary,daak),(cady,bart)),(ham,((kart,(mary,(rant,naat))))))));
Thanks,
Greg
Hello!
I'm building a software called OpenGenomeBrowser, which has a MSA feature (example). Currently, I use MSAViewer, but I'm thinking about replacing it with something better that can also display phylogenetic trees.
Your tools (/fna-viewer) seems to be what I'm looking for. Can your library be used as standalone library or does it only work with node/yarn?
Best, MrTomRod
Add a SequenceLogo component.
Would it be possible to add a new key, sequences
, that holds the array of sequences and their respective headers? This way, metadata such as number_of_sequences
and number_of_sites
won't need to be filtered when traversing.
Dear @stephenshank,
Attempting to load a valid FASTA file with lower case sequences displays no error messages but only black boxes.
Best,
Sergei
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.