Description
Remove the portion(s) of genomic intervals that are overlapped by other features.
bedtools subtract removes portions of intervals in file A that overlap with intervals
in file B. By default, only the overlapping portions are removed, leaving the
non-overlapping parts of A intervals. This is essential for genomic analysis tasks
like removing repetitive elements, excluding known variants, or filtering out
unwanted regions from interval datasets.
This tool is commonly used for:
Removing repetitive elements or low-complexity regions from analysis
Excluding known polymorphic sites from variant calling regions
Filtering out blacklisted genomic regions from ChIP-seq peaks
Creating clean interval sets by removing overlapping annotations
Generating non-overlapping genomic windows for analysis
Quality control by removing problematic genomic regions
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_subtract/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 |
|---|---|
--min_overlap_a -f | double |
--min_overlap_b -F | double |
--reciprocal -r | boolean_true |
--either_overlap -e | boolean_true |
Name | Type & Properties |
|---|---|
--same_strand -s | boolean_true |
--opposite_strand -S | boolean_true |
Name | Type & Properties |
|---|---|
--remove_entire -A | boolean_true |
--remove_if_all_overlap -N | boolean_true |
Name | Type & Properties |
|---|---|
--write_original_b -wb | boolean_true |
--write_overlap_counts -wo | boolean_true |
--output_bed -bed | boolean_true |
--include_header -header | boolean_true |
Name | Type & Properties |
|---|---|
--use_split -split | boolean_true |
--sorted_input -sorted | boolean_true |
--genome_file -g | file |
--no_name_check -nonamecheck | boolean_true |
--no_buffer -nobuf | boolean_true |
--input_buffer -iobuf | string |