plot_model_inputs: Plot barcode level model inputs

View source: R/visualization.R

plot_model_inputsR Documentation

Plot barcode level model inputs

Description

Plot barcode level model inputs

Usage

plot_model_inputs(
  bh_input,
  barcodes = NULL,
  proteins = NULL,
  strains = NULL,
  force = FALSE,
  log10_counts = TRUE
)

Arguments

bh_input

a data frame of filtered model inputs

barcodes

a character vector of barcodes to filter to

proteins

a character vector of proteins to filter to

strains

a character vector of strains to filter to

force

if TRUE, override the check preventing gigantic plots

log10_counts

if TRUE, log10 the values in both panels

Details

Grey cells in the top panel correspond to zeros in the original input (if log10_counts = TRUE). Empty cells (i.e. where you can see the underlying grid lines) are non-present in the input, likely due to being filtered out.

Examples

## Not run: 
bh_input = data.table::fread("~/Desktop/tmp/cache/bh_input.tsv.gz")
plot_model_inputs(bh_input,
                  strains = c("AB1", "AB10", "AB12"),
                  proteins = c("LSAMP", "THSD1_Epitope-1", "LRTM1"))

## End(Not run)

andrewGhazi/basehitmodel documentation built on Oct. 22, 2023, 9:21 p.m.