Skip to content

Commit

Permalink
fix(PAB): now plotMDS is called from the correct package and model_fi…
Browse files Browse the repository at this point in the history
…t calls correctly pdf
  • Loading branch information
hdescobarh committed May 28, 2024
1 parent 40ffd7f commit c56cea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PAB_Lab13_diff_expr/Code/DE_customized_functions.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

missing_packages <- character()
for (package in c(
"edgeR"
"edgeR", "limma"
)) {
if (!require(package, quietly = TRUE, character.only = TRUE)) {
missing_packages <- append(missing_packages, package)
Expand Down Expand Up @@ -38,7 +38,7 @@ normalization_and_dispersion <- function(
output_directory_path
)
)
edgeR::plotMDS(
limma::plotMDS(
data_normalized,
col = as.numeric(data_normalized$samples$treat)
)
Expand All @@ -61,7 +61,7 @@ model_fit <- function(
pdf(
file = sprintf(
"%s/dispersion_and_clustering.pdf",
output_directory_path,
output_directory_path
)
)
edgeR::plotQLDisp(fit)
Expand Down

0 comments on commit c56cea1

Please sign in to comment.