Documentation ¶
Overview ¶
Package chainfile provides utilities for reading chain files. Chain files are used to describe alignments between two reference genomes. https://genome.ucsc.edu/goldenPath/help/chain.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alignment ¶
type Alignment struct { RefOffset int64 `db:"ref_offset"` // Offset of the aligned block in the reference chromosome from the start of the chain. QueryOffset int64 `db:"query_offset"` // Offset of the aligned block in the query chromosome from the start of the chain. Size int64 `db:"size"` // Size of the aligned block in bases. }
Alignment represents an Alignment block within a chain.
func (*Alignment) HighAtDimension ¶
func (*Alignment) LowAtDimension ¶
func (*Alignment) OverlapsAtDimension ¶
func (a *Alignment) OverlapsAtDimension(with augmentedtree.Interval, dim uint64) bool
type Chain ¶
type Chain struct { Score int64 // Alignment score. RefName types.Chromosome // Reference chromosome name. RefSize int64 // Size of the reference chromosome. RefStrand string // Strand in the reference genome ('+' or '-'). RefStart int64 // Start position in the reference genome. RefEnd int64 // End position in the reference genome. QueryName types.Chromosome // Query chromosome name. QuerySize int64 // Size of the query chromosome. QueryStrand string // Strand in the query genome ('+' or '-'). QueryStart int64 // Start position in the query genome. QueryEnd int64 // End position in the query genome. ID_ int64 // Unique identifier for the chain. Alignments augmentedtree.Tree // Interval tree of alignments. }
Chain represents a single Chain in a Chain file.
func (*Chain) HighAtDimension ¶
func (*Chain) LowAtDimension ¶
func (*Chain) OverlapsAtDimension ¶
func (c *Chain) OverlapsAtDimension(with augmentedtree.Interval, dim uint64) bool
type ChainFile ¶
type ChainFile struct { // ChainsByChromosome maps a chromosome name to an interval tree of chains. ChainsByChromosome map[types.Chromosome]augmentedtree.Tree // ChainByID maps a chain ID to a chain. ChainByID map[int64]*Chain }
ChainFile represents a chain file.
type Interval ¶
func (*Interval) HighAtDimension ¶
func (*Interval) LowAtDimension ¶
func (*Interval) OverlapsAtDimension ¶
func (i *Interval) OverlapsAtDimension(with augmentedtree.Interval, dim uint64) bool
Click to show internal directories.
Click to hide internal directories.