< Return to Video

Cytoscape 3 Quickstart Tutorial - Basic Expression Analysis

  • 0:01 - 0:03
    This is a quick-start tutorial for
    Cytoscape 3.
  • 0:04 - 0:08
    Cytoscape is an open source, cross-
    platform bioinformatics program written
  • 0:08 - 0:12
    in Java. It is used to visualize molecular
    interaction networks and integrate these
  • 0:12 - 0:16
    with expression profiles and other high
    throughput data sets. Additional
  • 0:16 - 0:20
    functionality can be added by installing
    plugins called "apps". We won't be
  • 0:20 - 0:23
    discussing apps any further in this video
    but we wanted you to know that they
  • 0:23 - 0:29
    are available. For this tutorial, we'll be
    using Cytoscape 3.6.1. If you're using
  • 0:29 - 0:32
    a different version of Cytoscape, some
    options may have been changed or moved.
  • 0:32 - 0:35
    If any features discussed in this video
    are different, please refer to the
  • 0:35 - 0:40
    documentation at manual.cytoscape.org.
    We'll be following along with the
  • 0:40 - 0:44
    Basic Expression Analysis Tutorial in the
    documentation. There is a more
  • 0:44 - 0:47
    in-depth version of this tutorial there
    if you need additional guidance.
  • 0:47 - 0:51
    The original tutorial is covered by the
    Creative Commons Zero v1.0
  • 0:51 - 0:53
    Universal license.
  • 0:54 - 0:57
    Let's jump right in!
    Our first step will be to import a network
  • 0:57 - 1:01
    from the sample data provided by
    Cytoscape. Click on the "Import Network
  • 1:01 - 1:05
    from File" button in the Tool Bar.
    Navigate to the installation directory
  • 1:05 - 1:09
    and find the folder called "sampleData".
    Inside that folder, let's open
  • 1:09 - 1:14
    "galFiltered.csv". Cytoscape is pretty
    smart about choosing default settings
  • 1:14 - 1:18
    as long as your data is in a reasonable
    format, so we're going to accept the
  • 1:18 - 1:21
    settings it chose for us. Just know that
    there are a lot of options when you're
  • 1:21 - 1:25
    importing data for choosing the type of
    data each column contains. Click "OK".
  • 1:26 - 1:29
    Cytoscape automatically tries to find a
    good network structure for your data
  • 1:29 - 1:34
    after you first import it. We can play with
    the layout later, but first let's get a view
  • 1:34 - 1:37
    of the entire network. Click the "Zoom
    out to display all of current network"
  • 1:37 - 1:42
    button in the toolbar. The edges may be
    gone in your network when you do this,
  • 1:42 - 1:46
    but you can get those back by clicking
    "View > Show Graphics Details". This
  • 1:46 - 1:49
    option does use a bit more resources
    when there is a lot of nodes in your
  • 1:49 - 1:53
    network, so it may be best to leave it off
    when viewing large networks. The details
  • 1:53 - 1:55
    will reappear when you zoom in.
  • 1:56 - 2:00
    Now let's import our expression data.
    Click on "Import Table from File" in the
  • 2:00 - 2:06
    toolbar, then choose "galExpData.csv".
    Cytoscape should choose the proper default
  • 2:06 - 2:09
    settings, however you may need to choose
    the proper key column to match with your
  • 2:09 - 2:12
    network depending on how your data is
    structured.
  • 2:12 - 2:16
    If the import succeded, you should see the
    new information in the Node Table. Let's
  • 2:16 - 2:20
    limit the columns shown by clicking on the
    "Show Columns" button in the Table Panel.
  • 2:20 - 2:27
    Deselect the gal1RGsig, gal4RGsig, and
    gal80Rsig columns.
  • 2:28 - 2:32
    The "shared name" contains the Ensembl ID,
    but let's change the node labels to HUGO
  • 2:32 - 2:36
    Gene Nomenclature symbols contained in the
    "COMMON" column.
  • 2:36 - 2:40
    Click on the "Style" tab. If you click on
    "default", you'll see there are a lot of
  • 2:40 - 2:45
    different styles included with Cytoscape.
    The button with 3 horizontal bars next to
  • 2:45 - 2:49
    the style selection dropdown has options
    for managing the styles such as creating a
  • 2:49 - 2:53
    new style, copying the current style, and
    renaming or removing the style.
  • 2:54 - 2:58
    Click on the second column of the "Label"
    option. Change the column to "COMMON" and
  • 2:58 - 3:00
    you'll see the node labels change.
  • 3:01 - 3:05
    Now we want to see the expression values
    shown on the network. Click on the second
  • 3:05 - 3:11
    column for the "Fill Color" option. For
    the column, choose "gal80Rexp". For the
  • 3:11 - 3:14
    mapping type, let's choose "Continuous
    Mapping".
  • 3:15 - 3:18
    Double click on the gradient to bring up
    the "Continuous Mapping Editor". You can
  • 3:18 - 3:22
    delete individual gradient handles by
    single clicking on them then hitting
  • 3:22 - 3:26
    "Delete". We need at least two handles to
    have a gradient though, otherwise you'll
  • 3:26 - 3:28
    end up with a binary scale.
  • 3:30 - 3:33
    Click the "Add" button to add another
    gradient handle.
  • 3:34 - 3:36
    Click and drag a handle to move it,
  • 3:38 - 3:41
    or single click it and edit the value in
    the bottom-left.
  • 3:42 - 3:46
    The scale should contain your
    largest and smallest values for your data,
  • 3:46 - 3:49
    but if it doesn't you can click on the
    "Set Min and Max..." button, then click
  • 3:49 - 3:51
    "Reset" and "OK".
  • 3:52 - 3:56
    Let's create a blue-white-yellow gradient.
    First, make sure there are three handles
  • 3:56 - 3:57
    at the top.
  • 3:57 - 4:02
    Drag the first handle or edit it to
    approximately -1.2.
  • 4:02 - 4:03
    Double-click the handle
  • 4:06 - 4:09
    or single-click it and click the
    "Node Fill Color" button,
  • 4:12 - 4:14
    then pick a color in the blue range.
  • 4:18 - 4:21
    Set the second handle to
    approximately 0.5 and change the
  • 4:21 - 4:22
    color to white.
  • 4:26 - 4:30
    For the third handle,
    change it to about 2.5 and yellow.
  • 4:37 - 4:40
    Double-click on the maximum handle and set
    it to green,
  • 4:44 - 4:46
    then set the minimum handle to black.
  • 4:52 - 4:57
    Note that the default value is set to
    light blue. A good trick is to set it to a
  • 4:57 - 5:00
    color outside the spectrum you're using to
    see nodes without a value.
  • 5:02 - 5:06
    The columns with "sig" at the end contain
    significance values. We can use those to
  • 5:06 - 5:10
    change the node shape so that nodes with a
    significance below a set threshold can have
  • 5:10 - 5:13
    one shape, while those above it
    can have another.
  • 5:14 - 5:19
    Click on the second column in "Shape",
    then set the Column to "gal80Rsig" and the
  • 5:19 - 5:24
    mapping to "Continuous". Double-click on
    the "Current Mapping" box, then click the
  • 5:24 - 5:26
    "Add" button in the bottom right.
  • 5:27 - 5:30
    Double-click on the left circle and change
    it to a rectangle.
  • 5:32 - 5:36
    Click the handle between the shapes
    and change the value to 0.05.
  • 5:38 - 5:42
    The "shared interaction" column in the
    Edge Table uses "pp" for protein-protein
  • 5:42 - 5:48
    interactions, and "pd" for protein-DNA
    interactions. Let's filter out the
  • 5:48 - 5:50
    protein-protein interactions.
  • 5:50 - 5:54
    Click on the "Select" tab in the Control
    Panel. Click the "+" icon, then choose
  • 5:54 - 6:00
    "Column Filter". Choose "Edge: interaction"
    and leave the next option as "contains".
  • 6:03 - 6:08
    Type "pp" into the text search box. The
    filter should automatically be applied.
  • 6:09 - 6:14
    The "Apply when filter changes" option is
    usually selected by default. For very
  • 6:14 - 6:17
    large networks, it is recommended to
    disable this option, change all of the
  • 6:17 - 6:20
    filters at once, then click the "Apply"
    button.
  • 6:21 - 6:24
    You should now see many edges in the
    network selected. Let's remove the
  • 6:24 - 6:29
    protein-protein edges we just chose.
    Click "Edit", then "Delete Selected Nodes
  • 6:29 - 6:33
    and Edges". Now there will be many
    unconnected nodes. Let's clean it up by
  • 6:33 - 6:35
    changing the layout.
  • 6:36 - 6:39
    Click "Layout", then "Settings". You can
    try different layouts and options here,
  • 6:39 - 6:43
    but we're interested in the "Preferred
    Layout" tab. Make sure it is set to
  • 6:43 - 6:45
    "Prefuse Force Directed Layout".
  • 6:46 - 6:49
    Go back to "Layout", then select
    "Apply Preferred Layout".
  • 6:52 - 6:56
    If we zoom in we can see that there are
    three highly expressed nodes connected by
  • 6:56 - 7:01
    two intermediate nodes. Let's create a new
    network from those two nodes.
  • 7:01 - 7:05
    Click on the first node, then hold control
    and click on the second node.
  • 7:05 - 7:11
    Then click "Select > Nodes >
    First Neighbors of Selected Nodes >
  • 7:11 - 7:16
    Undirected". Finally, click on "New
    Network from Selection" in the toolbar.
  • 7:18 - 7:21
    You'll notice in the Network Panel that
    this has created a new child network.
  • 7:23 - 7:27
    If our data contains identifiers used by
    external databases, Cytoscape can
  • 7:27 - 7:31
    automatically link us to them. Right click
    on the "GAL4" node, then choose
  • 7:31 - 7:37
    "External Links > Sequences and Proteins >
    Entrez Gene". This will open your default
  • 7:37 - 7:40
    browser and perform a search using the
    "name" identifier.
  • 7:41 - 7:45
    Cytoscape also provides the option to draw
    charts and graphs on each node.
  • 7:46 - 7:49
    Let's remove the old fill color mappings
    by right-clicking on the fill mapping
  • 7:49 - 7:53
    gradient and choosing "Edit > Remove
    Mappings from Selected Visual Properties".
  • 7:54 - 7:56
    Change the default value back to gray.
  • 7:59 - 8:02
    Choose "Properties" at the top of the
    panel, then choose
  • 8:02 - 8:06
    "Paint > Custom Paint 1 > Image/Chart 1".
  • 8:07 - 8:11
    Select the "Default" box, which will bring
    up the "Graphics" dialogue.
  • 8:11 - 8:16
    Choose the "Charts tab" and move all of
    the expression columns to the right side.
  • 8:18 - 8:21
    Change the type of graph to "Heat
    Strips" and hit apply.
  • 8:23 - 8:26
    Thank you for watching this Quickstart
    Tutorial for Cytoscape 3.
  • 8:26 - 8:30
    For more Cytoscape Tutorials, visit
    tutorials.cytoscape.org
  • 8:30 - 8:33
    or visit my YouTube channel.
Title:
Cytoscape 3 Quickstart Tutorial - Basic Expression Analysis
Video Language:
English
Duration:
08:38

English subtitles

Revisions