View source: R/readFasta2Matrix.R
| readFasta2Matrix | R Documentation | 
Reads a FASTA file of any type and returns a matrix with the species as rows and the sequence positions as columns.
readFasta2Matrix(file)
| file | the FASTA file to be read. | 
Each site of the FASTA file is transformed into a "character" in the matrix. The function only works for sequences of the same length (i.e., alignments).
a matrix with the sequence trait
Daniel Caetano
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.