Skip to content

Commit

Permalink
Workflow build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seraidarian committed Aug 2, 2024
1 parent 56a25e1 commit 153df32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: miaViz
Title: Microbiome Analysis Plotting and Visualization
Version: 1.13.8
Version: 1.13.9
Authors@R:
c(person(given = "Tuomas", family = "Borman", role = c("aut", "cre"),
email = "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ importFrom(tidygraph,as_tbl_graph)
importFrom(tidygraph,as_tibble)
importFrom(tidyr,drop_na)
importFrom(tidyr,pivot_longer)
importFrom(tidytext,scale_y_reordered)
importFrom(tidytree,as.phylo)
importFrom(tidytree,as.treedata)
importFrom(tidytree,as_tibble)
Expand Down
7 changes: 3 additions & 4 deletions R/plotLoadings.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
#' library(mia)
#' library(ggtree)
#' library(scater)
#' library(shadowtext)
#' library(tidytext)
#' data("GlobalPatterns", package = "mia")
#' tse <- GlobalPatterns
#' tse <- transformAssay(tse, method = "clr", pseudocount = 1)
Expand Down Expand Up @@ -149,7 +147,7 @@ setMethod("plotLoadings", signature = c(x = "TreeSummarizedExperiment"),
# Ordering loadings and adding factor to keep the order
df <- .get_loadings_plot_data(loadings_matrix, n, ncomponents)
# Plot features with barplot layout
p <- .barplot_feature_loadings(df, layout, n, ncomponents)
p <- .barplot_feature_loadings(df)
}
return(p)
}
Expand Down Expand Up @@ -395,7 +393,8 @@ setMethod("plotLoadings", signature = c(x = "SingleCellExperiment"),
return(p)
}

.barplot_feature_loadings <- function(df, layout, n, ncomponents) {
#' @importFrom tidytext scale_y_reordered
.barplot_feature_loadings <- function(df) {
cnames <- unique(df$PC)
p <- ggplot(df, aes(x = Value, y = reorder_within(Feature, Value, PC))) +
geom_bar(stat = "identity") +
Expand Down
2 changes: 0 additions & 2 deletions man/plotLoadings.Rd

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

0 comments on commit 153df32

Please sign in to comment.