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

Trinity assembler: RNA-seq outputs and QC

Trinity reconstructs RNA-seq transcripts. Learn how to interpret gene groups, compare assembly modes and evaluate read support, completeness and N50.

Written and maintained by CASRAI Editorial Board

Published

On this page

Trinity assembler reconstructs transcript sequences from RNA-seq reads, including data from organisms without a reference genome. Its output is a transcriptome assembly; interpreting it requires separating transcript isoforms from Trinity gene groups and checking read support, completeness and contig statistics together.

Short answer

Trinity is research software for assembling expressed sequences from sequencing reads. The useful result is a set of candidate transcript sequences that can support subsequent abundance estimation and annotation. A successful assembly run supplies sequences, rather than a finished biological interpretation of every sequence or a differential expression result.

The distinction matters when a laboratory receives a FASTA file and a summary spreadsheet. Transcript count, Trinity gene count and expression measurements describe different things. The data table below connects those outputs and assessment methods to the questions they answer, using the project’s documentation rather than treating one summary statistic as a certificate of assembly quality.

Definition and scope

The Trinity project documentation describes de novo transcriptome reconstruction from RNA-seq data. Here, de novo means reconstructing transcript sequences from the reads. The genome-free workflow does not require a reference genome. The project also documents a genome-guided mode, which uses genome alignments to organize reads before assembling their sequences.

A transcriptome assembly has a different target from a genome assembly. Trinity’s target is the transcript sequences represented by RNA-seq data, including alternative isoforms and transcripts from related genes. A researcher comparing it with a tool such as the MEGAHIT metagenome assembler should first distinguish the biological sequence target, rather than compare tools solely because both produce assembled sequences.

Assembly, quantification and functional interpretation are also separate tasks. The Trinity toolkit provides support for downstream analyses, but the existence of an assembled sequence does not by itself establish its abundance in each sample. The project’s quantification documentation explicitly places abundance estimation after assembly and identifies external programs used for that work.

How Trinity works

Trinity applies Inchworm, Chrysalis and Butterfly in sequence. The project’s overview describes partitioning the data among de Bruijn graphs representing local transcriptional complexity and analyzing those graphs separately.

Inchworm, Chrysalis and Butterfly

Inchworm constructs initial sequences, often capturing a dominant isoform and unique portions of other splice forms. Chrysalis clusters those contigs, builds a de Bruijn graph for each cluster and partitions the reads among them.

Butterfly examines paths supported by reads and read pairs to reconstruct transcript sequences, including alternative isoforms and transcripts from paralogous genes. These are computational stages within one assembly workflow.

Input relationships and strand information

The Running Trinity documentation accepts FASTA or FASTQ input and distinguishes paired reads from unpaired reads. Paired input has left and right read files; a samples file can record conditions, biological replicate names and their corresponding read files. That sample description can also support subsequent quantification and differential expression work.

Strand information has its own meaning. The documented paired-end settings are RF and FR, while single-end settings are F and R. Without a strand-specific setting, reads are treated as non-strand-specific. A read-quality report and a library’s strand convention answer different questions. The FastQC report guide provides context for the former; the library metadata and Trinity’s orientation definitions govern the latter.

Trinity also distinguishes optional read trimming from in silico normalization. The running guide describes normalization as a way to reduce reads subject to assembly and documents it as enabled by default. Trimming addresses input-read quality. These operations should remain separately identified in the analysis record because they are different transformations, even when invoked within the same software workflow.

Genome-free and genome-guided assembly

Genome-free assembly starts from reads without using a genome to organize them. In genome-guided Trinity, reads are aligned to a genome and partitioned by locus before de novo reconstruction. The documentation requires a coordinate-sorted BAM file for that mode.

The genome is a grouping substrate, rather than the source from which Trinity copies the final transcript sequences. Those sequences are reconstructed from the reads. This differs from approaches that reconstruct transcript sequence directly from a reference genome and aligned transcript structures. The project notes that a highly fragmented draft genome can favor the genome-free route.

A guide to the STAR RNA-seq aligner helps explain the preceding alignment task when STAR supplies the alignments. Alignment and assembly remain distinct operations, and an alignment file’s availability does not remove Trinity’s coordinate-sorting requirement.

Transcript identifiers and Trinity gene groups

The output documentation says that Trinity groups transcripts using shared sequence content and loosely calls those groups genes. Its example transcript identifier is TRINITY_DN1000_c115_g5_i1. The corresponding gene identifier is TRINITY_DN1000_c115_g5; the final i1 identifies an isoform within that grouping.

The complete gene identifier matters because gene numbering is local to an assembled read cluster. Recording g5 alone loses the cluster context. Likewise, a Trinity grouping is not automatically an externally curated gene annotation. When reporting counts, retain whether the unit is an assembled transcript, a Trinity gene group or an annotated biological gene.

Some headers also include path information describing traversal through the compacted de Bruijn graph. The documentation limits interpretation of graph-node numbers to their particular Trinity gene context. Such node identifiers can help compare shared and unique sequence among that group’s isoforms; they should not be treated as globally comparable genomic coordinates.

Worked reading of the documented FASTA header

The output guide’s example gives the transcript a length of 247 and a path containing node 31015 over positions 0–148, followed by node 23018 over positions 149–246. These ranges describe positions within the reconstructed transcript. Counting the positions in each inclusive range gives 149 and 98, which together account for the stated 247 bases.

This is a reading of the project’s published example, not a measurement from a new assembly. The accession supplies the transcript’s group and isoform context; the length describes the assembled sequence; the path describes how graph segments contribute to it. None of these header fields is an abundance estimate. Keeping those three meanings separate helps prevent a sequence identifier or a graph path from being mistaken for sample-level biological evidence.

Where Trinity matters for laboratories

Resource planning and the assembly handoff

The hardware requirements documentation identifies Inchworm and Chrysalis as potentially memory-intensive and warns that an assembly can create many intermediate files and require substantial temporary disk space. A relatively small final FASTA file therefore does not describe the workspace needed during computation. The project advises a high-performance server for work beyond small test examples.

The running guide describes –max_memory as a suggested limit for stages where memory limiting is enabled, such as Jellyfish and sorting. It is not documented as a guaranteed ceiling on every process in the whole job. Resource planning should preserve that distinction instead of interpreting the parameter name as a promise that the scheduler can safely allocate exactly that amount for all circumstances.

Support status belongs in planning as well. The official wiki states that, as of 2024, the project no longer has dedicated funding for future development, maintenance or support. That statement does not establish that the software cannot be used or that no assistance exists. It does make recording the installed version and the environment a useful part of a laboratory’s assembly handoff.

One assembly, separate sample measurements

The Trinity quantification guide directs researchers comparing multiple RNA-seq datasets to generate one assembly and estimate abundance separately for each sample. This preserves a shared transcript reference while keeping sample measurements separate. Combining inputs for reference construction does not mean combining all samples into one abundance result.

The guide provides helper support for RSEM, kallisto and Salmon, while noting that these programs must be installed separately. It also distinguishes transcript-level estimates from gene-level estimates, for which transcript-to-gene relationships are needed. A comparison of TPM, FPKM and raw counts gives additional context for interpreting expression units; those units should not be confused with the number of sequences in the assembly.

A laboratory interpretation checklist

The following checklist is an editorial synthesis of the project’s input, output, computing and assessment documentation. It connects the evidence needed for a handoff without prescribing an experimental procedure or universal acceptance threshold:

  • Keep the read files associated with their sample and replicate descriptions, and retain the recorded strand convention.
  • Identify whether the assembly was genome-free or genome-guided; for the latter, preserve the reference and alignment context.
  • Retain complete transcript and gene identifiers so downstream results can be matched to the assembly.
  • Separate the assembly sequence file, per-sample abundance estimates and quality-assessment outputs in the report.
  • Present complementary quality evidence, including read representation, conserved-gene completeness and appropriately labelled contig statistics.

Common misunderstandings

A larger N50 does not settle assembly quality

N50 is a length statistic: at least half of the assembled bases lie in contigs at least that long. It does not mean half the contigs exceed that length. The Trinity Nx and ExN50 documentation warns that multiple isoforms, especially of longer transcripts, can inflate conventional Nx summaries.

TrinityStats therefore reports summaries using all transcript contigs and using only the longest isoform per gene. These are summaries of different sequence sets. A report should name the set behind its statistic rather than place two N50 values side by side as if their denominators were necessarily equivalent.

For an illustrative composite, suppose four contigs have lengths of 1,000, 800, 200 and 100 bases. Their combined length is 2,100 bases, so half the assembled sequence is 1,050 bases. The longest contig alone contributes 1,000 bases; including the next contig brings the cumulative length to 1,800. Under the documented definition, N50 is therefore 800 bases. This arithmetic illustrates the statistic only: these are invented example lengths, not Trinity benchmark data or a recommended quality threshold.

Expression-aware statistics require expression evidence

ExN50 incorporates abundance information by restricting the length summary to features representing a specified cumulative share of expression. E90N50 uses the expression subset corresponding to 90% of that signal. It requires abundance estimation first; it cannot be recovered from the FASTA sequence lengths alone.

The documentation also distinguishes gene-level and transcript-level ExN50 analyses. Unequal read assignment among isoforms can affect transcript-level summaries. Comparing an ordinary N50, an expression-restricted summary and a gene-based summary therefore requires stating how each was calculated, rather than choosing the largest number and calling the assembly complete.

Read support and completeness are complementary

The assembly quality assessment guide recommends several kinds of evidence: how well reads are represented, matches to known proteins, conserved ortholog completeness through BUSCO and contig statistics informed by expression. Each addresses a different aspect of the reconstructed transcriptome.

For example, read representation asks whether the assembly accounts for the input reads, while a conserved-ortholog assessment asks about expected conserved content. Neither is interchangeable with a count of assembled transcripts. The original data table brings these distinctions together so a laboratory can identify which evidence supports a particular statement and which inference still needs separate analysis.

Sources

Data: Trinity outputs and quality evidence: interpretation crosswalk

Original compilation of Trinity project documentation connecting assembly identifiers, genome-guided inputs and quality summaries to their interpretive limits. Each row names its source; the table combines separate documentation pages rather than reproducing a published table.

Trinity outputs and quality evidence: interpretation crosswalk
Evidence or outputWhat it describesInterpretive boundaryOfficial source page
Trinity gene groupTranscripts grouped by shared sequence content.A loosely named gene group; keep the complete cluster-plus-gene identifier rather than g5 alone.Output of Trinity Assembly
Transcript isoform identifierThe full accession, such as TRINITY_DN1000_c115_g5_i1, identifies an isoform within its group.Graph-node numbers in path information are local to a Trinity gene context.Output of Trinity Assembly
Genome-guided inputCoordinate-sorted BAM alignments organize reads by genomic locus.Transcript sequences are assembled from reads; the reference genome supplies grouping context.Genome-guided Trinity De novo Transcriptome Assembly
Read representationHow well the assembly represents input RNA-seq reads.The project lists it alongside protein reconstruction, conserved orthologs and contig statistics as complementary evidence.Transcriptome Assembly Quality Assessment
Conventional N50At least half the assembled bases are in contigs at least as long as N50.Multiple isoforms can inflate Nx; all-transcript and longest-isoform-per-gene summaries use different sequence sets.Trinity Transcriptome Contig Nx and ExN50 Statistics
E90N50An expression-aware length summary for features representing 90% of expression.Requires abundance estimates; specify whether the analysis uses genes or transcripts.Trinity Transcriptome Contig Nx and ExN50 Statistics
Per-sample abundance estimatesSeparate sample measurements against one shared assembly for comparative datasets.Transcript and gene estimates require the appropriate grouping; abundance is separate from sequence reconstruction.Trinity Transcript Quantification

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 Trinity assembler: RNA-seq outputs and QC

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 →