Skip to content

Commit

Permalink
Fix regressPC function.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyChristidis committed Sep 7, 2024
1 parent a56cd81 commit 23e7514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/regressPC.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ adjustPValues <- function(regress_res,
coeffs$p.adjusted <- p.adjusted

# Update the coefficients table in the object
regress_res[["regression_summaries"]][[pc]][["regression_summaries"]] <- coeffs
regress_res[["regression_summaries"]][[pc]][["coefficients"]] <- coeffs
}

} else if (indep_var == "dataset"){
Expand All @@ -302,7 +302,7 @@ adjustPValues <- function(regress_res,
coeffs[["p.adjusted"]] <- p.adjusted

# Update the coefficients table in the object
regress_res[[cell_type]][[pc_id]][["p.value"]] <- coeffs
regress_res[[cell_type]][[pc_id]][["coefficients"]] <- coeffs
}
}
}
Expand Down

0 comments on commit 23e7514

Please sign in to comment.