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
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.2 \
-main-script target/nextflow/bedtools/bedtools_window/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input_a -a | file required |
--input_b -b | file required |
Name | Type & Properties |
|---|---|
--output | file required output |
Name | Type & Properties |
|---|---|
--window_size -w | integer |
--left_window -l | integer |
--right_window -r | integer |
--strand_windows -sw | boolean_true |
Name | Type & Properties |
|---|---|
--same_strand -sm | boolean_true |
--opposite_strand -Sm | boolean_true |
Name | Type & Properties |
|---|---|
--unique -u | boolean_true |
--count -c | boolean_true |
--no_overlaps -v | boolean_true |
--header | boolean_true |
Name | Type & Properties |
|---|---|
--input_bam -abam | file |
--uncompressed_bam -ubam | boolean_true |
--bed_output -bed | boolean_true |