bedtools/bedtools_maskfasta

genomics
fasta
masking
sequences
bed

Description

Mask regions in a FASTA file based on genomic coordinates.

bedtools maskfasta masks sequences in a FASTA file based on coordinates defined
in a BED/GFF/VCF file. Masked regions can be replaced with Ns (hard masking),
converted to lowercase (soft masking), or replaced with custom characters.

This tool is commonly used for:

  • Masking repetitive elements or low-quality regions

  • Creating masked reference genomes for alignment

  • Removing specific genomic features from sequences

  • Preparing sequences for downstream analysis

Type

bash_script

License

MIT

Keywords

genomics
fasta
masking
sequences
bed

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
output: "$id.$key.output.fasta"  
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_maskfasta/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input_fasta
-fi
file
required
--input_bed
-bed
file
required

Outputs

Name
Type & Properties
--output
-fo
file
required
output

Masking Options

Name
Type & Properties
--soft_mask
-soft
boolean_true
--mask_character
-mc
string
--full_header
-fullHeader
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.