Description
Annotate BAM alignments with tags based on overlaps with genomic intervals.
bedtools tag reads alignments from a BAM file and annotates them with custom tags
based on their overlap with intervals from one or more BED/GFF/VCF files. Each
alignment that overlaps with an interval receives a tag in the BAM record, making
this tool essential for marking reads that overlap with specific genomic features
like genes, enhancers, or repetitive elements.
This tool is commonly used for:
Tagging reads that overlap with specific genomic features
Annotating alignments with gene names or functional regions
Marking reads for downstream filtering based on overlap patterns
Quality control by identifying reads in problematic regions
Single-cell RNA-seq analysis for feature assignment
ChIP-seq analysis for peak annotation and read classification
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.bam"
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_tag/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -i | file required |
--files | file required multiple |
--labels | string multiple |
Name | Type & Properties |
|---|---|
--output | file required output |
Name | Type & Properties |
|---|---|
--min_overlap -f | double |
Name | Type & Properties |
|---|---|
--same_strand -s | boolean_true |
--opposite_strand -S | boolean_true |
Name | Type & Properties |
|---|---|
--tag_name -tag | string |
--use_names -names | boolean_true |
--use_scores -scores | boolean_true |
--use_intervals -intervals | boolean_true |