User guide · Search methods
Search methods
The search methods a set offers, and what each one finds.
A search of a set in the snapshot offers these methods. A database outside the snapshot, such as core_nt, runs BLAST.
| Method | What it does | Runs on |
|---|---|---|
| Automatic | Picks the method by the query, and the search record states the pick. See The automatic choice | All |
| Alignment (BLAST) | NCBI BLAST+, with up to 5,000 sequences for each query and 5 alignments for each sequence | All |
| Exact text | Finds the query letter for letter in every stored sequence | DNA to DNA, protein to protein |
| Pattern | Finds a pattern in every stored sequence. See Exact and pattern search | DNA to DNA, protein to protein |
| Within k changes | Lists every stored sequence within k changes of the query, with no score or E-value cut. See Within k changes | DNA to DNA, protein to protein |
| Smith-Waterman | A full local alignment with every sequence in the set, by FASTA36 ssearch36 | DNA to DNA, protein to protein |
| Global on the query | Aligns the whole query with the part of each sequence it fits, by FASTA36 glsearch36 | DNA to DNA, protein to protein |
| Global on both sequences | Aligns the whole query with the whole of each sequence, by FASTA36 ggsearch36 | DNA to DNA, protein to protein |
The three FASTA36 methods show only where FASTA36 is installed. The Sequences container image, which the hosted service and the server edition run, includes it. These methods return up to 5,000 sequences for each query, each with its best alignment. On DNA they search both strands, and a sequence can return once for each strand.
blastn, and closely enough by the scoring matrix in blastp, blastx and tblastn.On DNA, Smith-Waterman finds short matches that BLAST misses. In our benchmark on Patent DNA, run when it held 28.8 million sequences, Smith-Waterman found 16 of 20 DNA fragments of 21 to 50 bases at 80% identity, where BLAST found 8. Each query reads every stored sequence, so a DNA search takes minutes, and longer on a larger set. In the benchmark, a Smith-Waterman query took about a minute at 21 bases and 5 minutes at 308 bases, global on the query took about 70 seconds up to 60 bases and 4 minutes at 308, and global on both sequences took about 25 seconds at any length. Patent DNA now holds 76.2 million sequences, with US published applications, and on the hosted service, on release 0.108.0 in November 2026, a Smith-Waterman query of 21 bases took 69 seconds. A DNA search whose estimate is longer than the server allows for one search, 60 minutes unless your organization set another limit, does not start, and the page says so with the estimate. Search fewer or shorter queries at a time, or use BLAST.
BLAST keeps hits with an E-value up to 10, or up to 1,000 for short queries: DNA under 50 bases and protein of 30 residues or fewer, which also run BLAST's short-query settings. The FASTA36 methods keep hits up to 1,000 for protein of 100 residues or fewer and for DNA under 50 bases, and up to 10 above that. Search settings has a Maximum E-value and a Maximum hits per query, and a value you set there applies to every query of the search.
BLAST, exact text, pattern, Smith-Waterman and both global searches return the same hits each time you run the same search on the same snapshot. FASTA36 fits the E-values of Smith-Waterman and global searches to a sample of up to 60,000 scores, and Sequences runs a FASTA36 build that draws that sample the same way on every run. So these searches return the same sequences, scores and E-values each time, whatever the server's load or number of threads. The scores are FASTA36's own. The E-values can differ from those an earlier release of Sequences gave for the same search, so a sequence near the E-value cutoff can appear in a result that lacked it before, or drop out of one that had it.
Patent sequences often write X (Xaa) where a residue is left open. Smith-Waterman and global searches score an X in a stored protein as 0 against any residue, where it used to count as a mismatch, so a stored sequence written with X at a few positions ranks higher than before and is less likely to drop out of the list. An X still scores less than the residue it stands for would, so a sequence with X can still fall past the E-value cutoff of a short query, such as one of 8 to 12 residues, or below the 5,000 sequences a query keeps. A positive score for X would fill the list with sequences that are mostly X. Query Match scores X with the search's matrix, as it does for BLAST.
Choosing a search method says which method fits which query, with recorded runs of each.
Guide version 1.91.0 · For Sequences 0.155.0