API Reference
Public
Internal
BigBed.Reader — MethodBigBed.Reader(input::IO)Create a reader for bigBed file format.
Note that input must be seekable.
BigBed.Record — MethodBigBed.Record()Create an unfilled bigBed record.
BigBed.Writer — MethodBigBed.Writer(output::IO, chromlist; binsize=64)Create a data writer of the bigBed file format.
Arguments
output: data sinkchromlist: chromosome list with lengthbinsize=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)BigBed.blockcount — Methodblockcount(record::Record)::IntGet the number of blocks (exons) in record.
BigBed.blocksizes — Methodblocksizes(record::Record)::Vector{Int}Get the block (exon) sizes of record.
BigBed.blockstarts — Methodblockstarts(record::Record)::Vector{Int}Get the block (exon) starts of record.
Note that the first base is numbered 1.
BigBed.chrom — Methodchrom(record::Record)::StringGet the chromosome name of record.
BigBed.chromend — Methodchromend(record::Record)::IntGet the end position of record.
BigBed.chromid — Methodchromid(record::Record)::UInt32Get the chromosome ID of record.
BigBed.chromlist — Methodchromlist(reader::BigBed.Reader)::Vector{Tuple{String,Int}}Get the (name, length) pairs of chromosomes/contigs.
BigBed.chromstart — Methodchromstart(record::Record)::IntGet the start position of record.
BigBed.itemrgb — Methoditemrgb(record::Record)::ColorTypes.RGBGet the RGB value of record.
The return type is defined in ColorTypes.jl.
BigBed.name — Methodname(record::Record)::StringGet the name of record.
BigBed.optionals — Methodoptionals(record::Record)::Vector{String}Get optional fields as strings.
BigBed.score — Methodscore(record::Record)::IntGet the score between 0 and 1000.
BigBed.strand — Methodstrand(record::Record)::GenomicFeatures.StrandGet the strand of record.
BigBed.thickend — Methodthickend(record::Record)::IntGet the end position at which record is drawn thickly.
BigBed.thickstart — Methodthickstart(record::Record)::IntGet the starting position at which record is drawn thickly.
Note that the first base is numbered 1.