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

Uploaded
author bornea
date Wed, 18 Oct 2017 15:23:21 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
40339590a08d Uploaded
bornea
parents:
diff changeset
1 import sys
40339590a08d Uploaded
bornea
parents:
diff changeset
2 import os
40339590a08d Uploaded
bornea
parents:
diff changeset
3 import subprocess
40339590a08d Uploaded
bornea
parents:
diff changeset
4 edgeList = sys.argv[1]
40339590a08d Uploaded
bornea
parents:
diff changeset
5 centrality = sys.argv[2]
40339590a08d Uploaded
bornea
parents:
diff changeset
6 community = sys.argv[3]
40339590a08d Uploaded
bornea
parents:
diff changeset
7 output = sys.argv[4]
40339590a08d Uploaded
bornea
parents:
diff changeset
8 os.system(r"Rscript "+"Calculate_attributes.R "+ str(edgeList) + r" " + str(centrality)+ r" " + str(community))
40339590a08d Uploaded
bornea
parents:
diff changeset
9 os.rename("node_attr.txt",str(output))