bc_barcodes: Gets barcode sequences

Description Usage Arguments Value Examples

Description

bc_barcodes used to get the barcode sequences in BarcodeObj object. The input BarcodesObj object should be pre-processed by bc_cure_* functions, such as bc_cure_depth, bc_cure_umi.

Usage

1
2
3
4
bc_barcodes(barcodeObj, unlist = TRUE)

## S4 method for signature 'BarcodeObj'
bc_barcodes(barcodeObj, unlist = TRUE)

Arguments

barcodeObj

A BarcodeObj object.

unlist

A logical value. If TRUE, the function returns a vector of unique barcode list from all samples; otherwise a list will be returned. In the later case, each element of the list contains the barcodes of a sample.

Value

A character vector or a list.

Examples

1
2
3
4
5
6
7
8
9
data(bc_obj)

# get unique barcode vector of all samples
bc_barcodes(bc_obj)

# get a list with each element containing barcodes from one sample
bc_barcodes(bc_obj, unlist = FALSE)

###

wenjie1991/CellBarocde documentation built on Dec. 23, 2021, 5:11 p.m.