agdb.checkAG: Check antigen entry formatting

Description Usage Arguments Details Value

View source: R/acdatabase_dbtest.R

Description

Checks that a proposed antigen entry follows the formatting rules. See ?ag for more details on antigen objects.

Usage

1
agdb.checkAG(ag, null_permitted = F)

Arguments

ag

environment: a proposed antigen entry

null_permitted

bool: whether NULL should return T or F

Details

The following are currently checked:

  1. class is c("acdatabase.ag", "acdatabase.entry", "environment")

  2. only permitted fields are entered

  3. all names (strain, long. type, subtype, lineage) are characters

  4. construct checkers are fulfilled for : id, parent_id, alterations, genes, isolation, passage, .parent.

Value

bool


acorg/acutilsLite documentation built on Feb. 19, 2021, 4:56 p.m.