mutations

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

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
}

type MutationList

type MutationList struct {
	Mutations map[string]Mutation // Key: "AlignmentSite-BranchIndex-ParentCharacter-ChildCharacter"
}

func CountMutations

func CountMutations(t *tree.Tree, a align.Alignment) (mutations *MutationList, err error)

func NewMutationList

func NewMutationList() (mutations *MutationList)

func (*MutationList) Append

func (m *MutationList) Append(mapp *MutationList) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL