utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCompTrees

func ReadCompTrees(inputfile string, compTrees chan<- Trees) (int, error)

Read a bunch of trees from the input file. One line must define One tree. One tree per line

func ReadRefTree

func ReadRefTree(inputfile string) (*tree.Tree, error)

Reads one tree from the input file

func ReadUntilSemiColon added in v0.1.1

func ReadUntilSemiColon(r *bufio.Reader) (string, error)

ReadUntilSemiColon returns a string (without the ending \n) from the input buffered reader, ending at ';' or at end of file It allows to read a newick tree on several lines An error is returned iff there is an error with the buffered reader.

func Readln

func Readln(r *bufio.Reader) (string, error)

Readln returns a single line (without the ending \n) from the input buffered reader. An error is returned iff there is an error with the buffered reader.

Types

type Trees

type Trees struct {
	Tree *tree.Tree
	Id   int
}

Type for channel of trees

Jump to

Keyboard shortcuts

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