Open eacattle opened 5 months ago
Hi! Wow, that sounds like a tremendous task! How were the nodes collapsed? Did you just use the Collapse node
further transformation?
Hi there! Yes, it's a pretty comprehensive tree. Yes, I used collapse on further transformations and then also added a name attribute to show a new name for each collapsed clade.
Sincerely, Escher Cattle (He/Him) NCSU Graduate Student- Entomology
On Thu, May 30, 2024, 3:28 PM Giorgio Bianchini @.***> wrote:
Hi! Wow, that sounds like a tremendous task! How were the nodes collapsed? Did you just use the Collapse node further transformation?
— Reply to this email directly, view it on GitHub https://github.com/arklumpus/TreeViewer/issues/35#issuecomment-2140732536, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDKKAN72SUZDC76H6OGYPWLZE54UHAVCNFSM6AAAAABIRKIE2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBQG4ZTENJTGY . You are receiving this because you authored the thread.Message ID: @.***>
Ah, I see... I think that adding the names actually made things more complicated for you 😅
Normally, you wouldn't need to manually find the module you need to disable, as clicking on the Toggle collapse
button would do this for you. However, if you added a name to the node after having collapsed it, this will not work.
I think the easiest solution for this situation is a custom action script. To run this, click on the Custom script
button in the Actions
tab, and enter the following code (completely replacing the template):
The main think you will need to change in the script is the nodeNames
array in line 17, where the names of the nodes that you want to de-collapse are specified. Just add as many as you need there, then click on Run
and those nodes should be de-collapsed. I added some comments to the code if you want to understand what it's doing, but you shouldn't need to worry about anything other than line 17.
I hope this works, let me know if it doesn't! For the future, a better solution would be to add the node names before collapsing the nodes; in this way, you would just need to click on the Toggle collapse
button. Unfortunately, you can't simply reorder the modules, because unless you re-select all the collapsed nodes, the settings for the Collapse node
button will not pick up the new node name.
Hi there! I'm using TreeViewer to simplify a very large (700+OTU) tree by collapsing clades down by species, but it becomes very cumbersome to try to undo any of these changes longer after-the-fact. the find function can help me navigate to the nodes I'm trying to make changes to on the tree display itself, but this doesn't seem to be a functionality that extends to transformations. Is there a way to search within transformations you've made, in the event you've made 300+ of them? I'm still new to TreeViewer, so it took me a long time to comb through them all by hand. Very robust program! Lots of wonderful functions.