diff PDAUG_Merge_Dataframes/PDAUG_Merge_Dataframes.py @ 0:e59674e3a391 draft

"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit 6f53ad797ec1af02b41510063a86bec7d121abf3"
author jay
date Fri, 20 Nov 2020 19:47:44 +0000
parents
children b73ba641e514
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PDAUG_Merge_Dataframes/PDAUG_Merge_Dataframes.py	Fri Nov 20 19:47:44 2020 +0000
@@ -0,0 +1,28 @@
+import glob
+import pandas as pd 
+import sys
+
+files = sys.argv[1]
+out_file = sys.argv[2]
+
+
+data_frame = pd.read_csv(files.split(',')[0],sep='\t')
+
+
+for file in files.split(',')[1:]: 
+
+    df1 = pd.read_csv(file,sep='\t')
+    data_frame =  pd.concat([data_frame,df1])
+
+final_DF = data_frame.fillna(0)
+
+final_DF.to_csv(out_file,sep="\t", index=False)
+
+
+
+
+
+
+
+
+