Documentation
¶
Overview ¶
package mutations provides data structures & functions for counting mutations given an alignment of ancestral and tips sequences
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutation ¶
type Mutation struct {
AlignmentSite int // Index of the site of the alignment
BranchIndex int // Index of the branch
ChildNodeName string // Name of the parent of the clade
ParentCharacter uint8 // Parent character
ChildCharacter uint8 // Child character
NumTips int // Total number of descendent tips
NumTipsWithChildCharacter int // Number of descendent tips that have the child character
NumEEM int // Number of emergence of this mutation
}
type MutationList ¶
type MutationList struct {
Mutations map[string]Mutation // Key: "AlignmentSite-BranchIndex-ParentCharacter-ChildCharacter"
}
func CountMutations ¶
func NewMutationList ¶
func NewMutationList() (mutations *MutationList)
func (*MutationList) Append ¶
func (m *MutationList) Append(mapp *MutationList) (err error)
func (*MutationList) Exists ¶ added in v0.5.0
func (m *MutationList) Exists(id string) (exist bool)
Click to show internal directories.
Click to hide internal directories.