bedtools/bedtools_shuffle

genomics
intervals
shuffle
random
permutation
controls
statistics

Description

Randomly shuffle the genomic locations of intervals while preserving their size and structure.

bedtools shuffle randomly relocates genomic intervals to new positions within the genome
while maintaining their original size and other attributes. This tool is essential for
creating randomized control datasets that preserve interval characteristics but eliminate
positional bias.

This tool is commonly used for:

  • Generating null distributions for statistical testing

  • Creating randomized control datasets for enrichment analysis

  • Testing positional significance of genomic features

  • Removing spatial clustering bias from interval datasets

  • Permutation testing in comparative genomics

  • Background generation for motif discovery and regulatory analysis

Type

bash_script

License

MIT

Keywords

genomics
intervals
shuffle
random
permutation
controls
statistics

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

Inputs

Name
Type & Properties
--input
-i
file
required
--genome
-g
file
required
--exclude
-excl
file
--include
-incl
file

Outputs

Name
Type & Properties
--output
file
required
output

Shuffling Options

Name
Type & Properties
--keep_chromosome
-chrom
boolean_true
--chrom_first
-chromFirst
boolean_true
--seed
integer

Overlap Control

Name
Type & Properties
--max_overlap
-f
double
--no_overlapping
-noOverlapping
boolean_true
--max_tries
-maxTries
integer

Format Options

Name
Type & Properties
--bedpe_format
-bedpe
boolean_true
--allow_beyond_chrom_end
-allowBeyondChromEnd
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.