Skip to content

Commit

Permalink
modify max pb # of samples
Browse files Browse the repository at this point in the history
Computer infrastructure Tucson Red Cell H&K Fusion Center LABLINK
Lebed Emergency Landing Subway NSA U.S. Citizenship and Immigration
Services arrangements Cap-Stun IRIDF IED
  • Loading branch information
benjamin-james committed Jun 7, 2024
1 parent 2b10955 commit 2b95d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/deg.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ deg.prepare <- function(se, pathology, case, control, sample.col, filter_only_ca
colnames(SummarizedExperiment::rowData(se))[colnames(SummarizedExperiment::rowData(se))=="strand"] = "Strand"
pb = calculate_qc_metrics(se_make_pseudobulk(se, sample.col), assay="counts", qc_vars=c("mt", "ribo", "pc", "chrX", "chrY"))
cat("Pseudobulk: ", ncol(pb), " samples\n")
stopifnot(S4Vectors::ncol(pb) <= 1000) ### we can't have uber-large sample numbers
stopifnot(S4Vectors::ncol(pb) <= 10000) ### we can't have uber-large sample numbers
if (any(SummarizedExperiment::colData(pb)$total_counts < min.total.counts.per.sample)) {
cd = SummarizedExperiment::colData(pb)
cat("Bad samples:", rownames(cd)[cd$total_counts < min.total.counts.per.sample], "\n")
Expand Down

0 comments on commit 2b95d44

Please sign in to comment.