Skip to content

How searching works

A search asks the question "which cells express this sequence?" Malva answers it across the selected dataset and returns the cells that match. This page explains the model behind that answer.

The sequence index

Malva indexes the transcriptomic sequences of every cell as short k-mers. A search compares your query against that index and finds the cells whose measured sequences contain the query k-mers. Two consequences follow from this design:

  • A query is always about sequence content, never about a name. Gene names work because Malva translates them into their reference sequences first.
  • The search service reports how many cells in the database hit each k-mer. Those counts are the basis for the coverage and expression statistics you see in the results.
Figure 1. From query to result rows
A query is resolved to a sequence, matched against the k-mer index, counted per cell, and aggregated into rows.
Malva resolves names and free text to sequences, then matches them against the index. The counts become the rows in the results table.

Query types

The search drawer has two tabs.

Tab Accepts Example What happens
Direct input Gene symbols CD3E or CD3E MS4A1 Each symbol is resolved to a reference sequence and searched.
Direct input Database IDs ENSG00000198851 Each identifier is resolved to a reference sequence and searched.
Direct input DNA or FASTA a pasted sequence, or a dropped FASTA file The sequence is searched directly.
Ask AI Free text "endothelial cells in kidney" The assistant turns the text into a structured search that you can review before you submit it.

Use Direct input for gene symbols, database IDs, DNA sequences and FASTA files. Use Ask AI for free-text questions. You can add several queries to one job with Add search. See Running a search for the full tutorial.

Advanced options

When you open the New search drawer, the Advanced options section controls two settings.

Min and max k-mer count

The fields Min k-mer count and Max k-mer count are labeled cells / k-mer. They keep only the cells whose k-mer count for a query sequence falls inside the range you set.

  • The Min value filters out cells that match the sequence too rarely to be interesting, for example to focus on high-confidence hits.
  • The Max value filters out cells with implausibly high counts, which can be noisy.

The defaults are 0 and 100,000, which apply no filtering. These values map to the count_at_least and count_at_most parameters of the search API.

Unstranded mode

Unstranded mode searches both strands of the DNA simultaneously. When it is off, Malva searches the given strand only. Turn it on when you care about either strand, for example when the strand of a sequence is not known.

Coverage searches

Genomic coverage has no advanced options. Coverage searches always search both strands and always use the default k-mer count range. See Searching regions and sequences.

Dataset selection

The Dataset / index picker is in the page header. Every new search uses the selected dataset. The same choice also sets the default dataset for Populations. To search a different dataset, select it in the picker before you submit the search.

Every submission of the search form counts as exactly one search, regardless of how many genes, sequences, or words the query contains. Each search consumes one unit of your daily quota, and each one appears as an entry in your History. The quotas page explains the limits and how the daily reset works.

How coverage probing works

Genomic coverage measures how many reads in the database map to each part of a genomic region. It slides a 48 bp window across the region you give it, and each window becomes a probe that is searched against the index. The result is a coverage value per position that the browser draws as a track.

Two rules apply:

  • The web browser accepts a region query or a sequence query from 49 bp to 5 kb. The HTTP API accepts regions up to 10 Mb and sequences up to 1 Mb.
  • A region query can use a locus such as chr1:1000000-1005000 or a gene name.

See Searching regions and sequences for the tutorial.