Skip to contents

The input vector must be a character vector. Additional checks can be imposed with the require_alignment and require_names arguments.

Usage

validate_sequence_input_form(
  seqs,
  require_alignment = TRUE,
  require_names = FALSE
)

Arguments

seqs

A (named) character vector of sequences. Each value should be an amino acid HA sequence, and each name should be the name of the strain or isolate for that sequence.

require_alignment

Logical. If TRUE, checks that all sequences are the same length.

require_names

Logical. If TRUE, checks that all sequences are named.

Value

`seqs` (invisibly). Errors early if the validation check fails.