Skip to content

Commit

Permalink
Update _sc.py (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong authored Aug 17, 2023
1 parent 7e950d2 commit b42e63d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tools/sc/_sc.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,15 @@ def returnDEres(
dfs = [scores, lfc, pvals, padj, pts, ptsx]
except:
dfs = [scores, lfc, pvals, padj]
df_final = functools.reduce(
lambda left, right: pd.merge(left, right, left_index=True, right_index=True),
dfs,
)
try:
df_final = functools.reduce(
lambda left, right: pd.merge(
left, right, left_index=True, right_index=True
),
dfs,
)
except:
df_final = pd.concat(dfs, axis=1)
try:
df_final.columns = [
"scores",
Expand Down

0 comments on commit b42e63d

Please sign in to comment.