Skip to content
Novus Examples
bed184 B

BED6 Intervals — 0-Based Half-Open Coordinates (.bed)

The same six features as the GFF3 file expressed in BED's 0-based half-open coordinates, where the start is one lower and the end is unchanged. Confusing the two conventions shifts every interval by a base, and this pair makes that shift a visible diff.

Preview — first 7 linesbed
NXCTG01	100	460	gene0001	960	+
NXCTG01	100	220	exon0001	900	+
NXCTG01	300	460	exon0002	900	+
NXCTG01	120	220	cds0001	850	+
NXCTG01	300	420	cds0002	850	+
NXCTG01	500	580	gene0002	700	-

Specifications

Format
BED6
Intervals
6
Columns
6
Coordinate System
0-based half-open
Same Features As
the GFF3 annotations
Score Range
700 to 960
Off By One Rule
bedStart = gffStart - 1, bedEnd = gffEnd

Testing contract

Expected to pass
Scenario
Convert every interval here to 1-based inclusive coordinates and compare against the matching GFF3 feature.
Expected result
Adding one to each start reproduces the GFF3 coordinates exactly while the ends already match, and every interval length is identical under both conventions.

What is a .bed file?

BED is a tab-delimited format for genomic intervals. The first three columns — chromosome, 0-based start, and exclusive end — are required, and up to nine optional columns add name, score, strand, thick-drawn range, colour, and block (exon) structure. The half-open, zero-based coordinate convention is the single most common source of off-by-one errors when converting to or from GFF3 and other 1-based formats.

How to use this file

Use an example .bed file to test interval parsers, overlap and intersection tools, and coordinate converters, verifying the half-open convention, correct handling of the optional trailing columns, and that track and browser header lines are skipped.

How to use this file for testing

“BED6 Intervals — 0-Based Half-Open Coordinates (.bed)” is a deterministic Novus Examples fixture for Scientific data, Editor testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS) — for testing reference managers, molecule viewers, and scientific-data loaders.

Documented properties for this file: 6 columns · BED6. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Scientific fixtures are small, valid, and fully synthetic — no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.

Generated by generation/scientific.py. Free for any use, no attribution required — license.