transformAlnsToLong {CrispRVariants} | R Documentation

## Transform data for plotting

### Description

Orders and transforms a reference sequence and a set of aligned sequences into long format, i.e. one observation (tile position) per row. Used internally by `plotAlignments`.

### Usage

    transformAlnsToLong(ref, alns, add.other = FALSE)

### Arguments

`ref` | The reference sequence
`alns` | Character vector of aligned sequences
`add.other` | Add a blank row labelled "Other" (Default: FALSE)

### Value

A matrix of characters and plotting locations

### Author(s)

Helen Lindsay

[Package CrispRVariants version 1.10.1 Index]