{"id":2053,"date":"2016-07-01T17:26:17","date_gmt":"2016-07-02T00:26:17","guid":{"rendered":"http:\/\/miriamposner.com\/blog\/?p=2053"},"modified":"2016-07-01T17:26:17","modified_gmt":"2016-07-02T00:26:17","slug":"new-tutorials-on-network-analysis-with-cytoscape","status":"publish","type":"post","link":"https:\/\/miriamposner.com\/blog\/new-tutorials-on-network-analysis-with-cytoscape\/","title":{"rendered":"New tutorials on network analysis with Cytoscape"},"content":{"rendered":"<figure id=\"attachment_2054\" aria-describedby=\"caption-attachment-2054\" style=\"width: 300px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2016\/07\/customize-your-style.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2054 size-medium\" src=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2016\/07\/customize-your-style-300x285.png\" alt=\"The Cytoscape interface, featuring a pane on the left with buttons and a graph diagram on the right\" width=\"300\" height=\"285\" srcset=\"https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2016\/07\/customize-your-style-300x285.png 300w, https:\/\/miriamposner.com\/blog\/wp-content\/uploads\/2016\/07\/customize-your-style.png 750w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2054\" class=\"wp-caption-text\">I find the Cytoscape interface more intuitive than Gephi&#8217;s, although in both cases, you need to have a basic understanding of key NA terms.<\/figcaption><\/figure>\n<p>For some reason I got it into my head to write a bunch of tutorials on using <a href=\"http:\/\/www.cytoscape.org\/\">Cytoscape<\/a> for network analysis. They&#8217;re\u00a0<a href=\"https:\/\/github.com\/miriamposner\/cytoscape_tutorials\">now all up on Github<\/a>. (I&#8217;ve been moving to Github for tutorials because they&#8217;re easier to update there.)<\/p>\n<p>I started writing\u00a0these\u00a0for the\u00a0students in my spring-quarter class and, even though the class is over, I&#8217;ve\u00a0been adding to them compulsively. They&#8217;ll take you from zero to an interactive, web-based network graph, with stops along the way for projecting\u00a0a two-mode network to a one-mode network and working with node attributes. (If you don&#8217;t know what any of that stuff means, they explain that, too.)<\/p>\n<p>There&#8217;s a bit of a Gephi-versus-Cytoscape battle\u00a0right now among people who do network analysis. I actually started out on Cytoscape, only because I found it slightly more intuitive, and switched to Gephi when I discovered most people used that. But in recent years, I&#8217;ve had a\u00a0<em>really<\/em> hard time dealing with Gephi. First, there was the <a href=\"https:\/\/medium.com\/coder-snorts\/gephi-is-broken-on-mac-os-97fbaef4305e#.cogwsls13\">Legendary Java Problem<\/a>, and although the <a href=\"https:\/\/gephi.org\/\">new version<\/a> is <a href=\"https:\/\/github.com\/gephi\/gephi\/wiki\/Releases\">purportedly more stable<\/a>, I actually just cannot get it to work on my Mac and have frankly kind of lost the will to keep trying.<\/p>\n<p>Cytoscape is Fine. It&#8217;s designed for scientists, really, and other people who care very much about statistical measures of networks, which to be honest, I don&#8217;t really care that much about. (I don&#8217;t think most humanists trust these measures anyway, so I\u00a0don&#8217;t see much\u00a0point in hammering on them.)\u00a0I find Cytoscape&#8217;s\u00a0web service, <a href=\"http:\/\/cynetshare.ucsd.edu\/#\/\">CyNetShare<\/a>, to be pretty <a href=\"http:\/\/cynetshare.ucsd.edu\/#\/https%253A%252F%252Fgist.githubusercontent.com%252Fmiriamposner%252F3d9a4d6a6c0ccc8f1227e24d2976d645%252Fraw%252Fc0b0638c86c782c8ede4cf3ab06f59925549a6f5%252Fnetwork2.cyjs?stylefile=https:%2F%2Fgist.githubusercontent.com%2Fmiriamposner%2F67e2ba7f700f9b7481df144b779859c2%2Fraw%2F06af5b177f204f2f95f4153337d190fe764058f5%2Ffancy_style.json&amp;selectedstyle=fancy_style&amp;x=549.9781418409461&amp;y=286.0256023015366&amp;zoom=0.0890183163164728&amp;bgcolor=%23FAFAFA\">janky-looking<\/a>, but &#8230; you can interact with the network diagram, so that&#8217;s good, I guess.<\/p>\n<p>To be honest, I&#8217;ve been slowly making the switch from Gephi\/Cytoscape\/etc.\u00a0to R&#8217;s igraph package, and to D3 for <a href=\"http:\/\/bl.ocks.org\/miriamposner\/raw\/30c1a7e8bf88fe1ad78a3499e0fbec56\/\">displaying networks on the web<\/a>, just because they&#8217;re so much nicer looking. One thing I like about Cytoscape is that after you&#8217;ve measured various aspects of your network, you can export JSON that&#8217;s set up specifically for D3&#8217;s popular force-layout network.<\/p>\n<p>When I was visiting Stanford last winter, I got to see a preview of a network analysis tool that the <a href=\"http:\/\/hdlab.stanford.edu\/\">Humanities\u00a0+ Design\u00a0team<\/a> is building, and I really liked the way they placed the emphasis on exploration and discovery, rather than statistical measures. I&#8217;ll be looking forward to seeing the release of that tool (I think it&#8217;s called Idiographic?), since I do feel that humanists have different interests when it comes to networks than scientists or social scientists.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason I got it into my head to write a bunch of tutorials on using Cytoscape for network analysis. They&#8217;re\u00a0now all up on Github. (I&#8217;ve been moving to Github for tutorials because they&#8217;re easier to update there.) I started writing\u00a0these\u00a0for the\u00a0students in my spring-quarter class and, even though the class is over, I&#8217;ve\u00a0been [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[286,339],"class_list":["post-2053","post","type-post","status-publish","format-standard","hentry","category-digital-humanities","category-tools","tag-cytoscape","tag-network-analysis"],"_links":{"self":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/2053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/comments?post=2053"}],"version-history":[{"count":5,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/2053\/revisions"}],"predecessor-version":[{"id":2059,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/posts\/2053\/revisions\/2059"}],"wp:attachment":[{"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/media?parent=2053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/categories?post=2053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miriamposner.com\/blog\/wp-json\/wp\/v2\/tags?post=2053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}