convert_aln_amino {bgafun} | R Documentation |
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
convert_aln_amino(Alignment)
Alignment |
Alignment object read in using read.alignment function in seqinr |
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)