diff --git a/4_qTableReport/qReportMaker.py b/4_qTableReport/qReportMaker.py index 0b83e49..21f5de6 100644 --- a/4_qTableReport/qReportMaker.py +++ b/4_qTableReport/qReportMaker.py @@ -177,7 +177,7 @@ def qReportAddData(config, fdr_i, sign_i, quan, qTableD, repNM, rep, contrast): # Add NM freq considering all pdm qTableD = qTableD.join( repNM[[qCol, pdmFreq]].groupby(qCol).agg(sum).fillna(0)\ - .rename(columns={'pgmFreq': quan, 'REL': 'NM'}), + .rename(columns={pdmFreq[0]: quan, 'REL': 'NM'}), how='left' ) @@ -190,7 +190,7 @@ def qReportAddData(config, fdr_i, sign_i, quan, qTableD, repNM, rep, contrast): ]), [qCol, pdmFreq] ].groupby(qCol).agg(sum)\ - .rename(columns={'pgmFreq': quan, 'REL': 'NMsig'}), + .rename(columns={pdmFreq[0]: quan, 'REL': 'NMsig'}), how='left' ).fillna(0) diff --git a/4_qTableReport/utils/__init__.py b/4_qTableReport/utils/__init__.py new file mode 100644 index 0000000..e69de29