if (FALSE) {
method_pairs <- list(
CLR = list(
data1 = RepeatedHighDim:::scTC_eff_clr,
data2 = RepeatedHighDim:::scTC_eff_clr_robust
),
LogNorm = list(
data1 = RepeatedHighDim:::scTC_eff_log,
data2 = RepeatedHighDim:::scTC_eff_log_robust
)
)
method_colors <- setNames(grey.colors(2), c("CLR", "LogNorm"))
scTC_trim_effect(
method_pairs = method_pairs,
method_colors = method_colors,
column_title = "nPCs:5, nFeatures:1000"
)
set_colors <- grey.colors(3)
names(set_colors) <- c("S1:standard", "S2:intersect", "S3:trimmed")
scTC_trim_effect(
method_pairs = method_pairs,
method_colors = method_colors,
set_colors = setNames(c("blue", "green", "red"), names(set_colors)),
heatmap_color_palette = colorRamp2(c(0, 50, 100), c("white", "pink", "purple")),
column_title = "Custom Color Example"
)
}
Run the code above in your browser using DataLab