bedtools/bedtools_shift

genomics
intervals
shift
coordinates
offset
flanking

Description

Shift genomic intervals by a specified number of base pairs.

bedtools shift moves genomic intervals (BED/GFF/VCF) by a user-specified number of base pairs.
The tool can shift all features by the same amount, or apply strand-specific shifts to features
on the positive and negative strands separately. Shifts can be absolute values or proportional
to feature length.

This tool is commonly used for:

  • Adjusting genomic coordinates for analysis offsets

  • Creating flanking regions around features

  • Simulating experimental bias or systematic shifts

  • Generating control regions at specified distances

  • Converting between different coordinate systems

  • Modeling positional uncertainty in genomic data

Type

bash_script

License

MIT

Keywords

genomics
intervals
shift
coordinates
offset
flanking

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

Inputs

Name
Type & Properties
--input
-i
file
required
--genome
-g
file
required

Outputs

Name
Type & Properties
--output
file
required
output

Shift Options

Name
Type & Properties
--shift
-s
double
--plus_shift
-p
double
--minus_shift
-m
double
--percentage
-pct
boolean_true

Output Options

Name
Type & Properties
--header
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.