ConductScience Sequences
Contents

User guide · Search methods

DNA fragments

How a DNA fragment index looks up short DNA, such as primers and probes, in place of reading every sequence.

In a set with a DNA fragment index, exact and near-exact searches of short DNA, such as primers and probes, look each query up in the index in place of reading every stored sequence. The index is built for a set's snapshot and for each of its additions; on the hosted service, for Patent DNA. It finds every stored match, on either strand, so the results and counts are the same as reading every stored sequence.

A search uses the index when its queries are short DNA, all A, C, G or T (in RNA, a U is searched as T):

  • Exact text, with stored codes off, when each query has 15 to 50 bases.
  • Automatic, for the exact scan it adds under 50 bases, when each query under 50 bases has 15 bases or more. Longer queries in the same search do not matter.
  • Near-exact: Within k changes with Substitutions only and k of 0, 1 or 2, when each query has 15 to 50 bases. A match is a stretch of the stored sequence as long as the query, on either strand, with at most k bases that differ. As in any Within k changes search of DNA, a stored U matches T, and a stored N or other code counts as a change.

Otherwise Exact text, Automatic's exact scan and Within k changes read every stored sequence, as before, and Pattern always does. One search uses the index for all its queries or for none. The index does not serve:

  • Exact text with stored codes on;
  • Within k changes with k of 3 to 5, or with insertions and deletions;
  • a query with an N or another code, or under 15 bases, and in Exact text and Within k changes one over 50 bases;
  • a query that would leave the index more than 20,000,000 places to check;
  • a near-exact search whose matches are in stored sequences of more than about 8.6 billion bases in all, or the server's own limit;
  • a set whose snapshot or one of its additions has no index, as with ESTs on the hosted service. In a search of several sets at once, each set counts on its own.

When the index serves a search, its record names fragindex, the program that reads the index, among the tools the search used.

In a run measured on the hosted service's server on November 23, 2026, with 12 CPUs, these were the median times to find one query's matches on both strands of Patent DNA, Main plus New (the snapshot of November 13, 2026, with its addition of November 17). The run found each query's matches once by reading every stored sequence, then three times through the index, and the times through the index are of the first of the three. A whole search takes longer, since it also starts and then writes its results:

SearchQueriesThrough the indexReading every stored sequence
Exact text72 fragments of 15 to 50 bases0.08 seconds9.2 seconds
Within k changes, Substitutions only, k of 110 fragments of 21 bases, each a stretch of a stored sequence with 1 or 2 bases changed0.51 seconds12.6 seconds
Within k changes, Substitutions only, k of 2The same 10 fragments3.9 seconds39.5 seconds

Through the index, 70 of the 72 exact fragments took under a second each of the three times they were looked up. The slowest was the first query looked up in the run, at 11.4 seconds; the same fragment then took 0.8 and 0.7 seconds. One other fragment, of 15 bases, took 2.1 to 2.5 seconds. Both ways found the same counts for every query.

Guide version 1.91.0 · For Sequences 0.155.0