Comments (6)
Also, in wich way is it possible to export the tree in jpeg/png or svg?
from phylotree.js.
Dear @jpsglouzon,
Sure, I'll make a gist. Can you provide an example Newick tree with clustering annotations, to make sure it works on your data. Or if you have an external annotation file (like .csv), that would work too.
Also, we do have code for exporting the trees, I'll plug it into the example.
Best,
Sergei
from phylotree.js.
This is the csv of the clustering:
PSTVd,TASVd,TCDVd,CSVd,CLVd,CCCvd,ASSVd,PBCVd,CVd-OS,CbVd-1,CbVd-2,CbVd-3,CCHMVd,ELVd,ASBVd,HSVd,CVdIV,CVDIII,CBLVd,CEVd,PLMVd
1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,1,2
And the newick tree with bootstrap values:
(((((((TASVd:0.06828169,CSVd:0.06828169)0.8170:0.05635267,CEVd:0.12463435)0.8290:0.06964112,(PSTVd:0.02617095,TCDVd:0.02617095)1.0000:0.16810452)0.6700:0.08751399,CLVd:0.28178947)0.8700:0.13005822,(HSVd:0.26704011,(CCCVd:0.20577326,CVdIV:0.20577326)0.6520:0.06126685)0.8790:0.14480757)0.8810:0.18306776,(((CbVd-2:0.08236826,CbVd-3:0.08236826)0.9300:0.10543001,CbVd-1:0.18779827)0.9970:0.29222981,(PBCVd:0.38569588,(CBLVd:0.30671661,(ASSVd:0.25961362,(CVd-OS:0.14517605,CVDIII:0.14517605)0.9870:0.11443757)0.5950:0.04710299)0.5660:0.07897927)0.7300:0.09433220)0.6860:0.11488736)0.9840:0.46199326,((CCHMVd:0.37098428,PLMVd:0.37098428)0.8850:0.20471288,(ELVd:0.37028264,ASBVd:0.37028264)0.8730:0.20541453)0.9840:0.48121154);
Thanks.
from phylotree.js.
Dear @jpsglouzon,
Take a look at http://bl.ocks.org/spond/dbc459acfaa6f134c67d
Sergei
from phylotree.js.
It works like a charm.
Thank your very much @spond .
from phylotree.js.
@spond what if you do not have a cluster file but you want to get the cluster from the instance of the created tree and subsequently color. or better yet how can you get a cluster file from a created tree
from phylotree.js.
Related Issues (20)
- Setting the font-size doesn't work HOT 3
- Newick files without lengths should not be coerced to distances of 1 HOT 1
- Node IDs are undefined HOT 4
- Some problems when I'm trying to use with react and electron HOT 5
- TS types HOT 2
- Allow menu to be shown on 'contextmenu'
- Is it possible to register a zoom callback on the tree? HOT 1
- Bug in escaping single quotes in Newick export HOT 1
- Does phylotree use a specific version of d3 HOT 2
- How to remove the label of tips?
- Scale bar in Phylotree.js HOT 2
- Lag when loading my large phylogeny in radical mode in observable
- How to color the bubble using different colors? HOT 2
- Test giving error due to missing file
- PhyloXML string not supported
- Error on PhyloXML trees with single-branch clades
- Error on PhyloXML documents with multiple phylogenies
- Using phylotree in vue3 HOT 4
- Feature request - face to face tree plot HOT 2
- A question about redering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phylotree.js.