Commit a4280494 authored by Carine Rey's avatar Carine Rey Committed by Philippe Veber
Browse files

add indel cols if not pcoc

parent b034bd73
......@@ -109,13 +109,19 @@ if args.pcoc :
if args.pcoc_gamma :
df_pcoc_gamma = pd.read_csv(args.pcoc_gamma, sep="\t")
df_pcoc_gamma = df_pcoc_gamma[['Sites','PCOC','PC','OC']]
col = ['Sites','PCOC','PC','OC']
if not args.pcoc :
col.extend(["Indel_prop","Indel_prop(ConvLeaves)"])
df_pcoc_gamma = df_pcoc_gamma[col]
df_pcoc_gamma.rename(columns={'PCOC': 'PCOC_gamma',
'PC': 'PC_gamma',
'OC': 'OC_gamma'}, inplace=True)
if args.pcoc_C60 :
df_pcoc_C60 = pd.read_csv(args.pcoc_C60, sep="\t")
df_pcoc_C60 = df_pcoc_C60[['Sites','PCOC','PC','OC']]
col = ['Sites','PCOC','PC','OC']
if not args.pcoc and not args.pcoc_gamma :
col.extend(["Indel_prop","Indel_prop(ConvLeaves)"])
df_pcoc_C60 = df_pcoc_C60[col]
df_pcoc_C60.rename(columns={'PCOC': 'PCOC_C60',
'PC': 'PC_C60',
'OC': 'OC_C60'}, inplace=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment