R/plot_adt_density_with_peak_valley.R
plot_adt_density_with_peak_valley.Rd
This function plots the ADT expression density profile with identified peak and valley locations. Each panel is an ADT marker, and each track is a sample. Color by batch
plot_adt_density_with_peak_valley(
cell_x_adt,
cell_x_feature,
adt_marker_select = NULL,
peak_landmark_list,
valley_landmark_list,
brewer_palettes = "Set1",
parameter_list = NULL
)
Matrix of ADT raw counts in cells (rows) by ADT markers (columns) format.
Matrix of cells (rows) by cell features (columns) such as cell type, sample, and batch-related information.
The target ADT marker(s) that the denstiy plot is about. Leave it NULL will generate figures for all the ADT markers available in cell_x_adt.
Matrix of peak landmark locations with rows being samples and columns being the peaks.
Matrix of valley landmark locations with rows being samples and columns being the valleys.
Set the color scheme of the color brewer.
Users can specify: "run_label" to give a name for this run; "bw" to adjust the bandwidth of the density plot.
if (FALSE) {
plot_adt_density_with_peak_valley(
cell_x_adt,
cell_x_feature,
adt_marker_select = c("CD3", "CD4", "CD8", "CD19"),
peak_landmark_list = peak_mode_norm_res,
valley_landmark_list = valley_location_norm_res,
brewer_palettes = "Set1",
parameter_list = list(bw = 0.1, run_label = "ADTnorm")
)
}