# 3) Keep parsed FASTA identifiers aligned with downstream BLAST DB creation
convert2blastmask \
-in masked.fa \
-out masked.xml \
-outfmt maskinfo_xml \
-parse_seqids \
-masking_algorithm other \
-masking_options "custom repeat masking"
Recommended Workflow
Start from a FASTA whose masked regions are represented in lower case.
Record the masking method faithfully with -masking_algorithm and -masking_options; treat those fields as provenance, not decoration.
Choose the output format that matches how makeblastdb or your downstream tooling expects mask data.
Build the BLAST database immediately afterward so the mask file and FASTA stay synchronized.
Guardrails
-masking_algorithm and -masking_options are required.
The input is lower-case masked FASTA, not BED, GFF, or interval text.
Use BLAST+ style flags such as -help and -version; the common --help pattern is wrong here.
-parse_seqids only helps if the FASTA deflines are parseable and you will preserve those IDs consistently into makeblastdb.
The default input and output are stdin and stdout, so explicit -in and -out are safer in batch workflows.
1---2name: convert2blastmask3description: Use when converting lower-case masked FASTA files to masking formats compatible with makeblastdb for BLAST database preparation.4---56# convert2blastmask
78## Quick Start
9- **Command:** `convert2blastmask -in masked.fa -out mask.asn1 -masking_algorithm <name> -masking_options <text> [options]`
10- **Local executable:** `/home/vimalinx/miniforge3/envs/bio/bin/convert2blastmask`
11- **Full reference:** See `references/help.md`
1213## When To Use This Tool
1415- Convert lower-case soft-masked FASTA into mask files that `makeblastdb` can consume.
16- Preserve masking provenance by recording the masking program name and options used upstream.
17- Emit interval or ASN.1/XML mask representations for BLAST database preparation.
18- Carry sequence IDs through with `-parse_seqids` when the masking data must stay aligned to parsed FASTA identifiers.
1920## Common Patterns
2122```bash
23# 1) Convert soft-masked FASTA to the default ASN.1 text format
24convert2blastmask \
25 -in masked.fa \
26 -out masked.asn1.txt \
27 -masking_algorithm windowmasker \
28 -masking_options "-mk_counts true -ustat counts.obinary"
29```
3031```bash
32# 2) Emit interval output for inspection
33convert2blastmask \
34 -in masked.fa \
35 -out masked.interval \
36 -outfmt interval \
37 -masking_algorithm dust \
38 -masking_options "20 64 1"
39```
4041```bash
42# 3) Keep parsed FASTA identifiers aligned with downstream BLAST DB creation
43convert2blastmask \
44 -in masked.fa \
45 -out masked.xml \
46 -outfmt maskinfo_xml \
47 -parse_seqids \
48 -masking_algorithm other \
49 -masking_options "custom repeat masking"
50```
5152## Recommended Workflow
53541. Start from a FASTA whose masked regions are represented in lower case.
552. Record the masking method faithfully with `-masking_algorithm` and `-masking_options`; treat those fields as provenance, not decoration.
563. Choose the output format that matches how `makeblastdb` or your downstream tooling expects mask data.
574. Build the BLAST database immediately afterward so the mask file and FASTA stay synchronized.
5859## Guardrails
6061- `-masking_algorithm` and `-masking_options` are required.
62- The input is lower-case masked FASTA, not BED, GFF, or interval text.
63- Use BLAST+ style flags such as `-help` and `-version`; the common `--help` pattern is wrong here.
64- `-parse_seqids` only helps if the FASTA deflines are parseable and you will preserve those IDs consistently into `makeblastdb`.
65- The default input and output are stdin and stdout, so explicit `-in` and `-out` are safer in batch workflows.
Run npx skillmds add vimalinx/convert2blastmask in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when converting lower-case masked FASTA files to masking formats compatible with makeblastdb for BLAST database preparation. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
vimalinx (@vimalinx) published this skill. Their other Agent Skills are listed on their SkillMD profile.