Skip to content

Commit

Permalink
allow for gene_group_df with one grouping in aggregate_gene_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyduran committed Aug 27, 2024
1 parent a2017a2 commit 9fe2be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cluster_genes.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ aggregate_gene_expression <- function(cds,
agg_mat_colnames = colnames(agg_mat)
agg_mat = do.call(rbind, agg_gene_groups)
row.names(agg_mat) = gene_groups
agg_mat = agg_mat[is.na(agg_gene_groups) == FALSE,]
agg_mat = agg_mat[is.na(agg_gene_groups) == FALSE, , drop=FALSE]
colnames(agg_mat) = agg_mat_colnames
}

Expand Down

0 comments on commit 9fe2be2

Please sign in to comment.