Learn R Programming

MIC (version 1.1.0)

load_patric_db: Load PATRIC database

Description

Load PATRIC database

Usage

load_patric_db(x = patric_ftp_path)

Value

PATRIC database (S3 class 'patric_db')

Arguments

x

Character path to local or ftp path (.txt or .rds), or data.frame object.

Examples

Run this code
# \donttest{
patric_db <- load_patric_db()  # will get from PATRIC ftp
# }

# make data.frame with single row
p <- data.frame(genome_id = 1,
                genome_name = "E. coli",
                antibiotic = "amoxicillin",
                measurement = 2.0,
                measurement_unit = "mg/L",
                laboratory_typing_method = "Agar dilution",
                resistant_phenotype = "R")
load_patric_db(p)

Run the code above in your browser using DataLab