view Calculate_attributes_wrapper.py @ 2:40339590a08d draft default tip

Uploaded
author bornea
date Wed, 18 Oct 2017 15:23:21 -0400
parents
children
line wrap: on
line source

import sys
import os
import subprocess
edgeList = sys.argv[1]
centrality = sys.argv[2]
community = sys.argv[3]
output = sys.argv[4]
os.system(r"Rscript "+"Calculate_attributes.R "+ str(edgeList) + r" " + str(centrality)+ r" " + str(community))
os.rename("node_attr.txt",str(output))