bamat

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BamAt

type BamAt struct {
	*bam.Reader

	Refs map[string]*sam.Reference
	// contains filtered or unexported fields
}

BamAt holds bam index and the Bam Reader. Because BamAt holds the underlying os.File open, it is not safe to query from multiple go routines.

func New

func New(path string) (*BamAt, error)

New returns a BamAt from the given path to the indexed bam

func (*BamAt) Close

func (b *BamAt) Close() error

Close closes the underlying file and the Bam.Reader

func (*BamAt) Query

func (b *BamAt) Query(chrom string, start int, end int) (*bam.Iterator, error)

Query the BamAt with 0-base half-open interval.

Jump to

Keyboard shortcuts

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