Mercurial > repos > jay > pdaug_peptide_length_distribution
view PDAUG_Merge_Dataframes/PDAUG_Merge_Dataframes.py @ 1:5be6abf137ba draft
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit 3c91f421d26c8f42cf2671e47db735d2cf69dde8"
author | jay |
---|---|
date | Tue, 29 Dec 2020 04:13:58 +0000 |
parents | 3f9bdcf83244 |
children | e62e03a4d81e |
line wrap: on
line source
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)