Documentation
¶
Overview ¶
Package bed parses BED files.
This package uses the format described in: https://en.wikipedia.org/wiki/BED_(file_format)
Limitations ¶
Currently only tab delimiters are supported.
Currently BED headers are not supported.
Index ¶
Constants ¶
View Source
const ( PlusStrand = "+" MinusStrand = "-" NoStrand = "." )
Valid values for the strand field.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BED ¶ added in v0.1.2
type BED struct { Chrom string ChromStart int // 0-based ChromEnd int // 0-based exclusive Name string Score int Strand string ThickStart int ThickEnd int ItemRGB [3]byte BlockCount int BlockSizes []int // Length should match BlockCount BlockStarts []int // Length should match BlockCount }
BED is a single line in a BED file.
type Reader ¶ added in v0.1.3
type Reader struct {
// contains filtered or unexported fields
}
A Reader reads and parses BED lines.
func (*Reader) Read ¶ added in v0.1.10
Read returns the next BED line, and n as the number of fields that were found. The first n fields will be populated in the result BED, the rest will have zero values. n is always between 3 and 12.
For example if n=5, then the populated fields are Chrom, ChromStart, ChromEnd, Name and Score.
Click to show internal directories.
Click to hide internal directories.