Skip to contents

Generate Summary Statistics and Plots for Extracted Barcodes

Usage

barbac_xtr.stats(
  file,
  barcode_length,
  fill_color = "#FF5349",
  save_plot = FALSE,
  plot_width = 12,
  plot_height = 8,
  verbose = TRUE
)

Arguments

file

A data frame or path to CSV file with columns: barcode, counts, barcode_length

barcode_length

A numeric vector of length 2 specifying desired barcode length range [min, max]

fill_color

Histogram fill color. Default is "#FF5349" (red).

save_plot

Logical or character. If TRUE, saves to default name. If character, saves to that path. Default is FALSE.

plot_width

Numeric. Width of saved plot in inches. Default is 12.

plot_height

Numeric. Height of saved plot in inches. Default is 8.

verbose

Logical. Print summary statistics. Default is TRUE.

Value

Patchwork plot object with histograms and summary table