BEDMAP(1)
πΈ bedmap(1) β the manual page for bedmap πΈ
okay bestie, sit down, hydrate, and let me tell you about bedmap β it's a User Command, it lives in section 1 of the manual, and this is the manual page for bedmap 2.4.42+dfsg. π
β¨ NAME β¨
bedmap β manual page for bedmap 2.4.42+dfsg. That's it, that's the name, short and iconic. π
π¦ DESCRIPTION π¦
bedmap π
citation:
http://bioinformatics.oxfordjournals.org/content/28/14/1919.abstracthttps://doi.org/10.1093/bioinformatics/bts277
version: 2.4.42 (typical)
authors: Shane Neph & Scott Kuehn π«Ά (yes, two whole authors, we love a collab)
USAGE: bedmap [process-flags] [overlap-option] <operation(s)...>
<ref-file> [map-file]
So here's the tea β β any input file must be sorted per the sort-bed utility. The program accepts BED and Starch file formats. You may use '-' for a BED file to indicate the input comes from stdin. π
It traverses <ref-file>, while applying <operation(s)> on qualified, overlapping elements from <map-file>.
Output is one line for each line in <ref-file>, sent to standard output. There
is no limit on the number of operations you can specify to compute in one bedmap call. π
If <map-file> is omitted, the given file is treated as both the <ref-file> and <map-file>. This usage is more efficient than specifying the same file twice. π₯
Arguments may be given in any order before the input file(s). Slay, flexible queen. π
π Process Flags π
bestie this is the whole list, no skipping, we're eating the whole plate π
--chrom <chromosome>β Jump to and process data for given<chromosome>only. One chromosome, main character energy. π--delim <delim>β Change output delimiter from'|'to<delim>between columns (e.g.'\t').--ecβ Error check all input files (slower). Thorough but it's giving... slow. π--fasterβ (advanced) Strong input assumptions are made. Compatible with:--bp-ovr,--range,--fraction-both, and--exactoverlap options only.--headerβ Accept headers (VCF, GFF, SAM, BED, WIG) in any input file.--helpβ Print this message and exit successfully. π«Ά--min-memoryβ Minimize memory usage (slower).--multidelim <delim>β Change delimiter of multi-value output columns from';'to<delim>.--prec <int>β Change the post-decimal precision of scores to<int>.0 <= <int>.--sciβ Use scientific notation for score outputs. nerd mode activated π§--skip-unmappedβ Print no output for a row with no mapped elements.--sweep-allβ Ensure<map-file>is read completely (helps to prevent broken pipes).--unmapped-val <val>β Print<val>on unmapped--echo-map*and--min/max-element*operations. The default is to print nothing.--versionβ Print program information.
π Overlap Options π
At most, one may be selected. By default, --bp-ovr 1 is used. One. Pick one. This is not a build-your-own-sundae situation. π
--bp-ovr <int>β Require<int>bp overlap between elements of input files.--exactβ First 3 fields from<map-file>must be identical to<ref-file>'s.--fraction-both <val>β Both--fraction-ref <val>and--fraction-map <val>must be true to qualify as overlapping. Expect0 < val <= 1.--fraction-either <val>β Either--fraction-ref <val>or--fraction-map <val>must be true to qualify as overlapping. Expect0 < val <= 1.--fraction-map <val>β The fraction of the element's size from<map-file>that must overlap the element in<ref-file>. Expect0 < val <= 1.--fraction-ref <val>β The fraction of the element's size from<ref-file>that must overlap an element in<map-file>. Expect0 < val <= 1.--range <int>β Grab<map-file>elements within<int>bp of<ref-file>'s element, where0 <= int.--range 0is an alias for--bp-ovr 1.
β Operations β
(Any number of operations may be used any number of times.) Go off, bestie, stack 'em. π
π₯ SCORE π₯
<ref-file>must have at least 3 columns and<map-file>5 columns.
--cvβ The result of--stdevdivided by the result of--mean.--kth <val>β Generalized median. Report the value, x, such that the fraction<val>of overlapping elements' scores from<map-file>is less than x, and the fraction1-<val>of scores is greater than x.0 < val <= 1.--mad <mult=1>β The median absolute deviation of overlapping elements in<map-file>. Multiply mad score by<mult>.0 < mult, and mult is1by default.--maxβ The highest score from overlapping elements in<map-file>. π--max-elementβ A (non-random) highest-scoring and overlapping element in<map-file>.--max-element-randβ A random highest-scoring and overlapping element in<map-file>.--meanβ The average score from overlapping elements in<map-file>.--medianβ The median score from overlapping elements in<map-file>.--minβ The lowest score from overlapping elements in<map-file>.--min-elementβ A (non-random) lowest-scoring and overlapping element in<map-file>.--min-element-randβ A random lowest-scoring and overlapping element in<map-file>.--stdevβ The square root of the result of--variance.--sumβ Accumulated scores from overlapping elements in<map-file>.--tmean <low> <hi>β The mean score from overlapping elements in<map-file>, after ignoring the bottom<low>and top<hi>fractions of those scores.0 <= low <= 1.0 <= hi <= 1.low+hi <= 1.--varianceβ The variance of scores from overlapping elements in<map-file>.--wmeanβ Weighted mean, scaled in proportion to the coverage of the<ref-file>element by each overlapping<map-file>element.
π¦ NON-SCORE π¦
Here's the column tea, bestie:<ref-file>must have at least 3 columns. For--echo-map-id/echo-map-id-uniq,<map-file>must have at least 4 columns. For--echo-map-score,<map-file>must have at least 5 columns. For all others,<map-file>requires at least 3 columns.
--basesβ The total number of overlapping bases from<map-file>.--bases-uniqβ The number of distinct bases from<ref-file>'s element covered by overlapping elements in<map-file>.--bases-uniq-fβ The fraction of distinct bases from<ref-file>'s element covered by overlapping elements in<map-file>.--countβ The number of overlapping elements in<map-file>.--echoβ Print each line from<ref-file>.--echo-mapβ List all overlapping elements from<map-file>.--echo-map-idβ List IDs from all overlapping<map-file>elements.--echo-map-id-uniqβ List unique IDs from overlapping<map-file>elements.--echo-map-rangeβ Print genomic range of overlapping elements from<map-file>.--echo-map-scoreβ List scores from overlapping<map-file>elements.--echo-map-sizeβ List the full length of every overlapping element.--echo-overlap-sizeβ List lengths of overlaps.--echo-ref-nameβ Print the first 3 fields of<ref-file>usingchrom:start-endformat.--echo-ref-row-idβ Print'id-'followed by the line number of<ref-file>.--echo-ref-sizeβ Print the length of each line from<ref-file>.--indicatorβ Print1if there exists an overlapping element in<map-file>,0otherwise.
π SEE ALSO π
The full documentation for bedmap is maintained as a Texinfo manual. If the info and bedmap programs are properly installed at your site, the command
info bedmap
should give you access to the complete manual. πβ¨
okay that's the whole thing, you ate that, go forth and map your beds π
sign-off: this was bedmap 2.4.42+dfsg, dated August 2025, section BEDMAP(1) β mwah, ily, bye π«ΆπΈ
π¦ where this page comes from
- ubuntu resolute: bedops 2.4.42+dfsg-1 Β· GPL-2.0-or-later
- ubuntu stonking: bedops 2.4.42+dfsg-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms