This function is used to summarize the counts of each barcode.

bc_plot_count(barcodeObj, bins = 20, useCleaned = TRUE)

# S4 method for class 'BarcodeObj'
bc_plot_count(barcodeObj, bins = 20, useCleaned = TRUE)

Arguments

barcodeObj

A BarcodeObj object

bins

The number of bins for the histogram

useCleaned

Whether to use the cleaned barcode data

Value

A egg::ggarrange object

Details

When useCleaned is TRUE, the cleaned barcode data will be used. Otherwise, the messy barcode data will be used. The output will be different when useCleaned is TRUE or FALSE. It also depends on whether the UMI is available. The counts include:

  1. reads count (with barcode) versus the total reads

  2. reads count per UMI

  3. UMI count per barcode

  4. barcode count per sample

  5. reads or UMI count (dominant barcode) versus total count per sample

  6. reads or UMI count (dominant barcode) distribution

Examples

data(bc_obj)
bc_plot_count(barcodeObj=bc_obj)