Learn R Programming

bgafun (version 1.34.0)

convert_aln_amino: Converts an alignment object into binary amino matrix

Description

Converts an alignment object, read in by the seqinr package, into a binary matrix. The binary matrix represents the absence or presence of amino acids at each position in the alignment

Usage

convert_aln_amino(Alignment)

Arguments

Alignment
Alignment object read in using read.alignment function in seqinr

Examples

Run this code
library(bgafun)
LDH <- read.alignment(file = system.file("sequences/LDH-MDH-PF00056.fasta", package = "bgafun"), format = "fasta")
LDH.amino=convert_aln_amino(LDH)
dim(LDH.amino)

Run the code above in your browser using DataLab