diff tools/myTools/bin/get_RONs.py @ 1:7e5c71b2e71f draft default tip

Uploaded
author laurenmarazzi
date Wed, 22 Dec 2021 16:00:34 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/myTools/bin/get_RONs.py	Wed Dec 22 16:00:34 2021 +0000
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+import pandas as pd
+import sys
+
+def main():
+
+# read in sfa attractors
+	df=pd.read_csv(sys.argv[1], delim_whitespace=True,index_col = ["name"])
+# read in rons
+	rons = open(sys.argv[2],"r").read().strip().split('\n')
+#get the rons and their values
+	df1=df.loc[:,rons]
+	df1.to_csv("exp_internalmarkers.tsv",sep=' ',index_label="name",na_rep='NA')
+main()
\ No newline at end of file