Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #82

Merged
merged 3 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/plotAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
#' ## Compositional barplot with top 5 taxa and samples sorted by "Bacteroidetes"
#'
#' # Getting top taxa on a Phylum level
#' se <- transformCounts(se, method="relabundance")
#' se <- transformAssay(se, method="relabundance")
#' se_phylum <- agglomerateByRank(se, rank ="Phylum", onRankOnly=TRUE)
#' top_taxa <- getTopTaxa(se_phylum,top = 5, assay.type = "relabundance")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/plotAbundanceDensity.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
#' plotAbundanceDensity(tse, assay.type = "counts")
#'
#' # Counts relative abundances
#' tse <- transformCounts(tse, method = "relabundance")
#' tse <- transformAssay(tse, method = "relabundance")
#'
#' # Plots the relative abundance of 10 most abundant taxa.
#' # "nationality" information is used to color the points. X-axis is log-scaled.
Expand Down
2 changes: 1 addition & 1 deletion R/plotSeries.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#' colour_by = "Family")
#'
#' # Counts relative abundances
#' object <- transformCounts(object, method = "relabundance")
#' object <- transformAssay(object, method = "relabundance")
#'
#' # Selects taxa
#' taxa <- c("seq_1", "seq_2", "seq_3", "seq_4", "seq_5")
Expand Down
2 changes: 1 addition & 1 deletion man/plotAbundance.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plotAbundanceDensity.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plotSeries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vignettes/miaViz.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ However, if the `rank` is set not `NULL` a bar plot is returned. At the same
time the `features` argument can be set to `NULL` (default).

```{r}
GlobalPatterns <- transformCounts(GlobalPatterns, method = "relabundance")
GlobalPatterns <- transformAssay(GlobalPatterns, method = "relabundance")
```

```{r}
Expand Down Expand Up @@ -261,7 +261,7 @@ plotColGraph(altExp(GlobalPatterns,"Genus"),
library("miaTime")
data(SilvermanAGutData, package="miaTime")
tse <- SilvermanAGutData
tse <- transformCounts(tse, method = "relabundance")
tse <- transformAssay(tse, method = "relabundance")
taxa <- getTopTaxa(tse, 2)
```

Expand Down Expand Up @@ -334,7 +334,7 @@ if(!requireNamespace("devtools", quietly = TRUE)){
BiocManager::install("devtools")
}
if(!requireNamespace("miaTime", quietly = TRUE)){
devtools::install_github("microbiome/miaTime")
devtools::install_github("microbiome/miaTime", upgrade = "never")
}
```

Expand All @@ -345,7 +345,7 @@ Principal Coordinates Analysis using Bray-Curtis dissimilarity on the
library(miaTime)
data(hitchip1006, package = "miaTime")
tse <- hitchip1006
tse <- transformCounts(tse, method = "relabundance")
tse <- transformAssay(tse, method = "relabundance")
## Ordination with PCoA with Bray-Curtis dissimilarity
tse <- runMDS(tse, FUN = vegan::vegdist, method = "bray", name = "PCoA_BC",
assay.type = "relabundance", na.rm = TRUE)
Expand Down