Skip to content
Open
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
8 changes: 4 additions & 4 deletions R/export.R
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@
) |>
dplyr::filter(.data$drug_or_class %in% fi_drugs)
if (!nrow(tf)) {
return(makeCogBarChart(NULL))
return(makeClusterBarChart(NULL))
}
enriched <- dplyr::bind_rows(lapply(unique(tf$species), function(sp) {
enrich_with_annotations(
tf[tf$species == sp, ],
species_code = sp, results_root = results_root
)
}))
makeCogBarChart(enriched)
makeClusterBarChart(enriched)
})
})
}
Expand Down Expand Up @@ -437,7 +437,7 @@
makeDrugFeatureNetwork(
top_features, code,
top_n = network_top_n,
include_clusters = FALSE, include_cogs = FALSE,
include_clusters = FALSE,
results_root = results_root
) |> .fit_network_to_content()
}, width = 1600, height = 1600, trim = TRUE)
Expand Down Expand Up @@ -534,7 +534,7 @@
#' @param results_root Directory of amRml model outputs (per-species subdirs
#' of `*_perf.parquet` / `*_top_features.parquet` / `metadata.parquet`).
#' `NULL` uses the packaged demo data.
#' @param amrdata_root Directory of amRdata annotation parquets (for COG
#' @param amrdata_root Directory of amRdata annotation parquets (for cluster
#' enrichment). `NULL` tries `~/amRdata/data`, else falls back to unenriched.
#' @param species Optional character vector restricting which species folders
#' to export.
Expand Down
2 changes: 1 addition & 1 deletion R/imports.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' amRviz package imports

#' @noRd
#' @importFrom shinydashboard box tabBox
#' @importFrom dplyr filter mutate select group_by summarize ungroup arrange
#' @importFrom dplyr pull distinct left_join bind_rows slice_max slice_head
Expand Down
Loading