bc_plot_single: Scatter plot of barcode count distribution per sample

bc_plot_singleR Documentation

Scatter plot of barcode count distribution per sample

Description

Draws barcode count distribution for each sample in a BarcodeObj object.

Usage

bc_plot_single(
  barcodeObj,
  sample_names = NULL,
  count_marks = NULL,
  highlight = NULL,
  log_coord = TRUE,
  alpha = 0.7
)

## S4 method for signature 'BarcodeObj'
bc_plot_single(
  barcodeObj,
  sample_names = bc_names(barcodeObj),
  count_marks = NULL,
  highlight = NULL,
  log_coord = TRUE,
  alpha = 0.7
)

Arguments

barcodeObj

A BarcodeObj object has a cleanBc slot

sample_names

A character vector or integer vector, specifying the samples used for the plot.

count_marks

A numeric or numeric vector, specifying the read count cutoff in the scatter plot for each sample.

highlight

A character vector, specifying the barcodes that need to be highlighted.

log_coord

A logical value, if TRUE (default), the x and y coordinates of the scatter plot are transformed by log10.

alpha

A numeric between 0 and 1, specifies the transparency of the dots in the scatter plot.

Value

1D distribution graph matrix.

Examples

data(bc_obj) 

bc_plot_single(bc_obj, count_marks=c(10, 11))
###

wenjie1991/CellBarcode documentation built on Dec. 20, 2024, 9:52 a.m.