Skip to content

Commit

Permalink
Add a couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Aug 2, 2023
1 parent ddd9140 commit 00edda0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions R/makeAbundanceHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ makeAbundanceHeatmap <- function(sce, assayToPlot, doCenter,
mat, name = nm, ...
)
} else {
## Should never end up here as the parameter is checked above
#nocov start
stop("Unknown value of the settings parameter")
#nocov end
}

}
Expand Down
2 changes: 2 additions & 0 deletions R/plotVolcano.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
if (!is.null(groupmap)) {
if (any(duplicated(groupmap$group))) {
## This should not happen
#nocov start
stop("Something went wrong - duplicated group in groupmap")
#nocov end
}
bardata <- bardata %>%
dplyr::left_join(groupmap, by = "group")
Expand Down
2 changes: 2 additions & 0 deletions R/runTests.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
if (!is.null(groupmap)) {
if (any(duplicated(groupmap$group))) {
## This should not happen
#nocov start
stop("Something went wrong - duplicated group in groupmap")
#nocov end
}
sce$mergegroup <- groupmap$mergegroup[match(sce$group, groupmap$group)]
} else {
Expand Down
5 changes: 2 additions & 3 deletions R/summaryPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ makeIntensityBoxplots <- function(sce, assayName, doLog, ylab) {
gg <- gg + ggplot2::scale_y_log10()
}
if (length(unique(sce$group)) > 15) {
gg <- gg +
ggplot2::theme(
legend.text = ggplot2::element_text(size = ggplot2::rel(0.75)))
gg <- gg + ggplot2::theme(
legend.text = ggplot2::element_text(size = ggplot2::rel(0.75)))
}
gg
}
Expand Down

0 comments on commit 00edda0

Please sign in to comment.