API Reference
Public
Internal
BED.Reader — MethodBED.Reader(input::IO; index=nothing)
BED.Reader(input::AbstractString; index=:auto)Create a data reader of the BED file format.
The first argument specifies the data source. When it is a filepath that ends with .bgz, it is considered to be block compression file format (BGZF) and the function will try to find a tabix index file (<filename>.tbi) and read it if any. See http://www.htslib.org/doc/tabix.html for bgzip and tabix tools.
Arguments
input: data sourceindex: path to a tabix file
BED.Record — MethodBED.Record(str::AbstractString)Create a BED record object from str.
This function verifies and indexes fields for accessors.
BED.Record — MethodBED.Record(data::Vector{UInt8})Create a BED record object from data.
This function verifies and indexes fields for accessors. Note that the ownership of data is transferred to a new record object.
BED.Record — MethodBED.Record()Create an unfilled BED record.
BED.Writer — TypeBED.Writer(output::IO)Create a data writer of the BED file format.
Arguments:
output: data sink
BED.blockcount — Methodblockcount(record::Record)::IntGet the number of blocks (exons) in record.
BED.blocksizes — Methodblocksizes(record::Record)::Vector{Int}Get the block (exon) sizes of record.
BED.blockstarts — Methodblockstarts(record::Record)::Vector{Int}Get the block (exon) starts of record.
Note that the first base is numbered 1.
BED.chrom — Methodchrom(record::Record)::StringGet the chromosome name of record.
BED.chromend — Methodchromend(record::Record)::IntGet the end position of record.
BED.chromstart — Methodchromstart(record::Record)::IntGet the starting position of record.
Note that the first base is numbered 1.
BED.itemrgb — Methoditemrgb(record::Record)::ColorTypes.RGBGet the RGB value of record.
The return type is defined in ColorTypes.jl.
BED.name — Methodname(record::Record)::StringGet the name of record.
BED.score — Methodscore(record::Record)::IntGet the score between 0 and 1000.
BED.strand — Methodstrand(record::Record)::GenomicFeatures.StrandGet the strand of record.
BED.thickend — Methodthickend(record::Record)::IntGet the end position at which record is drawn thickly.
BED.thickstart — Methodthickstart(record::Record)::IntGet the starting position at which record is drawn thickly.
Note that the first base is numbered 1.
Base.read! — Methodread!(rdr::Reader, rec::Record)Read a Record into rec; overwriting or adding to existing field values. It is assumed that rec is already initialized or empty.