bc_plot_mutual: Barcode read count 2D scatter plot of sample combination

bc_plot_mutualR Documentation

Barcode read count 2D scatter plot of sample combination

Description

Draw barcode count scatter plot for all pairwise combinations of samples within a BarcodeObj object. It uses cleanBc slot in the BarcodeObj object is used to draw the figure. If the BarcodeObj object does not have a cleanBc slot, you have to run the bc_cure* functions in ahead, such as bc_cure_depth, bc_cure_umi.

Usage

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

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

Arguments

barcodeObj

A BarcodeObj object, which has a cleanBc slot

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 to be highlighted.

log_coord

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

alpha

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

Value

A scatter plot matrix.

Examples


data(bc_obj)

bc_plot_mutual(barcodeObj=bc_obj, count_marks=c(30, 20))
###

wenjie1991/Bc documentation built on Dec. 20, 2024, 9:51 a.m.