Rev Language Reference


convertFastaFileToNaturalNumbers

Usage

convertFastaFileToNaturalNumbers(String fasta file, String[] taxa, String[] alleles, Natural number of individuals, String output file)

Arguments

fasta file : String (pass by value)
A fasta file: sequence names must all start with one of the taxa names; this how they are assigned to each taxa. E.g., >taxa1plusotherinfo, >taxa1_plusotherinfo or just >taxa1.
taxa : String[] (pass by value)
A string vector listing the the taxa names.
alleles : String[] (pass by value)
A string vector listing the alleles.
number of individuals : Natural (pass by value)
The number of (virtual or effective) individuals.
output file : String (pass by value)
A NaturalNumbers-type file, where each number corresponds to a PoMo state.

Return Type