.bed — BEDGraph
University of California, Santa Cruz · 2009
BEDGraph is a text-based format for storing and visualizing genomic data tracks along chromosomes.
Key Features
- Plain text, human-readable format.
- Stores continuous data values over genomic regions.
- Supports integration with genome visualization tools.
- Simple, tab-delimited structure for easy parsing.
Best For
- Storing quantitative genomic data.
- Creating genome browser tracks for visualization.
- Exchanging genomic data with analysis pipelines.
- Simple, uncompressed data representation.
Less Ideal For
- Storing raw sequencing reads (use FASTQ or BAM).
- Representing discrete genomic features like genes (use BED format).
- Large-scale data storage requiring compression.
- Complex genomic annotations beyond a single value.
Common Use Cases
- Visualizing ChIP-seq or RNA-seq data coverage.
- Displaying methylation levels across the genome.
- Representing gene expression data or epigenetic modifications.
- Mapping copy number variations (CNVs).
How to Open It
- Open with a text editor (like Notepad, VS Code, Sublime Text) to view the raw data.
- Load into genome browsers like the UCSC Genome Browser or IGV (Integrative Genomics Viewer).
- Import into bioinformatics analysis software that supports the BEDGraph format.
- Process programmatically using scripting languages like Python or R.
What is a .bed file?
BEDGraph is a plain text file format used primarily in bioinformatics to store genomic data. It represents data tracks over genomic coordinates, making it excellent for visualizing variations in data along a genome. Each line in a BEDGraph file typically contains a chromosome, a start position, an end position, and a value associated with that genomic region. This straightforward structure allows for easy parsing and compatibility with various genome visualization tools.
Programs That Open .bed Files
| Platform | Program | ||
|---|---|---|---|
| Windows | Integrative Genomics Viewer (IGV) | Free | |
| VS Code | Free | ||
| macOS | Integrative Genomics Viewer (IGV) | Free | |
| VS Code | Free | ||
| Linux | Integrative Genomics Viewer (IGV) | Free | |
| VS Code | Free | ||
| Web Browser | UCSC Genome Browser | Free |
How to Convert .bed Files
| Format | Method |
|---|---|
| .BIGWIG | bedGraphToBigWig utility |
| .WIG | bedGraphToWig utility |
Common Problems with .bed Files
Frequently Asked Questions
The standard BED format is used for discrete genomic features (like genes or exons), while BEDGraph is used for quantitative data values that vary across genomic regions (like read coverage or expression levels).
BEDGraph is a plain text format and is not inherently compressed. For larger datasets, it's common to convert BEDGraph files to compressed binary formats like BigWig for faster loading and smaller file sizes.
Genome browsers like the UCSC Genome Browser and the Integrative Genomics Viewer (IGV) are excellent for visualizing BEDGraph data. You can also open them with any text editor to inspect the raw data.
Technical Details
BEDGraph files are plain text, with each line formatted as chrom, chromStart, chromEnd, value. The data is not compressed and is directly human-readable. Its simplicity makes it efficient for genome browsers to parse and display as continuous or discontinuous tracks.