Mercurial > repos > laurenmarazzi > netisce_test
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:f24d4892aaed | 1:7e5c71b2e71f |
---|---|
1 #!/usr/bin/env python3 | |
2 import pandas as pd | |
3 import sys | |
4 | |
5 def main(): | |
6 | |
7 # read in sfa attractors | |
8 df=pd.read_csv(sys.argv[1], delim_whitespace=True,index_col = ["name"]) | |
9 # read in rons | |
10 rons = open(sys.argv[2],"r").read().strip().split('\n') | |
11 #get the rons and their values | |
12 df1=df.loc[:,rons] | |
13 df1.to_csv("exp_internalmarkers.tsv",sep=' ',index_label="name",na_rep='NA') | |
14 main() |