Mercurial > repos > jay > padaug_peptide_sequence_analysis
view PDAUG_Merge_Dataframes/PDAUG_Merge_Dataframes.py @ 1:aa0416e63597 draft default tip
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit 60abdf7f6fdc87e5be4ffb7fa5c9c8a458383047"
author | jay |
---|---|
date | Tue, 17 Nov 2020 23:11:37 +0000 |
parents | 5d01ab729b2b |
children |
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)