mask_sequence
Mask the parts of a sequence a similarity search should not seed on, using BLAST's own three maskers: DUST for compositionally biased DNA (poly-A, simple repeats), SEG for the protein equivalent, and WindowMasker for repeats that are ordinary in composition but occur far more often than chance allows in the sequences given. Emits the soft- and hard-masked sequences and the masked intervals, so a pipeline can mask before it searches rather than explaining an empty hit table afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hicut | No | SEG's K2, the extension complexity in bits. Only applies when masker is seg. | |
| level | No | DUST's T. Higher masks less. Only applies when masker is dust. | |
| locut | No | SEG's K1, the trigger complexity in bits. Only applies when masker is seg. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| masker | No | which masker. dust and windowmasker take DNA; seg takes protein. Values: dust (DUST · biased DNA composition), seg (SEG · biased protein composition), windowmasker (WindowMasker · over-represented DNA). | dust |
| window | No | the scored window's width. 0 takes each masker's own default. | |
| context | No | WindowMasker only: the other sequences whose statistics define 'over-represented'. Its thresholds come from this SET, so wiring one plasmid asks whether a stretch is unusual for that plasmid, not for the organism. Only applies when masker is windowmasker. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| sequence | No | the sequence to mask. Wire a record or a sequence output, or paste it. Left empty, the open record is used. | |
| unit_size | No | WindowMasker's n-mer length. 0 derives it from the length of everything given, the way the tool does. Only applies when masker is windowmasker. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| masked | Yes | the sequence soft-masked (lower case), which is what BLAST reads as masked | |
| intervals | Yes | the masked stretches, 0-based inclusive | |
| hardMasked | Yes | the sequence with the masked stretches replaced by N (or X for a protein) | |
| provenance | Yes | the masker, the parameters it really used, and for WindowMasker the derived thresholds and the set they came from | |
| maskedFraction | Yes | what share of the sequence was masked, 0 to 1. Wire into a $when to refuse a query that is mostly gone |