summarize_total_reads: Counts all HMM hits for the gene of interest

Description Usage Arguments Value

View source: R/filter.R

Description

Counts all HMM hits for the gene of interest

Usage

1
2
3
4
5
6
summarize_total_reads(
  metannotate_data,
  gene = "rpoB",
  collapsed = FALSE,
  replicates = TRUE
)

Arguments

metannotate_data

Tibble of metannotate data

gene

Character vector (length 1) of a gene to summarize

collapsed

Logical (length 1) - has the table already been collapsed to a taxonomy rank?

replicates

Logical (length 1) - does the table include a 'replicates' column? If TRUE, then the function will sum the "hits" column instead of a simple count.

Value

Tibble of summarized hit counts


MetAnnotate/metannoviz documentation built on Aug. 2, 2020, 3:12 p.m.