-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
fasta function | ||
============== | ||
fasta([Alignment](../types/Alignment.md) **alignment**) | ||
------------------------------------------------------- | ||
|
||
A function that parses an alignment from a fasta file. | ||
|
||
### Parameters | ||
|
||
- [Alignment](../types/Alignment.md) **alignment** - the lphy alignment that is written into the fasta file. | ||
|
||
### Return type | ||
|
||
[FastaAlignment](../types/FastaAlignment.md) | ||
|
||
|
||
### Examples | ||
|
||
- covidDPG.lphy | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FastaAlignment | ||
-------------- | ||
### Methods | ||
|
||
- **ages** | ||
- gets the ages of these taxa as an array of doubles. | ||
- **canonicalStateCount** | ||
- the number of canonical states excluding ambiguous states in the alignment. | ||
- **canonicalStates** | ||
- the canonical states excluding ambiguous states. | ||
- **dataType** | ||
- get the data type of this alignment. | ||
- **getTaxaNames** | ||
- The names of the taxa. | ||
- **length** | ||
- gets the number of taxa. | ||
- **nchar** | ||
- The number of characters/sites. | ||
- **nodeCount** | ||
- the total number of nodes (left + internal) in a binary tree with these taxa. | ||
- **species** | ||
- gets the species of these taxa as an array of strings. | ||
- **stateCount** | ||
- the number of possible states including ambiguous states in the alignment. | ||
- **states** | ||
- the possible states including ambiguous states. | ||
- **taxa** | ||
- the taxa of the alignment. | ||
- **taxaNames** | ||
- The names of the taxa. |