SwapSeq sample mix-up checker Your files never leave your computer

Is every sample from the person on its label?

Tubes get swapped, labels get typed wrong, and sample sheets slip by a row. In a study where each person is sampled more than once, one mix-up quietly breaks every paired test. SwapSeq reads each person's microbial fingerprint and points to the samples that belong to someone else.

  • Swapped tubes
  • Wrong labels
  • Sample-sheet shifts
Check my own data

Tested on 4,732 samples from five public studies. In one of them it found a real tube swap without being told where to look.

1 2 3 4 5 6 7 8 9 10 11 12 A B C D E F G H A01, labelled P01 A02, labelled P02 A03, labelled P03 A04, labelled P05 A05, labelled P06 A06, labelled P07 A07, labelled P08 A08, labelled P09 A09, labelled P10 A10, labelled P11 A11, labelled P12 A12, labelled P13 B01, labelled P14 B02, labelled P16 B03, labelled P01 B04, labelled P02 B05, labelled P03 B06, labelled P04 B07, labelled P05 B08, labelled P06 B09, labelled P07 B10, labelled P08 B11, labelled P13 B12, labelled P14 C01, labelled P15 C02, labelled P16 C03, labelled P01 C04, labelled P02 C05, labelled P03 C06, labelled P04 C07, labelled P05 C08, labelled P06 C09, labelled P07 C10, labelled P08 C11, labelled P09 C12, labelled P10 D01, labelled P11 D02, labelled P12 D03, labelled P13 D04, labelled P14 D05, labelled P15 D06, labelled P16 D07, labelled P01 D08, labelled P02 D09, labelled P04 D10, labelled P05 D11, labelled P06 D12, labelled P07 E01, labelled P08 E02, labelled P13 E03, labelled P09 E04, labelled P09 E05, labelled P10 E06, labelled P11 E07, labelled P12 E08, labelled P15 E09, labelled P16 E10, labelled P01 E11, labelled P02 E12, labelled P03 F01, labelled P04 F02, labelled P05 F03, labelled P06 F04, labelled P07 F05, labelled P08 F06, labelled P09 F07, labelled P10 F08, labelled P11 F09, labelled P12 F10, labelled P13 F11, labelled P14 F12, labelled P15 G01, labelled P16 G02, labelled P02 G03, labelled P03 G04, labelled P04 G05, labelled P05 G06, labelled P06 G07, labelled P07 G08, labelled P09 G09, labelled P10 G10, labelled P11 G11, labelled P12 G12, labelled P14 H01, labelled P15 H02, labelled P16 H03, labelled P01 H04, labelled P02 H05, labelled P03 H06, labelled P04 H07, labelled P05 H08, labelled P06 H09, labelled P07 H10, labelled P08 H11, labelled P09 H12, labelled P10 Microbes inside: P13 Name on the tube: P08 P08 E01 holds P13 Microbes inside: P08 Name on the tube: P13 P13 E02 holds P08 Microbes inside: P03 Name on the tube: P09 P09 E03 holds P03 Microbes inside: P09 Name on the tube: P09 P09 E04 Microbes inside: P10 Name on the tube: P10 P10 E05 Microbes inside: P11 Name on the tube: P11 P11 E06 Microbes inside: P12 Name on the tube: P12 P12 E07 Microbes inside: P15 Name on the tube: P15 P15 E08 swapped
Cap: the name written on the tube Inside: whose microbes SwapSeq finds
Plate 1 of the demo study, with row E opened up as tubes.

Check your study

Open your feature table and the sheet that says who each sample came from. Both stay on your computer: SwapSeq runs inside this page. It works best with raw counts at ASV or OTU level and two or more samples per person.

1

Feature table

QIIME 2 artifacts, BIOM 1 and 2, and text tables all work. The file is read here in your browser and is not sent anywhere.

2

Sample metadata

First column: sample ID. One column: who the sample came from. The QIIME 2 format works as it is.

3

Check

  • Feature table not opened yet
  • Sample metadata not opened yet

How it works

Three checks, all run in your browser on your own table.

This sample Same person Someone else

A fingerprint of rare taxa

Everyone carries a few uncommon ASVs that stay with them week after week. SwapSeq compares which ASVs each sample holds, at a matched sequencing depth, and their log-ratio profile. A sample closer to somebody else than to its own person stands out.

AB swap back?

A test for swapped pairs

Two swapped tubes leave a signature: tube A fits person B and tube B fits person A. SwapSeq tests every pair and names the partner when swapping their labels back makes both fit again.

your samples planted errors

Calibrated on your own table

Before judging, SwapSeq swaps hundreds of labels in a copy of your data to learn what an error looks like there. It then gives strong flags with almost no false alarms, a list to check against lab records, and an estimate of how many swaps it would catch in your study.

Tested on public studies

Known errors were planted in real published tables at about a 1% rate, 30 to 60 times each, and every result was counted. Bray-Curtis is the same pipeline with the distance used by a recent shotgun mislabel detector. Read the full methods and validation.

MCT.f.0086MCT.f.0417

A real swap, found blind. In the Minnesota diet study (Johnson et al. 2019) the authors found and corrected two swapped tubes. With their original labels restored, SwapSeq reported exactly that pair as a swap at probability 1.00.

Show the full results table
DatasetSamplesPeopleSwaps flagged+ check listBray-CurtisMislabels flagged+ check listFalse flags / 1000False checks / 1000
SMP gut6387592%97%23%77%88%0.10.4
SMP tongue6928043%61%3%13%60%0.12.8
SMP palm5156152%82%2%10%47%0.42.2
SMP forehead6758089%98%38%62%68%0.31.3
ECAM infants875432%24%0%0%25%0.314.6
SMP gut (2 per person)1507553%65%0%––0.00.7
SMP forehead (2 per person)1608040%80%3%––0.00.2
Diet study (strain-level)5263788%97%84%78%93%0.41.0
Diet study (species)4833494%99%92%83%95%0.11.8
MDSINE2 mice (healthy donor)32053%48%0%0%32%0.113.2
MDSINE2 mice (uc donor)38150%16%0%0%18%0.015.7
Diet study (strain-level) (2 per person)74370%42%0%––0.07.1
IMP adults (16S)1101843%84%28%12%48%0.00.8

Student Microbiome Project (Flores et al. 2014, 16S, weekly), Immigration Microbiome Project (Vangay et al. 2018, 16S, monthly), ECAM (Bokulich et al. 2016, 16S, infants from birth), Minnesota diet study (Johnson et al. 2019, shallow shotgun, daily) and MDSINE2 mice (Gibson et al. 2025, 16S, every mouse given one donor's stool, a negative control). False flags are counted on samples that were left untouched.

Before you trust a flag

  • Two or more samples per person. Three or more works better. With exactly two, SwapSeq can say which two people do not fit, but not always which tube moved.
  • People who live together share microbes. Add a household column and look-alikes from one home move to the check list.
  • Infants and same-donor animals carry little individual signal. SwapSeq says so with a low power estimate and rarely flags anything.
  • Antibiotics and illness can make a sample unlike its owner without making it like anyone else. Those usually stay unflagged.
  • A flag is a reason to check the lab records. Look at plate maps, extraction batches and sample sheets before you relabel or drop anything.
  • Your data stays on your computer. Opening a file here reads it inside your browser. No server ever receives it.