0:00:00.531,0:00:03.133 This is a quick-start tutorial for[br]Cytoscape 3. 0:00:04.046,0:00:07.856 Cytoscape is an open source, cross-[br]platform bioinformatics program written 0:00:07.856,0:00:12.477 in Java. It is used to visualize molecular [br]interaction networks and integrate these 0:00:12.479,0:00:15.910 with expression profiles and other high [br]throughput data sets. Additional 0:00:15.910,0:00:20.070 functionality can be added by installing [br]plugins called "apps". We won't be 0:00:20.076,0:00:23.076 discussing apps any further in this video [br]but we wanted you to know that they 0:00:23.076,0:00:28.901 are available. For this tutorial, we'll be[br]using Cytoscape 3.6.1. If you're using 0:00:28.901,0:00:32.231 a different version of Cytoscape, some[br]options may have been changed or moved. 0:00:32.231,0:00:35.411 If any features discussed in this video[br]are different, please refer to the 0:00:35.411,0:00:39.984 documentation at manual.cytoscape.org.[br]We'll be following along with the 0:00:39.984,0:00:44.017 Basic Expression Analysis Tutorial in the[br]documentation. There is a more 0:00:44.017,0:00:46.858 in-depth version of this tutorial there[br]if you need additional guidance. 0:00:47.134,0:00:51.116 The original tutorial is covered by the[br]Creative Commons Zero v1.0 0:00:51.116,0:00:52.516 Universal license. 0:00:53.608,0:00:56.804 Let's jump right in![br]Our first step will be to import a network 0:00:56.804,0:01:00.572 from the sample data provided by[br]Cytoscape. Click on the "Import Network 0:01:00.572,0:01:04.578 from File" button in the Tool Bar.[br]Navigate to the installation directory 0:01:04.578,0:01:08.908 and find the folder called "sampleData".[br]Inside that folder, let's open 0:01:08.908,0:01:14.498 "galFiltered.csv". Cytoscape is pretty[br]smart about choosing default settings 0:01:14.498,0:01:17.648 as long as your data is in a reasonable[br]format, so we're going to accept the 0:01:17.648,0:01:20.936 settings it chose for us. Just know that[br]there are a lot of options when you're 0:01:20.936,0:01:24.956 importing data for choosing the type of[br]data each column contains. Click "OK". 0:01:26.258,0:01:29.369 Cytoscape automatically tries to find a[br]good network structure for your data 0:01:29.369,0:01:33.689 after you first import it. We can play with[br]the layout later, but first let's get a view 0:01:33.689,0:01:37.392 of the entire network. Click the "Zoom[br]out to display all of current network" 0:01:37.392,0:01:42.047 button in the toolbar. The edges may be[br]gone in your network when you do this, 0:01:42.047,0:01:46.023 but you can get those back by clicking[br]"View > Show Graphics Details". This 0:01:46.023,0:01:49.166 option does use a bit more resources[br]when there is a lot of nodes in your 0:01:49.166,0:01:53.064 network, so it may be best to leave it off[br]when viewing large networks. The details 0:01:53.064,0:01:54.894 will reappear when you zoom in. 0:01:55.985,0:01:59.832 Now let's import our expression data.[br]Click on "Import Table from File" in the 0:01:59.832,0:02:05.685 toolbar, then choose "galExpData.csv".[br]Cytoscape should choose the proper default 0:02:05.685,0:02:09.465 settings, however you may need to choose[br]the proper key column to match with your 0:02:09.465,0:02:11.645 network depending on how your data is[br]structured. 0:02:12.438,0:02:16.128 If the import succeded, you should see the[br]new information in the Node Table. Let's 0:02:16.128,0:02:20.008 limit the columns shown by clicking on the[br]"Show Columns" button in the Table Panel. 0:02:20.290,0:02:27.130 Deselect the gal1RGsig, gal4RGsig, and[br]gal80Rsig columns. 0:02:27.786,0:02:32.184 The "shared name" contains the Ensembl ID,[br]but let's change the node labels to HUGO 0:02:32.184,0:02:35.814 Gene Nomenclature symbols contained in the[br]"COMMON" column. 0:02:36.405,0:02:40.172 Click on the "Style" tab. If you click on[br]"default", you'll see there are a lot of 0:02:40.172,0:02:44.557 different styles included with Cytoscape.[br]The button with 3 horizontal bars next to 0:02:44.557,0:02:48.547 the style selection dropdown has options[br]for managing the styles such as creating a 0:02:48.547,0:02:52.745 new style, copying the current style, and[br]renaming or removing the style. 0:02:53.726,0:02:58.159 Click on the second column of the "Label"[br]option. Change the column to "COMMON" and 0:02:58.159,0:03:00.129 you'll see the node labels change. 0:03:00.997,0:03:05.020 Now we want to see the expression values[br]shown on the network. Click on the second 0:03:05.020,0:03:10.670 column for the "Fill Color" option. For[br]the column, choose "gal80Rexp". For the 0:03:10.670,0:03:13.595 mapping type, let's choose "Continuous[br]Mapping". 0:03:14.540,0:03:18.235 Double click on the gradient to bring up[br]the "Continuous Mapping Editor". You can 0:03:18.235,0:03:21.812 delete individual gradient handles by[br]single clicking on them then hitting 0:03:21.812,0:03:26.062 "Delete". We need at least two handles to[br]have a gradient though, otherwise you'll 0:03:26.062,0:03:27.683 end up with a binary scale. 0:03:30.160,0:03:32.930 Click the "Add" button to add another[br]gradient handle. 0:03:34.050,0:03:35.950 Click and drag a handle to move it, 0:03:37.947,0:03:40.917 or single click it and edit the value in[br]the bottom-left. 0:03:42.373,0:03:45.597 The scale should contain your[br]largest and smallest values for your data, 0:03:45.597,0:03:48.972 but if it doesn't you can click on the[br]"Set Min and Max..." button, then click 0:03:48.972,0:03:50.842 "Reset" and "OK". 0:03:52.009,0:03:56.214 Let's create a blue-white-yellow gradient.[br]First, make sure there are three handles 0:03:56.214,0:03:57.214 at the top. 0:03:57.311,0:04:01.653 Drag the first handle or edit it to[br]approximately -1.2. 0:04:01.653,0:04:03.023 Double-click the handle 0:04:05.563,0:04:08.823 or single-click it and click the[br]"Node Fill Color" button, 0:04:11.803,0:04:13.745 then pick a color in the blue range. 0:04:17.518,0:04:20.971 Set the second handle to[br]approximately 0.5 and change the 0:04:20.971,0:04:22.121 color to white. 0:04:25.705,0:04:29.785 For the third handle,[br]change it to about 2.5 and yellow. 0:04:36.925,0:04:40.115 Double-click on the maximum handle and set[br]it to green, 0:04:43.740,0:04:45.980 then set the minimum handle to black. 0:04:52.180,0:04:56.667 Note that the default value is set to[br]light blue. A good trick is to set it to a 0:04:56.667,0:05:00.347 color outside the spectrum you're using to[br]see nodes without a value. 0:05:01.726,0:05:06.067 The columns with "sig" at the end contain[br]significance values. We can use those to 0:05:06.067,0:05:10.245 change the node shape so that nodes with a[br]significance below a set threshold can have 0:05:10.245,0:05:13.295 one shape, while those above it[br]can have another. 0:05:14.032,0:05:18.565 Click on the second column in "Shape",[br]then set the Column to "gal80Rsig" and the 0:05:18.565,0:05:24.244 mapping to "Continuous". Double-click on[br]the "Current Mapping" box, then click the 0:05:24.244,0:05:26.084 "Add" button in the bottom right. 0:05:26.676,0:05:29.906 Double-click on the left circle and change[br]it to a rectangle. 0:05:31.557,0:05:35.727 Click the handle between the shapes[br]and change the value to 0.05. 0:05:37.580,0:05:42.198 The "shared interaction" column in the[br]Edge Table uses "pp" for protein-protein 0:05:42.198,0:05:47.631 interactions, and "pd" for protein-DNA[br]interactions. Let's filter out the 0:05:47.631,0:05:49.501 protein-protein interactions. 0:05:49.868,0:05:54.208 Click on the "Select" tab in the Control[br]Panel. Click the "+" icon, then choose 0:05:54.208,0:05:59.670 "Column Filter". Choose "Edge: interaction"[br]and leave the next option as "contains". 0:06:02.914,0:06:08.274 Type "pp" into the text search box. The[br]filter should automatically be applied. 0:06:09.067,0:06:13.772 The "Apply when filter changes" option is[br]usually selected by default. For very 0:06:13.772,0:06:17.362 large networks, it is recommended to[br]disable this option, change all of the 0:06:17.362,0:06:19.882 filters at once, then click the "Apply"[br]button. 0:06:20.509,0:06:24.134 You should now see many edges in the[br]network selected. Let's remove the 0:06:24.134,0:06:29.055 protein-protein edges we just chose.[br]Click "Edit", then "Delete Selected Nodes 0:06:29.055,0:06:33.372 and Edges". Now there will be many[br]unconnected nodes. Let's clean it up by 0:06:33.372,0:06:34.732 changing the layout. 0:06:35.596,0:06:39.498 Click "Layout", then "Settings". You can[br]try different layouts and options here, 0:06:39.498,0:06:43.349 but we're interested in the "Preferred[br]Layout" tab. Make sure it is set to 0:06:43.349,0:06:45.167 "Prefuse Force Directed Layout". 0:06:45.797,0:06:49.327 Go back to "Layout", then select[br]"Apply Preferred Layout". 0:06:52.406,0:06:56.422 If we zoom in we can see that there are[br]three highly expressed nodes connected by 0:06:56.422,0:07:00.952 two intermediate nodes. Let's create a new[br]network from those two nodes. 0:07:01.232,0:07:04.721 Click on the first node, then hold control [br]and click on the second node. 0:07:05.277,0:07:11.419 Then click "Select > Nodes > [br]First Neighbors of Selected Nodes >[br] 0:07:11.419,0:07:16.109 Undirected". Finally, click on "New[br]Network from Selection" in the toolbar. 0:07:17.616,0:07:21.286 You'll notice in the Network Panel that[br]this has created a new child network. 0:07:22.649,0:07:26.649 If our data contains identifiers used by[br]external databases, Cytoscape can 0:07:26.649,0:07:31.153 automatically link us to them. Right click[br]on the "GAL4" node, then choose 0:07:31.153,0:07:36.749 "External Links > Sequences and Proteins >[br]Entrez Gene". This will open your default 0:07:36.749,0:07:40.049 browser and perform a search using the[br]"name" identifier. 0:07:40.828,0:07:45.078 Cytoscape also provides the option to draw[br]charts and graphs on each node. 0:07:45.714,0:07:49.380 Let's remove the old fill color mappings[br]by right-clicking on the fill mapping 0:07:49.380,0:07:53.450 gradient and choosing "Edit > Remove[br]Mappings from Selected Visual Properties". 0:07:54.056,0:07:56.406 Change the default value back to gray. 0:07:58.856,0:08:01.654 Choose "Properties" at the top of the[br]panel, then choose 0:08:01.654,0:08:05.604 "Paint > Custom Paint 1 > Image/Chart 1". 0:08:07.484,0:08:10.995 Select the "Default" box, which will bring[br]up the "Graphics" dialogue. 0:08:11.395,0:08:16.015 Choose the "Charts tab" and move all of[br]the expression columns to the right side. 0:08:18.155,0:08:21.476 Change the type of graph to "Heat[br]Strips" and hit apply. 0:08:22.562,0:08:25.842 Thank you for watching this Quickstart[br]Tutorial for Cytoscape 3. 0:08:26.125,0:08:30.264 For more Cytoscape Tutorials, visit[br]tutorials.cytoscape.org 0:08:30.264,0:08:32.744 or visit my YouTube channel.