Skip to main content
v2026.11,986 entries · CC-BY 4.0

mothur: 16S rRNA Sequence Analysis Pipeline and SOP

What mothur is, how its MiSeq SOP processes 16S rRNA reads stage by stage, and how a mock community measures error and OTU inflation.

Written and maintained by CASRAI Editorial Board

Published

On this page

mothur is a free, open-source software package for analysing microbial community sequence data, most often 16S rRNA amplicon reads. It was introduced in 2009 by Patrick Schloss’s group at the University of Michigan and bundles the quality control, alignment, clustering, classification and community-comparison steps into one command-line program, so a study can be run from raw reads to diversity statistics inside a single tool.

Short answer

mothur takes demultiplexed sequence files and walks them through a fixed series of commands: assemble paired reads, screen out poor sequences, align to a reference, remove chimeras, classify, cluster into operational taxonomic units (OTUs) and then compare communities. Its documentation is organised around standard operating procedures (SOPs), and the MiSeq SOP is the one most laboratories follow for Illumina 16S data. Papers that follow the MiSeq SOP are asked to cite Kozich et al. 2013 (Applied and Environmental Microbiology 79(17):5112-5120).

Definition and scope

The 2009 paper that introduced the program describes it as a single, open-source, platform-independent, community-supported package for describing and comparing microbial communities. Its case study analysed more than 222,000 sequences from eight marine samples in under two hours on a laptop. The project wiki says mothur incorporates the earlier programs dotur, sons, treeclimber, s-libshuff and unifrac, which is why one tool covers clustering, library comparison and phylogenetic community comparison. The wiki is licensed CC-BY 4.0, release downloads are on GitHub (github.com/mothur/mothur) and support runs through a public forum (forum.mothur.org).

mothur is a bench-to-bioinformatics tool, not a sequencer or a database. It does not generate reads; it processes them. The reads usually come from amplicon sequencing with primer pairs such as those covered in the guide to the 27F/1492R primer pair, and the raw files are often deposited in the Sequence Read Archive (SRA) alongside the paper.

How it is used in practice: the MiSeq SOP

The MiSeq SOP on the mothur wiki is a worked tutorial with an example dataset, a mock community and an explicit command for every stage. Each stage in the SOP does one thing, and most of them remove something. Read as a quality-control checklist, the sequence is as follows.

1. Assemble and screen the reads

make.file pairs each sample’s forward and reverse FASTQ files, taking the sample name from the text before the first underscore (the SOP advises avoiding hyphens in names). make.contigs then assembles the pairs. Where the two reads overlap and disagree, the base is kept only if one quality score is at least 6 points higher than the other; otherwise it becomes N. The SOP’s example yields 152,360 contigs.

screen.seqs then removes poor contigs with three thresholds: no ambiguous bases (maxambig=0), no sequence longer than 275 bp (maxlength=275) and no homopolymer longer than 8 (maxhomop=8). In the tutorial this leaves 128,865 sequences. The SOP uses summary.seqs beforehand to show why: most reads are 248 to 253 bp, one read of 502 bp is flagged as suspect, and at least 2.5% of reads have ambiguous bases.

2. Deduplicate, align and trim to a common region

unique.seqs collapses identical sequences so later steps work on far fewer records. The reads are then aligned to a V4-specific reference built from the SILVA alignment with pcr.seqs, and a second screen.seqs keeps only sequences that start and end at the same alignment positions. filter.seqs removes columns that contain only gaps; in the tutorial this shrinks the alignment from 13,424 columns to 376. Because trimming can make previously different sequences identical, unique.seqs is run a second time.

3. Denoise and remove chimeras

pre.cluster merges sequences that differ by very little, allowing up to 2 differences in the tutorial (the authors say they favour roughly 1 difference per 100 bp). chimera.vsearch then removes chimeric sequences. In the tutorial, chimera removal takes the data from 128,656 to 118,176 sequences, a reduction of 8.1%.

4. Classify and remove unwanted lineages

classify.seqs assigns taxonomy with a Bayesian classifier against a training set. remove.lineage then discards sequences classified as Chloroplast, Mitochondria, unknown, Archaea or Eukaryota, which are not the bacterial 16S signal the study is after; the tutorial removes 162 sequences at this step. The tutorial uses SILVA v102 and the RDP training set v9, and states that newer SILVA, RDP, Greengenes or Greengenes2 releases can be substituted.

5. Cluster into OTUs and check library sizes

dist.seqs, cluster, make.shared and classify.otu build the OTU table at a 3% distance cutoff. count.groups then reports the number of sequences per sample, and sub.sample rarefies every sample to the same depth; in the tutorial the smallest sample holds 2,403 sequences, and the SOP describes subsampling as important before comparing samples. The SOP also describes alternatives to OTUs, namely amplicon sequence variants (ASVs) and phylotypes.

The data table below lists every stage with its command, the stated purpose, the numeric threshold and the sequence count the SOP reports after it. It is compiled from the SOP only; counts are specific to the tutorial dataset and will differ for your own data.

Worked example: the mock community as an error check

The SOP includes a mock community, a sample of known bacterial strains sequenced alongside the real samples, so the pipeline’s error rate can be measured instead of assumed. After get.groups isolates the mock sample (4,048 sequences, 64 unique), seq.error compares it with the known reference sequences. The SOP reports an overall error rate of 6.5108e-05, which is 0.0065%, and 3,998 of the 4,048 sequences with zero errors.

The same mock sample then tests the clustering step. An ideal result would be 20 OTUs, one per reference sequence. The SOP reports about 35 OTUs at 4,048 sequences and about 31 at 3,000, which it attributes partly to chimeras that went undetected. The practical reading is that OTU counts are inflated by residual error, and the mock sample is the only way to see by how much. After the check, remove.groups drops the mock sample from the real data.

Types of analysis after the pipeline

Once the shared OTU table exists, the SOP lists analysis commands in three groups. Treat them as a menu of what the same package can do, not as a required sequence.

  • Alpha diversity (within a sample): rarefaction.single and summary.single.
  • Beta diversity (between samples): dist.shared, pcoa, nmds and unifrac-based comparisons, plus clearcut for building trees.
  • Hypothesis tests: amova, homova, metastats and lefse.

Where it matters for labs and research offices

For a laboratory, the useful property of the SOP is that it makes the quality-control decisions explicit and repeatable: thresholds such as 275 bp and 8 homopolymers are written in the command, not left to an analyst’s judgement. For a research office or data steward, three practical points follow from the sources.

  • Record versions. The SOP is written for a specific mothur release and names specific database versions. Reproducibility depends on recording the mothur version, the reference alignment and the training set used, since the tutorial itself says these can be swapped for newer ones.
  • Keep the mock sample. Without it the error rate and OTU inflation cannot be measured.
  • Cite both papers. The SOP asks for the 2013 paper, and the 2009 paper introduces the software itself.

Downstream, many groups move OTU or taxonomy tables into other environments for plotting and statistics, and sequences extracted from a run can feed a multiple-sequence alignment and then a phylogenetic tree.

Common misunderstandings

mothur is not tied to one sequencing platform

The 2009 paper describes it as platform-independent. The MiSeq SOP is one tutorial for one data type, not the limit of the software.

The SOP’s numbers are not thresholds for every study

The 275 bp maximum length and the V4 alignment coordinates fit the V4 amplicon in the tutorial. A different amplicon needs its own coordinates, which is why the SOP builds a region-specific reference with pcr.seqs.

The latest version is not stated here

The SOP is written for mothur v1.48.0. Check the GitHub releases page for the current release before installing, rather than relying on a version quoted in a tutorial.

Removing a lineage is not the same as removing contamination

remove.lineage removes sequences classified as chloroplast, mitochondria, Archaea, Eukaryota or unknown. It is a taxonomy filter, and it does not by itself measure or remove reagent or cross-sample contamination, which the SOP addresses through its mock sample rather than through that command.

Sources

Data: mothur MiSeq SOP stages: command, purpose, threshold and tutorial sequence counts

Compiled from the mothur wiki MiSeq SOP: each stage's command, stated purpose, numeric threshold and the sequence count the tutorial reports for its example dataset. Counts apply to the tutorial data only.

mothur MiSeq SOP stages: command, purpose, threshold and tutorial sequence counts
CommandStated purposeThreshold or result statedSequences reported after stage (sequences)
make.filePair forward and reverse FASTQ files per sampleSample name = text before first underscorenot reported
make.contigsAssemble paired readsConflicting base kept if one quality is 6+ higher, else N152360
screen.seqsRemove poor contigsmaxambig=0, maxlength=275, maxhomop=8128865
unique.seqsMerge identical sequencesNone statednot reported
pcr.seqs / align.seqsBuild V4 reference from SILVA and align to itReference 13,425 columns widenot reported
screen.seqs (alignment)Keep sequences spanning same regionstart=1968, end=11550128656
filter.seqsRemove gap-only columnsAlignment 13,424 to 376 columnsnot reported
pre.clusterDenoise near-identical sequencesdiffs=2not reported
chimera.vsearchRemove chimeras8.1% reduction118176
remove.lineageRemove unwanted lineagesChloroplast, Mitochondria, unknown, Archaea, Eukaryota118008
seq.error (mock)Measure sequencing errorError rate 6.5108e-05 (0.0065%)not reported
sub.sampleEqualise library sizessize=2403not reported

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about mothur: 16S rRNA Sequence Analysis Pipeline and SOP

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →