U.S. flag

An official website of the United States government

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

Get the whole tree as image

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

Adjust bottom margin to better place the distance marker

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 the image with all labels visible

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

Render part of the image

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

Display the tree without using distance encoded in the dist feature

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

Use a combination of dist and label features

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

Select a part of of the tree starting with node with id 2

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

Reroot the tree to node with id2

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 subtree that starts with node id2

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

Draw a tree that is collapsed starting with nod eid2

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 fontface and size

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

Use a different 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

Rotate the labels with circular renderer

Support Center

Last updated: 2014-07-10T11:04:44-04:00