bedtools/bedtools_window

genomics
window
proximity
overlap
annotation
neighborhood
bedtools

Description

Examine a "window" around each feature in A and report overlapping features in B.

For each feature in file A, bedtools window searches for overlapping features in
file B within a defined window around each feature in A. The window can be
symmetrical (same distance upstream and downstream) or asymmetrical (different
distances). For each overlap found, the complete entries from both files A and B
are reported.

This tool is particularly useful for:

  • Finding features within a specific distance of target regions

  • Associating regulatory elements with nearby genes

  • Creating annotation contexts around genomic features

  • Proximity-based genomic analysis

  • Building feature neighborhoods for downstream analysis

Type

bash_script

License

MIT

Keywords

genomics
window
proximity
overlap
annotation
neighborhood
bedtools

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.1 \  
  -main-script target/nextflow/bedtools/bedtools_window/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input_a
-a
file
required
--input_b
-b
file
required

Outputs

Name
Type & Properties
--output
file
required
output

Window Options

Name
Type & Properties
--window_size
-w
integer
--left_window
-l
integer
--right_window
-r
integer
--strand_windows
-sw
boolean_true

Strand Options

Name
Type & Properties
--same_strand
-sm
boolean_true
--opposite_strand
-Sm
boolean_true

Output Options

Name
Type & Properties
--unique
-u
boolean_true
--count
-c
boolean_true
--no_overlaps
-v
boolean_true
--header
boolean_true

BAM Options

Name
Type & Properties
--input_bam
-abam
file
--uncompressed_bam
-ubam
boolean_true
--bed_output
-bed
boolean_true

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.