Skip to contents

Emits what format.tales_msa builds; see there for what is shown and why.

Usage

# S3 method for class 'tales_msa'
print(x, n = 2L, gap = "-", ...)

Arguments

x

A tales_msa object.

n

Number of arrays to show at each end.

gap

What to draw where an array has no residue at a position.

...

Unused, present for compatibility with the format generic.

Value

x, invisibly.

Examples

aligned <- data.frame(
  array_id = c("A1", "A1", "A1", "A2", "A2"),
  position_in_array = c(1L, 2L, 3L, 1L, 2L),
  alignment_position = c(1L, 2L, 3L, 1L, 3L),
  rvd = c("NTERM", "HD", "CTERM", "NTERM", "CTERM")
)
msa <- tales_msa(aligned)
print(msa)
#> <tales_msa> 2 arrays, 3 alignment positions
#>   layers: rvd
#>       rvd
#>   A1  NTERM    HD CTERM
#>   A2  NTERM     - CTERM