Skip to content

Commit 021540b

Browse files
committed
add if statement before plotEncDimSearch in OUTRIDER summary
1 parent 1cedf28 commit 021540b

File tree

1 file changed

+6
-6
lines changed
  • drop/modules/aberrant-expression-pipeline/OUTRIDER

1 file changed

+6
-6
lines changed

drop/modules/aberrant-expression-pipeline/OUTRIDER/Summary.R

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ if(is.null(colData(ods)$isExternal)) colData(ods)$isExternal <- FALSE
5151
#' ### Encoding dimension
5252
if (isTRUE(metadata(ods)[["useOHTtoObtainQ"]])){
5353
print(c("Optimal dimension q was determined using OHT to be", getBestQ(ods)), quote = F)
54-
} else{
55-
plotEncDimSearch(ods) +
56-
labs(title = dataset_title) +
57-
theme_cowplot() +
58-
background_grid() +
59-
scale_color_brewer(palette="Dark2")
54+
} else if(!is.null(metadata(ods)$encDimTable)){
55+
plotEncDimSearch(ods) +
56+
labs(title = dataset_title) +
57+
theme_cowplot() +
58+
background_grid() +
59+
scale_color_brewer(palette="Dark2")
6060
}
6161

6262
#' ### Aberrantly expressed genes per sample

0 commit comments

Comments
 (0)