bedtools/bedtools_spacing

genomics
intervals
spacing
gaps
distance
distribution
clustering

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

genomics
intervals
spacing
gaps
distance
distribution
clustering

Contributors

Run this component

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  

Inputs

Name
Type & Properties
--input
-i
file
required

Outputs

Name
Type & Properties
--output
file
required
output

Format Options

Name
Type & Properties
--output_bed
-bed
boolean_true
--include_header
-header
boolean_true

Performance Options

Name
Type & Properties
--no_buffer
-nobuf
boolean_true
--input_buffer
-iobuf
string

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.