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
Contributors
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 Name | Type & Properties |
|---|---|
--input_fasta -fi | file required |
--input_bed -bed | file required |
Name | Type & Properties |
|---|---|
--output -fo | file required output |
Name | Type & Properties |
|---|---|
--soft_mask -soft | boolean_true |
--mask_character -mc | string |
--full_header -fullHeader | boolean_true |