get_sample_from_barcode: Extract the sample/batch name for each cell from a...

Description Usage Arguments Value

View source: R/get_sample_from_barcode.R

Description

This function assumes that process_velo_txis or similar has renamed the cell barcodes (colnames) in a SingleCellExperiment to indicate whence they came, and pops the last element of the split vector off the end. This is handy for running Harmony as a first pass to get rid of batch effects, although the right way to do this while respecting spliced-unspliced relationships is currently an open research problem.

Usage

1
get_sample_from_barcode(txis, sep = "_")

Arguments

txis

SingleCellExperiment or vector with entries like FOO_BAR_AATGCT

sep

the separator character used to paste the column names ("_")

Value

1
 a character vector of sample names, e.g. FOO_BAR

trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.