window-maker
Quick Start
- Command:
windowMaker [-g genome.txt | -b intervals.bed] [-w size | -n count] [options] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/windowMaker - Full reference: See
references/help.md
When To Use This Tool
- Tile a genome or interval set into fixed-width windows.
- Create sliding windows by combining
-wwith-s. - Split each source interval into a fixed number of windows with
-n. - Add window identifiers for downstream joins, coverage summaries, or matrix construction.
Common Patterns
# 1) Make non-overlapping 1 Mb genome windows
windowMaker \
-g genome.txt \
-w 1000000
# 2) Make sliding 10 kb windows with 5 kb step
windowMaker \
-g genome.txt \
-w 10000 \
-s 5000
# 3) Split each BED interval into 20 windows and label by window number
windowMaker \
-b regions.bed \
-n 20 \
-i winnum
Recommended Workflow
- Choose the source domain first: whole-genome tiling with
-gor per-interval tiling with-b. - Choose fixed width (
-w) versus fixed count (-n) based on the downstream statistical design. - Add
-sonly when you intentionally want overlapping sliding windows. - Use
-iand optionally-reversewhen downstream tools need stable window IDs rather than anonymous coordinates.
Guardrails
- You must provide one interval source:
-gor-b. - You must provide one windowing mode:
-wor-n. -sis meaningful with-wwindow-size mode, not as a replacement for-n.- The genome file is tab-delimited chromosome name plus size; a FASTA
.faiworks because bedtools reads only the first two columns. - Prefer
-hfor help; GNU-style--versionon this wrapper emits errors before exiting.