Creates a heatmap showing cross-drug model performance (MCC), where models trained on one drug are evaluated on another.
plotCrossDrug(
cross_test_performance_path = ".",
drug_performance_path = ".",
metadata_path = "."
)A cross-drug performance tibble (with
drug, test_drug, and mcc columns), or a directory path
containing cross_drug_perf.parquet.
A performance tibble (with drug_label,
drug_or_class, and mcc columns), or a directory path containing
all_perf.parquet.
Character. Path to a directory containing metadata.parquet.
A ComplexHeatmap object.
cross_drug <- tibble::tibble(
drug = c("AMP", "AMP", "CIP", "CIP", "NAL", "NAL"),
test_drug = c("CIP", "NAL", "AMP", "NAL", "AMP", "CIP"),
mcc = c(0.3, 0.2, 0.4, 0.25, 0.15, 0.35)
)
performance <- tibble::tibble(
drug_label = "drug",
drug_or_class = c("AMP", "CIP", "NAL"),
mcc = c(0.8, 0.7, 0.6)
)
plotCrossDrug(
cross_test_performance_path = cross_drug,
drug_performance_path = performance,
metadata_path = system.file("extdata", package = "amRml")
)