Data preparation

OrthoFinder Input Quality: Building a Defensible Proteome Dataset

OrthoFinder analysis begins with a biological sampling decision, not a software command. A protein collection is a representation of predicted genes, and every omission, duplicated transcript, contaminating sequence, or annotation inconsistency can influence the evolutionary story reconstructed from it. Careful preparation therefore deserves the same attention as the final trees. This guide develops a practical framework for checking proteomes, retaining interpretable identifiers, and distinguishing real biological differences from properties of the input files.

Define what each sequence represents

A comparative gene analysis should usually compare representative protein products from loci. Alternative transcripts describe different products of the same locus, whereas duplicated genes represent distinct genomic copies. Treating both categories as interchangeable inflates the apparent number of genes and may make transcriptional complexity resemble gene family expansion. The appropriate representative should follow an explicit annotation policy, such as the designated primary transcript when available, rather than an undocumented manual preference.

Selecting the longest translation can be a useful fallback, but length alone does not establish biological correctness. An unusually long model may join neighboring genes, incorporate unsupported exons, or extend into an assembly error. Preserve the association between representative protein, transcript, and genomic locus so suspicious families can be checked later. A mapping table should survive every renaming operation and should be archived alongside the analysis inputs.

Audit the sequence files before searching

A FASTA audit should count records, check whether identifiers are unique within each file, and detect empty sequences. It should also describe protein lengths, ambiguous amino acid content, and unexpectedly repeated sequences. These observations are diagnostic measurements rather than universal rejection thresholds. A short proteome from a bacterium and a short proteome from a fragmented eukaryotic annotation require different interpretations, even if the file sizes look similar.

Check that protein sequences have not accidentally been mixed with nucleotide sequences. Files dominated by a small nucleotide alphabet deserve inspection, although amino acid composition alone cannot classify every sequence reliably. Examine the source annotation and a representative subset of records. Keep original downloads unchanged, perform cleaning in a separate directory, and record each transformation so the prepared dataset can be reconstructed without guessing.

Separate completeness from contamination

Gene content completeness and taxonomic purity answer different questions. A proteome may contain most expected conserved markers while also carrying contaminant proteins, and a clean proteome may be incomplete. A lineage appropriate BUSCO assessment offers one view of expected gene recovery, but its duplicated category requires context: retained haplotypes, transcript redundancy, and genuine genome duplication can all contribute. A single completeness percentage cannot diagnose those alternatives.

Use additional evidence when a species shows an unusual distribution of protein lengths or taxonomic matches. Assembly coverage, genomic neighborhoods, annotation support, and source metadata can help resolve the cause. Removing all unusual proteins merely because they are unusual risks deleting genuine biological novelty. Instead, record the reason for each exclusion and evaluate whether the main comparative conclusions depend on the disputed sequences.

Worked example: an annotation imbalance

Consider an illustrative comparison of four hypothetical plant proteomes. Species Alder has 28,000 representative proteins, Birch has 29,400, Cedar has 55,800, and Dogwood has 27,600. These invented counts are teaching data, not observations from those named taxa. Cedar immediately deserves attention because its count is approximately twice that of its neighbors, but the arithmetic alone does not identify the explanation or justify excluding it.

Suppose the Cedar annotation contains 54,200 transcripts from 29,100 loci, plus 1,600 records without a clear locus mapping. Reducing the mapped transcripts to one representative per locus changes the interpretation substantially. The remaining ambiguous records must be investigated independently. Calling the original excess an evolutionary expansion would have confused transcript multiplicity with gene duplication, and the resulting family counts would have carried that error into every downstream comparison.

Design a transparent quality ledger

For each species, record the assembly identifier, annotation release, download date, original sequence count, retained locus count, and transformation rules. Add summary distributions rather than only averages: a median and several quantiles expose patterns hidden by a mean. Record whether stop symbols were removed, whether identifiers were shortened, and how records with missing locus information were handled. These details make a quality decision inspectable by another researcher.

Keep the ledger independent of any orthogroup identifier. Family labels are analysis outputs and can change when species or parameters change; source identifiers should remain traceable across runs. Where an identifier contains spaces, preserve the original header separately and choose a stable token for computational processing. Verify that the token maps back to exactly one intended record before combining tables or extracting sequences.

Interpret missing genes cautiously

An absent protein record is evidence about the supplied annotation before it is evidence about evolutionary loss. A locus may be unassembled, unpredicted, fragmented, or expressed only in a condition absent from transcriptome sampling. If a proposed loss drives the study, inspect the corresponding genomic interval where possible. A negative orthology result becomes more informative when the local assembly and annotation are independently adequate.

Similarly, an unassigned protein is not automatically a species specific gene. Distant sampling, rapid evolution, low complexity, truncation, or a restricted domain match can change whether it joins a family. Treat unassigned sequences as a prioritization set for further analysis. The strongest novelty claims combine sequence evidence with genomic context, expression support, and explicit evaluation of technical alternatives.

Case analysis: comparing preparation policies

Consider a second, entirely simulated quality audit in which three preparation policies are applied to the same annotation. Policy Primary retains the annotation provider’s designated representative for each mapped locus. Policy Longest retains the longest mapped translation. Policy Complete retains a documented representative after reviewing models with obvious truncation. These policies illustrate alternative decisions; they are not claims that one universal rule is always superior.

Suppose 12,000 loci have identical representatives under all three policies, while 800 differ between Primary and Longest. Of those differences, 600 involve a longer terminal extension and 200 involve an altered internal region. This breakdown matters because the two patterns may affect alignments differently. The relevant comparison concerns sequence structure and annotation support, not merely which policy retains the most amino acids.

For the 200 internal differences, create a review table recording locus identifier, both sequence lengths, domain coverage, transcript support, and the chosen treatment. Prioritize loci that contribute to the study’s central families. A systematic policy can handle routine cases, while a clearly documented exception review addresses consequential ambiguity without requiring manual inspection of every protein.

Next compare the retained sequence counts with the locus counts. If a policy produces more proteins than intended loci, investigate unmatched records, duplicated identifiers, and ambiguous mappings. A count discrepancy is a useful audit signal because representative selection is supposed to preserve a specified unit. Resolving it before analysis is easier than reconstructing the cause from an inflated family table.

Finally compare whether the major family conclusions survive the preparation alternatives. Stable findings can be described as robust to the tested representative rules. Sensitive findings should identify the responsible loci and explain why the final choice was justified. This analysis does not establish universal correctness, but it makes the effect of a consequential input decision visible and reproducible.

Further analysis

An especially useful audit compares protein counts before and after representative selection at the family level. If a suspected expansion disappears only in families with many annotated isoforms, the original signal was preparation sensitive. If it persists among separate, well supported loci with distinct genomic positions, a biological explanation becomes more plausible. Neither outcome should be decided by a global count alone.

Another diagnostic compares ambiguous residue burden with sequence length. A small number of ambiguous positions distributed across long proteins differs from a collection of short fragments dominated by unknown residues. Record both the number of affected proteins and the proportion of affected residues. This avoids hiding a concentrated annotation problem inside an apparently reassuring dataset average.

Create a small validation set containing an ordinary protein, a short protein, an isoform family, a duplicated locus, and a suspicious fragment. Follow these records through every preparation step. Their identifiers, sequence lengths, and locus assignments provide concrete checkpoints that can reveal accidental truncation or inappropriate filtering before a large search consumes substantial computational resources.

Finally, define quality decisions before examining the biological result whenever practical. If exclusions are chosen only after seeing a desired expansion or loss pattern, interpretation becomes vulnerable to selective cleaning. A dated preparation plan, followed by a separately documented sensitivity analysis, provides a stronger basis for discussing unexpected results.

A preparation report should also distinguish exclusions from corrections. Removing a contaminant record changes the analyzed collection, whereas correcting an identifier changes its representation. Combining these operations into one unexplained cleaning count prevents readers from understanding what was altered. Preserve separate totals and reasons, then verify that the final records correspond to the intended biological units. This final reconciliation closes the gap between the preparation policy and the actual files supplied.

FAQs

Should identical proteins always be removed?

No. Identical sequences can represent separate loci, so sequence identity alone is not a sufficient deduplication rule. Remove redundant representations of the same intended locus according to the annotation mapping, while retaining genuine genomic copies. Document any uncertainty instead of silently merging biologically distinct records.

Is the highest completeness score always the best input?

Not necessarily. Completeness must be considered alongside redundancy, contamination, annotation consistency, and relevance to the research question. A slightly less complete but well documented gene set may be easier to interpret than a larger collection whose identifiers and transcript relationships cannot be reconstructed.

Can transcriptomes be included with genome annotations?

They can support exploratory comparisons, but their missingness has a different origin. Expression depends on tissue, developmental stage, and sequencing depth. Keep source type visible in the quality ledger and avoid interpreting every transcriptome absence as a lost gene in the corresponding species.

Conclusion

Reliable proteome preparation turns an opaque collection of sequences into a documented biological dataset. Representative selection, identifier preservation, and separate assessment of completeness and purity reduce avoidable ambiguity. The goal is not to make every species look identical. It is to understand why the inputs differ and to ensure that important evolutionary claims survive reasonable alternative preparation choices.

Maintain that distinction.