bc_cleanBc: Accesses cleanBc slot in the BarcodeObj object

bc_cleanBcR Documentation

Accesses cleanBc slot in the BarcodeObj object


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.


bc_cleanBc(barcodeObj, isList = TRUE)

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



A BarcodeObj objects.


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.


If a list is requested, each list element is a data.frame for each sample. In a data.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.


# Get the data in cleanBc slot
# default the return value is a list

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

wenjie1991/CellBarocde documentation built on Feb. 20, 2024, 2:12 p.m.