Description
Calculate gaps between adjacent genomic intervals within each chromosome.
bedtools spacing analyzes sorted genomic intervals and reports the gap length
between each interval and its predecessor on the same chromosome. The gap distances
are added as an additional column to the output, providing insight into the spatial
distribution of features.
This tool is commonly used for:
Analyzing spacing patterns in genomic features
Quality control of interval datasets and their density
Identifying clustering or regular spacing in genomic data
Preprocessing for downstream spatial analysis
Detecting overlapping or adjacent intervals in datasets
Statistical analysis of genomic feature distribution
Type
bash_script
License
MIT
Keywords
Contributors
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
output: "$id.$key.output.bed"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/biobox.git \
-revision v0.4.0 \
-main-script target/nextflow/bedtools/bedtools_spacing/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -i | file required |
Name | Type & Properties |
|---|---|
--output | file required output |
Name | Type & Properties |
|---|---|
--output_bed -bed | boolean_true |
--include_header -header | boolean_true |
Name | Type & Properties |
|---|---|
--no_buffer -nobuf | boolean_true |
--input_buffer -iobuf | string |