Skip to content

Commit

Permalink
Fix function names to not be duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Feb 19, 2024
1 parent a0341da commit b7b0f02
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 25 deletions.
2 changes: 1 addition & 1 deletion R/multi_gene_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' @author Nicholas J. Eagles
#' @importFrom stats prcomp
#' @family functions for summarizing expression of multiple continuous variables simultaneously
multi_gene_z_score <- function(cont_mat) {
multi_gene_pca <- function(cont_mat) {
pc_exp <- stats::prcomp(cont_mat, center = TRUE, scale = TRUE)
pc_vec <- pc_exp$x[, "PC1"]

Expand Down
2 changes: 1 addition & 1 deletion R/multi_gene_sparsity.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
#' @author Nicholas J. Eagles
#' @import MatrixGenerics
#' @family functions for summarizing expression of multiple continuous variables simultaneously
multi_gene_z_score <- function(cont_mat) {
multi_gene_sparsity <- function(cont_mat) {
return(rowMeans(cont_mat > 0))
}
33 changes: 33 additions & 0 deletions man/multi_gene_pca.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions man/multi_gene_sparsity.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 7 additions & 23 deletions man/multi_gene_z_score.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7b0f02

Please sign in to comment.