Skip to contents

Functions to create a custom "gene" class and parse AMR data.

Usage

as.gene(x)

Arguments

x

A character vector to be converted to a "gene" class.

Value

For as.gene, an object of class "gene". For import_amrfp(), a data frame with parsed AMR data.

Examples

if (FALSE) { # \dontrun{
# Create a gene object
gene <- as.gene(c("gene1", "gene2"))
print(gene)

# Parse AMR data
parsed_data <- import_amrfp("path/to/input_table.tsv", "SampleID")
} # }