User guide · Search methods
Within k changes
List every stored sequence that differs from your query by at most k changes.
Within k changes lists every stored sequence that differs from your query by at most k changes, which fits a claim such as "up to 3 substitutions". It covers every stored sequence of the set and applies no score, E-value or rank cut, so its counts are complete. It compares DNA with DNA or protein with protein.
Choose k, from 0 to 5, and what counts as a change:
- Substitutions only: a letter changed in place. The match is a stretch of the stored sequence as long as your query, with at most k letters that differ.
- Substitutions, insertions and deletions: your whole query, aligned anywhere in the stored sequence, with at most k changes of the three kinds in all.
- | Same letter
- ≠ Substitution: a letter changed in place, one change
Within k changes of the query, k from 0 to 5
- k = 0 Not within
- k = 1 Not within
- k = 2 Within
- k = 3 Within
- k = 4 Within
- k = 5 Within
- Changes
- 2
- Substitutions
- 2
- Insertions
- 0
- Deletions
- 0
- Wildcard matches
- 0
- Identity
- 93.5%
Table view
| Query position | Query letter | Hit letter | Hit position | Change |
|---|---|---|---|---|
| 1 | H | H | 1 | Same letter |
| 2 | A | A | 2 | Same letter |
| 3 | E | E | 3 | Same letter |
| 4 | G | G | 4 | Same letter |
| 5 | T | T | 5 | Same letter |
| 6 | F | F | 6 | Same letter |
| 7 | T | T | 7 | Same letter |
| 8 | S | S | 8 | Same letter |
| 9 | D | D | 9 | Same letter |
| 10 | V | V | 10 | Same letter |
| 11 | S | S | 11 | Same letter |
| 12 | S | S | 12 | Same letter |
| 13 | Y | Y | 13 | Same letter |
| 14 | L | L | 14 | Same letter |
| 15 | E | E | 15 | Same letter |
| 16 | G | G | 16 | Same letter |
| 17 | Q | Q | 17 | Same letter |
| 18 | A | A | 18 | Same letter |
| 19 | A | A | 19 | Same letter |
| 20 | K | K | 20 | Same letter |
| 21 | E | E | 21 | Same letter |
| 22 | F | F | 22 | Same letter |
| 23 | I | L | 23 | Substitution |
| 24 | A | A | 24 | Same letter |
| 25 | W | W | 25 | Same letter |
| 26 | L | L | 26 | Same letter |
| 27 | V | V | 27 | Same letter |
| 28 | K | R | 28 | Substitution |
| 29 | G | G | 29 | Same letter |
| 30 | R | R | 30 | Same letter |
| 31 | G | G | 31 | Same letter |
In a set with a DNA fragment index, with Substitutions only and k of 0, 1 or 2, when each DNA query has 15 to 50 bases, all A, C, G or T, the queries are first looked up in the index, and only the stored sequences it finds are read, with the same results.
An N, an X or another IUPAC code in your query matches any letter it stands for, so it is never a change. In a stored protein, an X or another code also matches any letter it stands for. Stored DNA is read letter for letter: a stored N or other code matches only the same code in your query, so against any other letter it counts as one change. A DNA query is searched on both strands, and RNA U is searched as T.
Each row is one stored sequence on one strand, with its closest match to your query. Changes counts that match's substitutions, insertions and deletions, and the list goes fewest changes first. The detail pane gives each kind of change, the Wildcard matches, the identity and the alignment. In the alignment, a wildcard match shows as a differing letter that is not a change. A stored sequence with a long run of X can match a query with no change at all, so rows with as many changes go fewest wildcard matches first, and a match letter for letter comes before one made of X. The CSV export adds the columns changes, substitutions, insertions, deletions and wildcard_matches. On Patents, families and publications sort by their best identity.
A query takes at most 64 letters, and k must be below its length. Each query lists up to 50,000 hits, a stored sequence on one strand each. A query with more lists its 50,000 closest: the fewest changes, then the fewest wildcard matches, then the set's order. It says how many stored sequences it found, and names the largest smaller k that would list every hit, or asks for a longer query when even k = 0 finds more. Its counts by number of changes stay complete in the search record.
To find its closest, a query with more than 1,000,000 hits reads the set a second time, so it takes up to twice as long, and it sorts at most 1,000,000 hits. When more than that have as few changes as its 50,000th closest or fewer, the list holds only the hits with fewer changes, or, at no change, the closest of the first 1,000,000 in the set's order, and the query says so.
Within k changes runs only where its scanner, kscan, is installed, and the Sequences container image includes it. Where kscan is missing, the method is greyed out with a note that says so.
Guide version 1.91.0 · For Sequences 0.155.0