Skip to content

Commit a99bb15

Browse files
committed
up
1 parent e782710 commit a99bb15

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: OMA
22
Title: Orchestrating Microbiome Analysis with Bioconductor
3-
Version: 0.99.2
4-
Date: 2026-03-24
3+
Version: 0.99.3
4+
Date: 2026-03-25
55
Authors@R:
66
c(
77
person(given = "Tuomas", family = "Borman", role = c("aut", "cre"), email = "tuomas.v.borman@utu.fi", comment = c(ORCID = "0000-0002-8563-8884")),

inst/pages/clustering.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ to visualize ecological differences between the clusters.
127127
library(dendextend)
128128
129129
# Get hclust data from metadata
130-
hclust_data <- metadata(altExp(tse, "prevalent"))$clusters$hclust
130+
hclust_data <- metadata(altExp(tse, "prevalent"))$clustering$hclust
131131
132132
# Get the dendrogram object
133133
dendro <- as.dendrogram(hclust_data)
@@ -430,7 +430,7 @@ tse <- addCluster(
430430
assay.type = "standardize", HclustParam(method = "complete"),
431431
full = TRUE
432432
)
433-
taxa_hclust <- metadata(tse)[["clusters"]][["hclust"]]
433+
taxa_hclust <- metadata(tse)[["clustering"]][["hclust"]]
434434
435435
# Creates a tree
436436
taxa_tree <- as.phylo(taxa_hclust)
@@ -493,15 +493,15 @@ Now we can create a heatmap with additional annotations.
493493
494494
# Order the data based on clusters
495495
tse <- tse[
496-
order(rowData(tse)[["clusters"]]),
497-
order(colData(tse)[["clusters"]])
496+
order(rowData(tse)[["cluster"]]),
497+
order(colData(tse)[["cluster"]])
498498
]
499499
500500
# Get data for plotting
501501
mat <- assay(tse, "standardize")
502-
taxa_clusters <- rowData(tse)[, "clusters", drop = FALSE] |>
502+
taxa_clusters <- rowData(tse)[, "cluster", drop = FALSE] |>
503503
as.data.frame()
504-
sample_data <- colData(tse)[, c("clusters", "Gender"), drop = FALSE] |>
504+
sample_data <- colData(tse)[, c("cluster", "Gender"), drop = FALSE] |>
505505
as.data.frame()
506506
colnames(sample_data) <- c("clusters_col", "gender")
507507

0 commit comments

Comments
 (0)