survey_off_targets
Count every guide's off-target sites by mismatch class across one sequence, in one pass — the question that comes BEFORE opening any single guide's site table: which of these spacers is worth looking at. Returns counts and the aggregate specificity per spacer, never the sites themselves, so a few hundred spacers cost a few hundred rows rather than a few hundred thousand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _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. | |
| spacers | Yes | the protospacers to count — wire the spacers out of a design run, or list them. | |
| subject | No | the sequence to search — wire a record or name a library document; leave unset to search the open record. | |
| _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. | |
| circular | No | count across the origin as well. Advanced. | |
| nuclease | No | which nuclease's PAM and geometry to use. Values: SpCas9 (SpCas9: NGG (3')), SpCas9-NG (SpCas9-NG: NG (3')), SpG (SpG: NGN (3')), SpRY (SpRY: NRN (3')), xCas9 (xCas9: NG (3')), SaCas9 (SaCas9: NNGRRT (3')), SaCas9-KKH (SaCas9-KKH: NNNRRT (3')), AsCas12a (AsCas12a: TTTV (5')), LbCas12a (LbCas12a: TTTV (5')), enAsCas12a (enAsCas12a: TTTV (5')). | SpCas9 |
| dna_bulge | No | extra bases in the DNA a site may carry. 0 counts mismatches only. In nt. Advanced. | |
| rna_bulge | No | extra bases in the guide a site may carry. Same envelope as `dna_bulge`. In nt. Advanced. | |
| max_mismatches | No | how many mismatches a site may carry and still be counted. Every row is this many classes wide plus the exact one, so the rows line up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counted | Yes | how many distinct spacers were counted | |
| skipped | Yes | spacers that could not be counted, each with the reason — never dropped in silence | |
| spacers | Yes | one row per spacer: its counts by mismatch class, its total, its off-target count and its aggregate MIT/CFD specificity within the searched sequence | |
| cleanest | Yes | the spacer with the fewest off-target sites (ties broken by the higher CFD specificity) — empty when nothing could be counted | |
| searched | Yes | the sequence the counts are against, which is what makes them readable later |