Skip to content

Commit 3be5bb3

Browse files
authored
Update server.R
1 parent d8fe478 commit 3be5bb3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎fea/tab_PSEUDO/server.R‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ aggregate_column <- function(x) {
1919

2020
make_pseudobulk <- function(count_matrix, metadata, group){
2121

22-
count_matrix <- as.matrix(count_matrix[[1]])
23-
24-
print(typeof(count_matrix))
22+
count_matrix <- count_matrix[[1]]
23+
24+
count_matrix <- as.matrix(count_matrix)
2525

2626
counts <- 2^count_matrix - 1
2727
counts[counts < 0] <- 0
2828

29+
group <- paste("pseudo", group, sep = "_")
30+
2931
pseudobulk_counts <- sapply(unique(group), function(g) {
3032
rowSums(counts[, group == g, drop = FALSE])
3133
})

0 commit comments

Comments
 (0)