Skip to contents

Creates a data frame with a totalcount column

This function is designed to sum the counts column by either Genomic Context or Domain Architecture and creates a totalcount column from those sums.

Usage

total_counts(
  prot,
  column = "DomArch",
  lineage_col = "Lineage",
  cutoff = 90,
  RowsCutoff = FALSE,
  digits = 2
)

Arguments

prot

A data frame that must contain columns:

  • count

column

Character. The column to summarize

cutoff

Numeric. Cutoff for total count. Counts below cutoff value will not be shown. Default is 0.

digits

Value

Define return, in detail

Note

Please refer to the source code if you have alternate file formats and/or column names.

Examples

if (FALSE) { # \dontrun{
total_counts(pspa - gc_lin_counts, 0, "GC")
} # }