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
.
bc_barcodes(barcodeObj, unlist = TRUE)
# S4 method for class 'BarcodeObj'
bc_barcodes(barcodeObj, unlist = TRUE)
A character vector or a list.
data(bc_obj)
# Get unique barcodes vector of all samples
bc_barcodes(bc_obj)
#> [1] "AGAG" "AAAG" "AGAAG" "ACAAG" "AACG"
# Get a list with each element containing barcodes from one sample
bc_barcodes(bc_obj, unlist = FALSE)
#> $test1
#> [1] "AGAG" "AAAG" "AGAAG" "ACAAG"
#>
#> $test2
#> [1] "AACG" "AGAG" "AAAG" "ACAAG" "AGAAG"
#>
###