Skip to content

Commit

Permalink
bioc check
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniJieunKim committed Jun 24, 2024
1 parent bfb2de7 commit 9366bcd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Imports:
reshape2,
BiocParallel,
stats,
dplyr
dplyr,
purrr
biocViews: Classification, GeneExpression, SingleCell, Software, Sequencing, DifferentialExpression
Suggests:
knitr,
Expand Down
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2024
COPYRIGHT HOLDER: Cepo authors
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2024 Cepo authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 4 additions & 3 deletions R/Cepo.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' Default to NULL to not remove any genes.
#' @param prefilter_sd Numeric value indicating threshold relating to standard
#' deviation of genes. Used with prefilter_zeros.
#' @param prefilter_pzeros Numeric value indicating threshold relating to the
#' @param prefilter_pzero Numeric value indicating threshold relating to the
#' percentage of zero expression of genes. Used with prefilter_sd.
#' @param logfc Numeric value indicating the threshold of log fold-change
#' to use to filter genes.
Expand Down Expand Up @@ -39,6 +39,7 @@
#' @importFrom HDF5Array HDF5Array
#' @importFrom BiocParallel SerialParam MulticoreParam SnowParam bplapply
#' @importFrom stats pnorm pchisq
#' @importFrom purrr map map2
#' @import dplyr
#' @return Returns a list of key genes.
#' @description ExprsMat accepts various matrix objects,
Expand Down Expand Up @@ -258,8 +259,8 @@ bootFastCepo <- function(exprsMat, cellTypes, minCells, exprsPct, logfc, variabi
this_celltype_stats_matrix = purrr::map(.x = sampled_cepo_stats, .f = function(this_sampled_stats){
this_sampled_stats[,this_celltype]
}) %>% do.call(cbind, .)
this_celltype_stats_mean = Cepo:::rowMeans_withnames(this_celltype_stats_matrix)
this_celltype_stats_sd = Cepo:::rowSds_withnames(this_celltype_stats_matrix)
this_celltype_stats_mean = rowMeans_withnames(this_celltype_stats_matrix)
this_celltype_stats_sd = rowSds_withnames(this_celltype_stats_matrix)
return(data.frame(mean = this_celltype_stats_mean, sd = this_celltype_stats_sd))
})
names(celltype_norm_stats) = cts
Expand Down

0 comments on commit 9366bcd

Please sign in to comment.