This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import csv | |
import sys | |
import os | |
if len(sys.argv) != 3: | |
sys.exit('Usage: [python] adjToSif.py linkTag inFile') | |
linkTag = sys.argv[1] | |
fileName = sys.argv[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if you don't have igraph: | |
#install.packages("igraph") | |
library(igraph) | |
# | |
# We only work with graphs that have node name attributes! If | |
# graph does not already have them, apply this function to it! | |
# |