Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Jul 9, 2024
1 parent 287e58b commit e1daf48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/plotAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ setMethod("plotAbundance", signature = c("SummarizedExperiment"),
# If user wants to calculate relative abundances, apply relative transform
# and use relative assay instead of the original assay in plotting.
if( use_relative ){
x <- transformAssay(x, assay.type = assay.type, method = "relabundance")
assay.type <- "relabundance"
temp_name <- "temporary_relative_abundance"
x <- transformAssay(x, assay.type = assay.type, method = "relabundance", name = temp_name)
assay.type <- temp_name
}
# Samples must have names. In theory, TreeSE can include columns without
# names. If that is the case, add names.
Expand Down
2 changes: 1 addition & 1 deletion vignettes/miaViz.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ several options, such as `plotColData`, `plotExpression` and `plotRowData`.
To install `miaViz`, install `BiocManager` first, if it is not installed.
Afterwards use the `install` function from `BiocManager` and load `miaViz`.

```{r}
```{r install, eval=FALSE}
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("miaViz")
Expand Down

0 comments on commit e1daf48

Please sign in to comment.