R/peak_alignment.R
peak_alignment.Rd
This function monotonously transforms the ADT marker counts to align the landmarks detected in previous steps. By aligning the landmarks, ADTnorm removes the batch effect and allows integration across batches/studies.
peak_alignment(
cell_x_adt,
cell_x_feature = NULL,
landmark_matrix = NULL,
target_landmark = 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.
Matrix of peak and valley landmarks after filling in NA using the landmark_fill_na
function.
Leave it as NULL to align the landmark to the mean location across samples. Denote it by a vector of the same length as the column number of the landmark to align the negative peak, valley, and positive peak(s) to the specified fixed location.
if (FALSE) {
peak_alignment(cell_x_adt, cell_x_feature, landmark_matrix)
}