bigWig

package
v0.0.0-...-549aca6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package bigWig is used to process bigwig files which are binary compressed data to provide a visual of aligned sequencing data

Index

Constants

View Source
const BigWigMagic = 0x888FFC26

TODO not a completly finished project

Variables

This section is empty.

Functions

func MagicBigWig

func MagicBigWig(reader *BigWigReader) bool

Types

type BigWigReader

type BigWigReader struct {
	io.ReadSeeker
	// contains filtered or unexported fields
}

func NewReader

func NewReader(filename string) *BigWigReader

func (*BigWigReader) Close

func (reader *BigWigReader) Close() error

type BwSize

type BwSize struct {
	Block []byte
	Error error
}

type Wig

type Wig struct {
	StepType string    `bin:"len:2"`
	Chrom    string    `bin:"len:4"`
	Start    int       `bin:"len:4"`
	Step     int       `bin:"len:4"`
	Span     int       `bin:"len:4"`
	Val      []float64 `bin:"len:4"`
}

Wig contains chromosome location and step properties of Wig data. Individual wig values are stored in the underlying WigValue struct

type WigValue

type WigValue struct {
	Position int
	Value    float64
}

Jump to

Keyboard shortcuts

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