Examples of Operations on the Tree
Get the whole tree as an image
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt
Adjust bottom margin to better place the distance marker
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&collapsednodeID=2&bottommargin=50
Render the same image to NetCache and get a JSON result
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&ifmt=asnt
{
"TV_TreeImgDesc": {
"nodes": [
{
"nodeid": 0,
"label": "",
"is_leaf": false,
"bounds": {
"x": 5,
"y": 142,
"width": 2,
"height": 2
}
},
<skipped...>
{
"nodeid": 4,
"label": "id 4, lcl|seq-0, color blue",
"is_leaf": true,
"bounds": {
"x": 467,
"y": 11,
"width": 2,
"height": 2
}
},
<skipped>
],
"img_key": "NCID_1_23678888_130.14.18.6_9120_1396468813_35993416_0MetA0___S_NC_TreeView_TEST",
"renderingparameters": {
"width": 600,
"height": 200,
"maxwidth": 8192,
"maxheight": 8192,
"computedwidth": 0,
"computedheight": 0
}
}
}
Render the image with all labels visible
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&bottommargin=50
Render part of the image
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&viewportX=300&viewportwidth=200&viewportY=50&viewportheight=50
Display the tree without using distance encoded in the dist feature
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&distmode=false
Use a combination of dist and label features and text as the node label
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&bottommargin=50
Select a part of of the tree starting with node with id 2
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&bottommargin=50
Reroot the tree to node with id 2
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&rootnodeID=2&bottommargin=50
Draw a subtree that starts with node id 2
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&subtreenodeID=2&bottommargin=50
Draw a tree that is collapsed starting with node id 2
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&collapsednodeIDs=2&bottommargin=50
Use a different font face and size
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&fontface=Roman&fontsize=14&bottommargin=50
Use a different renderer (circular)
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=200&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&collapsednodeID=2&renderer=circular
Rotate the labels with circular renderer
http://www.ncbi.nlm.nih.gov/projects/treeview/treeview.cgi?btc_filename=data/sample_tree.asn&width=600&height=600&rendertonetcache=f&ifmt=asnt&labelvis=all&labelformat=$(label)%20with%20distance%20$(dist)&selectednodeID=2&collapsednodeID=2&renderer=circular&rotatedlabels=true