bedtools/bedtools_tag

genomics
bam
annotation
tagging
overlap
alignment
features

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

genomics
bam
annotation
tagging
overlap
alignment
features

Contributors

Run this component

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

Inputs

Name
Type & Properties
--input
-i
file
required
--files
file
required
multiple
--labels
string
multiple

Outputs

Name
Type & Properties
--output
file
required
output

Overlap Options

Name
Type & Properties
--min_overlap
-f
double

Strand Options

Name
Type & Properties
--same_strand
-s
boolean_true
--opposite_strand
-S
boolean_true

Tag Options

Name
Type & Properties
--tag_name
-tag
string
--use_names
-names
boolean_true
--use_scores
-scores
boolean_true
--use_intervals
-intervals
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.