convert_aln_amino {bgafun} | R Documentation |
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
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)
[Package
bgafun version 1.4.0
Index]