Skip to content

Commit

Permalink
fix qTable bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Barrero Rodríguez committed Oct 26, 2023
1 parent 8614702 commit dc3fcb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4_qTableReport/qReportMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)

Expand All @@ -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)

Expand Down
Empty file.

0 comments on commit dc3fcb4

Please sign in to comment.