2.2. Data-to-Visual mappingΒΆ

Data-to-Visual mapping allows you to map data attributes of nodes or edges to various visual styles.

  • (Optional) Before proceeding to further steps, change the default font for nodes to Sony Sketch EF that was used in figures in the Case Study.

    Note

    To use the Sony Sketch EF font, you should download and install it on your system. It is available at here.

    • To open the Display Options panel, click the arrowup-icon button at the bottom-right of a network display window.
    • Select the Nodes tab, and click the Font name button, and choose a font name, style, and size, then click the OK button.
    • To close the Display Options panel, click the arrowdown-icon button at the top-right of the panel.
    ../_images/change_nodes_font.png
  • To map the alteration frequencies of genes to the sizes of nodes,

    1. Select the Visual Mapping window at the top-left of main application.
    2. Select the Nodes tab button.
    3. Select the size-icon icon.
    4. In the drop-down list, choose the Freq data attribute to map.
    5. Click the Spline... button to open the Spline Editor.
    6. Choose a pre-defined scale function.
    7. Adjust the transform scale to make more frequently altered genes be magnified.
    8. Close the Spline Editor.
    9. Click the Apply button.
    ../_images/freq_to_node_size.png
  • Now the network looks like the following:

../_images/freq_to_node_size_result.png
  • Now you will map a different shape to the linker nodes using discrete Data-to-Visual mapping.

    1. Select the Discrete tab at the bottom of Visual Mapping window.
    2. In the drop-down list, choose the Type data attribute of Nodes to map.
    3. Expand the LINKER, now various editors for visual styles will be shown.
    4. In the Shape filed, click the ... button to show up the node shape chooser.
    5. Choose the Diamond shape, and click the OK button.
    ../_images/type_to_node_shape.png
  • Now the network looks like the following:

../_images/type_to_node_shape_result.png
  • You can map expression correlations to the thicknesses of edges.

    1. Select the Continuous tab at the bottom of Visual Mapping window.
    2. Select the Edges tab button.
    3. Select the size-icon icon.
    4. In the drop-down list, choose the i.weight data attribute to map.
    5. Set the Max value to 10.
    6. Click the Spline... button to open the Spline Editor.
    7. Restore the scale function to the linear function.
    8. Click the Apply button.
    ../_images/cor_to_edge_thickness.png
  • The final network is shown below:

../_images/data_to_visual_mapping_result.png