Skip to content

Commit

Permalink
fixed bug with inversion of test and reference conditions in edger_an…
Browse files Browse the repository at this point in the history
…alysis.R
  • Loading branch information
jvanheld committed Sep 9, 2018
1 parent 70a9c99 commit 68dac76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/RSnakeChunks/R/edger_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ edger.analysis <- function(counts,
################################################################
## Detect differentially expressed genes by applying the exact
## negative binomial test from edgeR package.
edger.de <- exactTest(d, pair = c(test.condition, ref.condition), ...) ## Run the exact negative binomial test
edger.de <- exactTest(d, pair = c(ref.condition, test.condition), ...) ## Run the exact negative binomial test

## Sort genes by increasing p-values, i.e. by decreasing significance
edger.tt <- topTags(edger.de, n = nrow(d), sort.by = "PValue")
Expand Down

0 comments on commit 68dac76

Please sign in to comment.