Skip to content

Commit

Permalink
get_counts fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCorCab committed Jan 23, 2024
1 parent d5baa17 commit 667ac1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/main_degenes_Hunter.R
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ filter_by_variance <- function(count_matrix, q_filter, target){
colData = target,
design = stats::formula("~ treat"))
dds <- DESeq2::DESeq(dds)
normalized_counts <-DESeq2::counts(dds, normalized=TRUE)
normalized_counts <- DESeq2::counts(dds, normalized=TRUE)
variances <- matrixStats::rowVars(normalized_counts)
threshold <- stats::quantile(variances, q_filter)
fil_count_mtrx <- count_matrix[variances >= threshold,]
Expand Down

0 comments on commit 667ac1f

Please sign in to comment.