Open neriaaa46 opened 1 year ago
Hi,
No, it's not possible now. I note it as a future enhancement. As a trick, you can put branch length as a support value and display support values (display-support props) but the display of the support values is not very satisfying, I have to fix it. Anyway, here is your tree that uses this trick: ((((Acholeplasma_laidlawii_PG_8A_14v1:1.58612[1.58612],Fusobacterium_nucleatum_ATCC_25586_14v1:1.16086[1.16086]):0.06377[0.06377],Clostridium_kluyveri_DSM_555_14v1:0.91146[0.91146]):0.16219[0.16219],((Caulobacter_crescentus_CB15_14v1:0.90135[0.90135],Azospirillum_brasilense_Sp245_14v1:0.39224[0.39224]):0.49903[0.49903],((Haemophilus_parainfluenzae_T3T1_14v1:0.29714[0.29714],(Erwinia_amylovora_ATCC_49946_14v1:0.09989[0.09989],(Escherichia_coli_O157_H7_Sakai_14v1:0.04762[0.04762],Klebsiella_pneumoniae_HS11286_14v1:0.03759[0.03759]):0.05164[0.05164]):0.15682[0.15682]):0.27993[0.27993],Acinetobacter_calcoaceticus_PHEA_2_14v1:0.6951[0.6951]):0.49095[0.49095]):0.55958[0.55958]):0.04485[0.04485],Rhodococcus_opacus_PD630_14v1:1.24402[1.24402])
Sed command to create it:
sed -e 's/\([0-9]\+\.[0-9]\+\)/\1\[\1]/g' tree.txt > tree2.txt
Ludo
This feature can very much help us and is very important. Can you estimate if this is something that will be soon or not planned soon?
Thank you very much for your help :)
Hi, I tried to implement the temporary solution you suggested for displaying the distances on the tree's branches (with display support values), I checked against another software (desktop) that displays the tree and it seems that the values are not the same. Is it possible that something needs to be added or changed to see the correct values on the branches ?
Hi, I work on a Vue project and use this library to display a tree of bacteria, I use a string input of the newick type, which also specifies distances between bacteria.
input example: ((((Acholeplasma_laidlawii_PG_8A_14v1:1.58612,Fusobacterium_nucleatum_ATCC_25586_14v1:1.16086):0.06377,Clostridium_kluyveri_DSM_555_14v1:0.91146):0.16219,((Caulobacter_crescentus_CB15_14v1:0.90135,Azospirillum_brasilense_Sp245_14v1:0.39224):0.49903,((Haemophilus_parainfluenzae_T3T1_14v1:0.29714,(Erwinia_amylovora_ATCC_49946_14v1:0.09989,(Escherichia_coli_O157_H7_Sakai_14v1:0.04762,Klebsiella_pneumoniae_HS11286_14v1:0.03759):0.05164):0.15682):0.27993,Acinetobacter_calcoaceticus_PHEA_2_14v1:0.6951):0.49095):0.55958):0.04485,Rhodococcus_opacus_PD630_14v1:1.24402);
My question: Is it possible to display the distances between the nodes of the tree?