typeToSource {HLAtools}R Documentation

Convert AlignType Values to Source Values

Description

Converts between 'alignType' values, identifying four types of sequence alignments and 'source' values, identifying three kinds of alignment files.

Usage

typeToSource(alignVector, toSource = TRUE)

Arguments

alignVector

A vector of character values specifying kinds of four sequence alignment types ("prot","nuc","codon" and "gen"), or three source alignment files ("AA","cDNA", and "gDNA").

toSource

A logical. If 'toSource' is true, 'alignType' values are converted to 'source' values. If 'toSource' is false, 'source' values are concerted to 'alignType' values

Value

A character string of the converted 'align' or 'source' value.

Examples

typeToSource(c("nuc","prot","gen"),TRUE) 


[Package HLAtools version 1.1.1 Index]