Learn R Programming

scCustomize (version 3.0.1)

Replace_Suffix: Replace barcode suffixes

Description

Replace barcode suffixes in matrix, data.frame, or list of matrices/data.frames

Usage

Replace_Suffix(data, current_suffix, new_suffix)

Value

matrix or data.frame with new column names.

Arguments

data

Either matrix/data.frame or list of matrices/data.frames with the cell barcodes in the column names.

current_suffix

a single value or vector of values representing current barcode suffix. If suffix is the same for all matrices/data.frames in list only single value is required.

new_suffix

a single value or vector of values representing new barcode suffix to be added. If desired suffix is the same for all matrices/data.frames in list only single value is required. If no suffix is desired set new_suffix = "".`

Examples

Run this code
if (FALSE) {
dge_matrix <- Replace_Suffix(data = dge_matrix, current_suffix = "-1", new_suffix = "-2")
}

Run the code above in your browser using DataLab