Skip to content

Commit b496327

Browse files
committed
fixed Matrix package versioning, added check for FlatFile with HTAN
1 parent 4dcb035 commit b496327

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Imports:
6868
KernSmooth,
6969
limma,
7070
MAST,
71-
Matrix (== 1.6-1),
71+
Matrix (>= 1.6-1),
7272
matrixStats,
7373
methods,
7474
msigdbr,

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ RUN R -e "BiocManager::install('celda')"
4343
#RUN R -e "devtools::install_github('wleepang/shiny-directory-input')"
4444
RUN R -e "options(timeout=360000)" \
4545
&& R -e "devtools::install_github('compbiomed/[email protected]', force = TRUE, dependencies = TRUE)"
46-
46+
RUN R -e "install.packages('Matrix', version = '1.6-1')"
47+
RUN R -e "install.packages('irlba', type = 'source')"
48+
RUN R -e "install.packages('SeuratObject', type = 'source')"
4749
RUN R -e "install.packages('reticulate')"
4850
RUN R -e "Sys.setenv(RETICULATE_PYTHON = '/usr/bin/python3')"
4951
RUN R -e "reticulate::py_config()"

exec/SCTK_runQC.R

+12-2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,13 @@ if (is.null(subTitles)) {
244244
subTitles <- unlist(strsplit(opt[["subTitles"]], ","))
245245
}
246246

247+
if ("HTAN" %in% formats) {
248+
if (!("FlatFile" %in% formats)) {
249+
message("Notice: HTAN specified as output without FlatFile. Automatically including FlatFile export.")
250+
formats <- append(formats, "FlatFile")
251+
}
252+
}
253+
247254
## Parse parameters for QC algorithms
248255
if (!is.null(yamlFile)) {
249256
arguments <- c('Params')
@@ -328,7 +335,7 @@ level3Meta <- list()
328335
level4Meta <- list()
329336

330337
if (!is.null(flatFiles)) {
331-
flatFiles <- split(flatFiles, ceiling(seq_along(flatFiles)/3))
338+
flatFiles <- split(flatFiles, ceiling(seq_along(flatFiles)/6))
332339
}
333340

334341
for(i in seq_along(process)) {
@@ -358,7 +365,7 @@ for(i in seq_along(process)) {
358365
mitoInfo <- .importMito(MitoImport = MitoImport, MitoType = MitoType)
359366

360367
cellQCAlgos <- c("QCMetrics", "scDblFinder", "cxds", "bcds", "scrublet", "doubletFinder",
361-
"cxds_bcds_hybrid", "decontX", "decontX_bg", "soupX", "soupX_bg")
368+
"cxds_bcds_hybrid", "decontX", "decontX_bg", "soupX", "soupX_bg") #scrublet
362369

363370
# Checking to see if the input is a file instead of a directory, for RDS and H5AD reading
364371
# also check to see if the sample name is specified, and if so, set it
@@ -633,6 +640,7 @@ if (!isTRUE(split)) {
633640
getSceParams(inSCE = cellSCE, directory = directory, samplename = samplename, writeYAML = TRUE)
634641

635642
## generate meta data
643+
# generate HTAN level3/level4 output
636644
if ("FlatFile" %in% formats) {
637645
if ("HTAN" %in% formats) {
638646
meta <- generateHTANMeta(dropletSCE = dropletSCE, cellSCE = cellSCE, samplename = samplename,
@@ -680,6 +688,7 @@ if (!isTRUE(split)) {
680688
}
681689

682690
exportSCE(inSCE = cellSCE, samplename = samplename, directory = directory, type = "Cells", format=formats)
691+
# generate HTAN level3/level4 output
683692
if ("FlatFile" %in% formats) {
684693
if ("HTAN" %in% formats) {
685694
meta <- generateHTANMeta(dropletSCE = NULL, cellSCE = cellSCE, samplename = samplename,
@@ -714,6 +723,7 @@ if (!isTRUE(split)) {
714723
names(metadata(dropletSCE)$sctk$runBarcodeRankDrops) <- sample
715724

716725
exportSCE(inSCE = dropletSCE, samplename = samplename, directory = directory, type = "Droplets", format=formats)
726+
# generate HTAN level3/level4 output
717727
if ("FlatFile" %in% formats) {
718728
if ("HTAN" %in% formats) {
719729
meta <- generateHTANMeta(dropletSCE = dropletSCE, cellSCE = NULL, samplename = samplename,

0 commit comments

Comments
 (0)