bc_cleanBc {CellBarcode} | R Documentation |
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)
barcodeObj |
A |
isList |
A logical value, if TRUE (default), the return is a list with each sample
as an element. Otherwise, the function will return a |
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.
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) ###