Documentation ¶
Overview ¶
Package bed decodes and encodes 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 ¶
Types ¶
type BED ¶ added in v0.1.2
type BED struct { N int // Number of fields in this entry 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.
func (*BED) MarshalText ¶ added in v1.0.0
MarshalText returns the textual representation of b in BED format. Encodes the first b.N fields, where b.N is between 3 and 12. Includes a trailing new line.
Click to show internal directories.
Click to hide internal directories.