Documentation ¶
Overview ¶
Package to represent k-mer sequences as a color
Index ¶
- Constants
- type CGR
- type KmerColor
- func (self *KmerColor) A(a float64) *KmerColor
- func (self *KmerColor) ColorRange(low, high imagecolor.Color)
- func (self *KmerColor) Kmer(kmer kmerindex.Kmer) *KmerColor
- func (self *KmerColor) RGBA() (r, g, b, a uint32)
- func (self *KmerColor) S(s float64) *KmerColor
- func (self *KmerColor) V(v float64) *KmerColor
- type KmerRainbow
Constants ¶
const ( H = 1 << iota S V A )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGR ¶
type CGR KmerRainbow
A CGR produces a Chaos Game Representation of a sequence. Deschavanne (1999).
type KmerColor ¶
A KmerColor represents a kmerindex.Kmer as an HSVA, mapping the numberical value of the Kmer to a hue.
func (*KmerColor) ColorRange ¶
func (self *KmerColor) ColorRange(low, high imagecolor.Color)
Define the range of hues used by the KmerColor. imagecolor.Color is an alias to the core library image/color package to avoid a name conflict.
func (*KmerColor) RGBA ¶
Satisfy the color.Color interface. RGBA maps the kmer value to a color with the hue between the low and high color values.
type KmerRainbow ¶
A KmerRainbow produces an image reflecting the kmer distribution of a sequence.
func NewKmerRainbow ¶
Create a new KmerRainbow defined by the rectangle r, kmerindex index and background color.