API Reference

Public

Internal

BigBed.ReaderMethod
BigBed.Reader(input::IO)

Create a reader for bigBed file format.

Note that input must be seekable.

source
BigBed.WriterMethod
BigBed.Writer(output::IO, chromlist; binsize=64)

Create a data writer of the bigBed file format.

Arguments

  • output: data sink
  • chromlist: chromosome list with length
  • binsize=64: size of a zoom with the highest resolution

Examples

output = open("data.bb", "w")
writer = BigBed.Writer(output, [("chr1", 12345), ("chr2", 9100)])
write(writer, ("chr1", 101, 150, "gene 1"))
write(writer, ("chr2", 211, 250, "gene 2"))
close(writer)
source
BigBed.blockstartsMethod
blockstarts(record::Record)::Vector{Int}

Get the block (exon) starts of record.

Note that the first base is numbered 1.

source
BigBed.chromMethod
chrom(record::Record)::String

Get the chromosome name of record.

source
BigBed.chromlistMethod
chromlist(reader::BigBed.Reader)::Vector{Tuple{String,Int}}

Get the (name, length) pairs of chromosomes/contigs.

source
BigBed.strandMethod
strand(record::Record)::GenomicFeatures.Strand

Get the strand of record.

source
BigBed.thickendMethod
thickend(record::Record)::Int

Get the end position at which record is drawn thickly.

source
BigBed.thickstartMethod
thickstart(record::Record)::Int

Get the starting position at which record is drawn thickly.

Note that the first base is numbered 1.

source