alignio

package
v0.0.0-...-6fbfe6d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package alignio 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 {
	// contains filtered or unexported fields
}

Reader implements multiple sequence reading from a seqio.Reader.

func NewReader

func NewReader(r seqio.Reader, m *multi.Multi) *Reader

NewReader return a new Reader that will read sequences from r into m.

func (*Reader) Read

func (r *Reader) Read() (*multi.Multi, error)

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

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

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 (w *Writer) Write(m *multi.Multi) (n int, err error)

Write a multi.Multi to the embedded seqio.Writer. 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