bc_cleanBc: Accesses cleanBc slot in the BarcodeObj object

Description Usage Arguments Value Examples

Description

cleanBc slot of BarcodeObj object contains the processed barcode reads frequency data. For more detail about the cleanBc slot, see BarcodeObj. bc_cleanBc is used to access the 'cleanBc' slot in the BarcodeObj.

Usage

1
2
3
4
bc_cleanBc(barcodeObj, isList = TRUE)

## S4 method for signature 'BarcodeObj'
bc_cleanBc(barcodeObj, isList = TRUE)

Arguments

barcodeObj

A BarcodeObj objects.

isList

A logical value, if TRUE (default), the return is a list with each sample as an element. Otherwise, the function will return a data.frame contains the data from all the samples with a column named sample_name to keep the sample information.

Value

If a list is requested, each list element a codedata.frame for each sample. In a codedata.frame, there are 2 columns 1. barcode_seq: barcode sequence 2. counts: reads count, or UMI count if the cleanBc was created by bc_cure_umi.

If a data.frame is requested, the data.frame in the list described above are combined into one data.frame by row, with an extra column named sample_name for identifying sample.

Examples

1
2
3
4
5
6
7
8
 data(bc_obj)
# get the data in cleanBc slot
# default the return value is a list
bc_cleanBc(bc_obj)

# the return value can be a data.frame
bc_cleanBc(bc_obj, isList=FALSE)
###

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