Skip to content

Commit

Permalink
Merge branch 'master' of github.com:stemangiola/tidybulk
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Nov 21, 2024
2 parents 08b8d56 + b5f31b0 commit d310912
Show file tree
Hide file tree
Showing 16 changed files with 389 additions and 623 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: tidybulk
Title: Brings transcriptomics to the tidyverse
Version: 1.17.3
Version: 1.17.8
Authors@R: c(person("Stefano", "Mangiola", email = "[email protected]",
role = c("aut", "cre")),
person("Maria", "Doyle", email = "[email protected]",
Expand Down Expand Up @@ -95,7 +95,7 @@ Biarch: true
biocViews: AssayDomain, Infrastructure, RNASeq, DifferentialExpression, GeneExpression, Normalization, Clustering, QualityControl, Sequencing, Transcription, Transcriptomics
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
LazyDataCompression: xz
URL: https://github.com/stemangiola/tidybulk
BugReports: https://github.com/stemangiola/tidybulk/issues
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ importFrom(GenomicRanges,makeGRangesListFromDataFrame)
importFrom(Matrix,colSums)
importFrom(S4Vectors,metadata)
importFrom(SummarizedExperiment,SummarizedExperiment)
importFrom(SummarizedExperiment,as.data.frame)
importFrom(SummarizedExperiment,assays)
importFrom(SummarizedExperiment,colData)
importFrom(SummarizedExperiment,rowData)
Expand Down
9 changes: 3 additions & 6 deletions R/cibersort.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,9 @@ my_CIBERSORT <- function(Y, X, perm=0, QN=TRUE, cores = 3, exp_transform = FALSE
))
Y=Y[,colSums(Y)>0, drop=FALSE]

# Check if package is installed, otherwise install
if (find.package("matrixStats", quiet = TRUE) %>% length %>% equals(0)) {
message("tidybulk says: Installing matrixStats needed for cibersort")
install.packages("matrixStats", repos = "https://cloud.r-project.org")
}

# Check if 'matrixStats' package is installed, otherwise stop with instructions
check_and_install_packages("matrixStats")

# Eliminate sd == 0
if(length(which(matrixStats::colSds(Y)==0))>0)
warning(sprintf(
Expand Down
Loading

0 comments on commit d310912

Please sign in to comment.