Skip to content

Commit

Permalink
Merge pull request xuranw#75 from mschilli87/abudance
Browse files Browse the repository at this point in the history
Fix typo: abudance -> abundance
  • Loading branch information
xuranw authored Jun 28, 2021
2 parents b4be9bd + fc0ca72 commit 7c58348
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions R/construct.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bulk_construct = function(eset, clusters, samples, select.ct = NULL){
############ Construct Design Matrix, Library Size, and Subject-level Variation of Relative abundance for MuSiC ############
## These functions are for cell type specific mean expression, cross-subject variance and mean library size for MuSiC deconvolution

#' Cross-subject Mean of Relative Abudance
#' Cross-subject Mean of Relative Abundance
#'
#' This function is for calculating the cross-subject mean of relative abundance for selected cell types.
#'
Expand Down Expand Up @@ -95,7 +95,7 @@ music_M.theta = function(x, non.zero, markers, clusters, samples, select.ct){
return(M.theta)
}

#' Subject and cell type specific relative abudance
#' Subject and cell type specific relative abundance
#'
#' This function is for calculating the subject and cell type specific relative abundance for selected cell types.
#'
Expand Down Expand Up @@ -137,7 +137,7 @@ music_Theta <- function(x, non.zero = FALSE, clusters, samples, select.ct = NULL
return(Theta = Theta)
}

#' Cross-subject Corvriance of Relative Abudance
#' Cross-subject Corvriance of Relative Abundance
#'
#' This function is for calculating the cross-subject covariance of relative abundance for selected cell types.
#'
Expand Down Expand Up @@ -184,7 +184,7 @@ music_Sigma.ct = function(x, non.zero, markers, clusters, samples, select.ct){
return(Sigma.ct = Sigma.ct)
}

#' Cross-subject Varirance of Relative Abudance
#' Cross-subject Varirance of Relative Abundance
#'
#' This function is for calculating the cross-subject variance of relative abundance for selected cell types.
#'
Expand Down Expand Up @@ -313,7 +313,7 @@ music_Design.matrix = function(x, non.zero, markers, clusters, samples, select.c
#' * gene by cell type matrix of Design matrix
#' * subject by celltype matrix of Library size
#' * vector of average library size for each cell type
#' * gene by celltype matrix of average relative abudance
#' * gene by celltype matrix of average relative abundance
#' * gene by celltype matrix of cross-subject variation
#'
#' @export
Expand All @@ -336,7 +336,7 @@ music_basis = function(x, non.zero = TRUE, markers = NULL, clusters, samples, se
rowSums(y)/sum(y)
}), na.rm = TRUE)
})
if(verbose){message("Creating Relative Abudance Matrix...")}
if(verbose){message("Creating Relative Abundance Matrix...")}
if(ct.cov){
nGenes = nrow(x);
n.ct = length(unique(clusters));
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
##########################################################################


#' Calculate relative abudance
#' Calculate relative abundance
#' @param X non-negative matrix for calculate relative abundance
#' @param by.col logical, default as TRUE
#' @export
Expand Down
2 changes: 1 addition & 1 deletion man/music_M.theta.Rd

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

2 changes: 1 addition & 1 deletion man/music_Sigma.Rd

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

2 changes: 1 addition & 1 deletion man/music_Sigma.ct.Rd

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

2 changes: 1 addition & 1 deletion man/music_Theta.Rd

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

2 changes: 1 addition & 1 deletion man/music_basis.Rd

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

4 changes: 2 additions & 2 deletions man/relative.ab.Rd

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

0 comments on commit 7c58348

Please sign in to comment.