title: Convert Adjacency Matrix into Edgelist (csv file) for Cytoscape
body: <p>I have a large (200 columns/rows) adjacency matrix in a csv file. This details interactions between individuals. I would like to convert this file into an edgelist, it can be done manually, but would take an enormous amount of time.</p>
  
  <p>A small subset of the data is shown below (the first cell is a space):</p>
  
  <pre><code>        A   B   C   
      A   0   0   1   
      B   0   0   1   
      C   1   0   0   
  </code></pre>
  
  <p>I would like to transform this into this:</p>
  
  <pre><code>    A  1  C
      B  1  C
      C  1  A
  </code></pre>
  
  <p>This is just example data. Essentially what I want is to plot the how these nodes interact, and from it plot a network of these interactions. I have tried the following code in the R package PCIT but it returns an error:</p>
  
  <pre><code>    install.packages("PCIT")
      library(PCIT)
      input=read.csv('mouse.csv',header=TRUE,row.names=1,check.names=FALSE)
      setwd('/Users/Plosslab/Documents/PythonStuff')
      getEdgeList(input, rm.zero=TRUE)
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>    Error in structure(.Internal(as.vector(x, "double")), Csingle = TRUE) : 
      (list) object cannot be coerced to type 'double'
  </code></pre>