parsers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 13 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BamToRelatable

func BamToRelatable(f io.Reader) (interfaces.RelatableChannel, error)

func IntervalFromBedLine

func IntervalFromBedLine(line []byte) (interfaces.Relatable, error)

func StreamVCF

func StreamVCF(vcf *vcfgo.Reader) interfaces.RelatableChannel

func Vopen

func Vopen(rdr io.Reader, hdr *vcfgo.Header) (*vcfgo.Reader, error)

Types

type Bam

type Bam struct {
	*sam.Record

	Chromosome string
	// contains filtered or unexported fields
}

func (*Bam) AddRelated

func (a *Bam) AddRelated(b interfaces.Relatable)

func (*Bam) Chrom

func (a *Bam) Chrom() string

func (*Bam) End

func (a *Bam) End() uint32

func (*Bam) MapQ

func (a *Bam) MapQ() int

func (*Bam) Related

func (a *Bam) Related() []interfaces.Relatable

func (*Bam) SetSource

func (a *Bam) SetSource(src uint32)

func (*Bam) Source

func (a *Bam) Source() uint32

func (*Bam) Start

func (a *Bam) Start() uint32

cast to 32 bits.

type BamIterator

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

func NewBamIterator

func NewBamIterator(f string) (*BamIterator, error)

func (*BamIterator) Close

func (b *BamIterator) Close() error

func (*BamIterator) Next

func (b *BamIterator) Next() (interfaces.Relatable, error)

type BamQueryable

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

func NewBamQueryable

func NewBamQueryable(path string, workers ...int) (*BamQueryable, error)

func (*BamQueryable) Close

func (b *BamQueryable) Close() error

func (*BamQueryable) Query

type Interval

type Interval struct {
	Fields [][]byte
	// contains filtered or unexported fields
}

Interval satisfies the Relatable interface.

func NewInterval

func NewInterval(chrom string, start uint32, end uint32, fields [][]byte, source uint32, related []interfaces.Relatable) *Interval

func (*Interval) AddRelated

func (i *Interval) AddRelated(b interfaces.Relatable)

func (*Interval) Chrom

func (i *Interval) Chrom() string

func (*Interval) End

func (i *Interval) End() uint32

func (*Interval) Related

func (i *Interval) Related() []interfaces.Relatable

func (*Interval) SetSource

func (i *Interval) SetSource(src uint32)

func (*Interval) Source

func (i *Interval) Source() uint32

func (*Interval) Start

func (i *Interval) Start() uint32

func (*Interval) String

func (i *Interval) String() string

type RefAltInterval

type RefAltInterval struct {
	Interval

	HasEnd bool
	// contains filtered or unexported fields
}

func (*RefAltInterval) Alt

func (i *RefAltInterval) Alt() []string

func (*RefAltInterval) End

func (i *RefAltInterval) End() uint32

func (*RefAltInterval) Ref

func (i *RefAltInterval) Ref() string

func (*RefAltInterval) SetRefAlt

func (i *RefAltInterval) SetRefAlt(ra []int)

type Variant

type Variant struct {
	interfaces.IVariant
	// contains filtered or unexported fields
}

func NewVariant

func NewVariant(v interfaces.IVariant, source uint32, related []interfaces.Relatable) *Variant

func (*Variant) AddRelated

func (v *Variant) AddRelated(r interfaces.Relatable)

func (*Variant) Related

func (v *Variant) Related() []interfaces.Relatable

func (*Variant) SetSource

func (v *Variant) SetSource(src uint32)

func (*Variant) Source

func (v *Variant) Source() uint32

func (*Variant) String

func (v *Variant) String() string

Jump to

Keyboard shortcuts

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