alignio

package
v0.0.0-...-25502c3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2012 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package for reading and writing multiple sequence alignment files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	seqio.Reader
}

Reader implements multiple sequence reading from a seqio.Reader.

func NewReader

func NewReader(r seqio.Reader) *Reader

Return a new Reader.

func (*Reader) Read

func (self *Reader) Read() (a seq.Alignment, err error)

Read the contents of the embedded seqio.Reader into a seq.Alignment. Returns the Alignment, or nil and an error if an error occurs.

type Writer

type Writer struct {
	seqio.Writer
}

Writer implements multiple sequence writing to a seqio.Writer.

func NewWriter

func NewWriter(w seqio.Writer) *Writer

Return a new Writer.

func (*Writer) Write

func (self *Writer) Write(a seq.Alignment) (n int, err error)

Write a seq.Alignment to the embedded seqio.Reader. Returns the number of bytes written and any error.

Jump to

Keyboard shortcuts

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