Blog · Data · · 5 min read
Catching upstream data errors by rolling up the tree
Most biodiversity databases display one species at a time on a text page. Under that interface, a 9-kilometer leatherback turtle or a glass frog with 45,925 eggs can sit unnoticed inside a 30,000-row CSV for years, because nobody happens to open that species page and read that cell. Ptree paints every trait onto one cross-kingdom scale and rolls every value up eleven taxonomic trees into clade extremes, distributions, and proportions. A single corrupted record stops hiding in a table and skews an entire family, order, or class on sight.
Why bad rows stop hiding in a rollup
A visual rollup across all of life acts as an anomaly detector that no table view or species-page portal has ever had. You do not need to write a validation query to discover that SquamBase dropped a minus sign or that Open Tree merged a land-snail genus into a marine clam. The tree looks wrong the first time you open the overlay:
- One 10^14-gram water snake pulls Colubroidea's upper mass whisker past the blue whale on Mass.
- Four glass frogs whose clutch ranges were converted into Excel dates push Centrolenidae past marine fishes on Offspring count.
- Four oribatid mite genera filed inside a jellyfish family make the entire jellyfish order Rhizostomeae read as having an external skeleton.
- 145 terrestrial Tropidophora snails dropped inside a marine clam genus make a land snail read as a plankton filter feeder.
- One stray fossil occurrence in PBDB pulls Animalia's first appearance back over a billion years into the Orosirian.
That is why Ptree's Upstream source errors page grew into a catalog spanning twenty major biodiversity databases. We did not set out to audit published science tables. Rolling those tables up and coloring them together simply made decades of silent spreadsheet accidents, flipped columns, and automated merge collisions impossible to overlook.
Spreadsheets and dropped signs
In TetrapodTraits, four glass frogs carry clutch sizes between 45,711 and 45,925 eggs, while the other 60 glass frogs in the table lay 11 to 115. Those numbers are Excel serial dates from 2025: 23 February (Centrolene peristictum), 11 May (Vitreorana antisthenesi), 16 May (C. buckleyi), and 25 September (C. daidaleum). That is what happens when someone types a clutch range like 5-16 into a spreadsheet and exports the resulting serial number.
SquamBase estimates body mass from snout–vent length using log10 regression equations. For Homalopsidae, the intercept is printed as +5.6003, whereas every other snake family has a negative intercept. Missing that minus sign gives the puff-faced water snake Homalopsis mereljcoxi a mass of 10^14 grams (100 million tonnes) and pushes 19 species in the family past any mass that a reptile could reach.
SeaLifeBase gives the leatherback turtle a common carapace length of 916,000 cm (9.16 km) beside its 256.5 cm maximum length. It also places the hydrothermal vent limpet Corgoleptis patulus from 12,450 m down to 2,490 m, a range that is both reversed and deeper than the Mariana Trench. FishBase lists twelve fishes above pH 14 (one at pH 36,751) and a preferred temperature of 105,428 °C. Amniote gives four birds an age at maturity of −30,258.711 days, four Ctenophorus dragon lizards an incubation of 1,762 days, and thirteen shrews and rodents a maximum lifespan of exactly one month.
Unit slips also show up by factors of a thousand. BacDive records Thermogladius calderae cells at 0.5–0.9 nm, whereas the original paper reports 0.5–0.9 µm. It also records Ferrithrix thermotolerans cell length at 1.0–3.0 mm, which is the diameter of visible filament flocs rather than its 3–4 µm rods. EOL TraitBank carries WoRMS's Nitratifractor salsuginis at 2.5 mm instead of 2.5 µm. Averaging that against BacDive's 2.5 µm would invent a 79 µm bacterium.
Taxonomy and interaction inversions
Open Tree of Life's clam genus Tropidomya lists GBIF's land-snail genus Tropidophora among its sources, putting 145 terrestrial snails inside Cuspidariidae beside two marine clams. Across its tree, Open Tree places about 4,700 species under homonymous genera in other kingdoms, including earthworms under brown algae (Eisenia) and hermit crabs under green algae (Diogenes).
In GloBI, all 13,203 rows of Cruz et al. 2023's Brazilian mammal host–parasite dataset are reversed, including 1,102 records of the domestic dog as a parasite of the tick Dermacentor nitens. ScaleNet similarly writes 38 "of" relations backward, turning scale insects into parasitoids of the wasps that parasitize them. GloBI's copy of VIRION drops the virus's name on 3,902 rows and files the Baikal seal as the parasite, including 1,433 records of the Baikal seal inside chickens.
Range models fail at the map edge too. In iNaturalist's geomodel release 2.34, polygons that cross the 180° meridian close through the wrong pole, stretching the wild boar's range from 5.26°N to the South Pole across nearly every ocean on Earth.
What Ptree filters and what it reproduces faithfully
Ptree draws a clear line between physical impossibility and scientific disagreement. Physically impossible numbers are excluded: water above pH 14, depths below 11,000 meters, reversed ranges, negative ages, clutches turned into Excel dates, lengths over 200 meters, and regression masses that no reptile could reach. For reversed interaction tables like Cruz et al. 2023 and ScaleNet's inverted rows, Ptree swaps the two partners while keeping the original citation, and turns the swap off automatically once upstream fixes the data. For broken geomodel rings that reach a pole from the wrong hemisphere, Ptree falls back to the newest earlier release that has a sound polygon.
Upstream taxonomy and biological claims are reproduced faithfully. Ptree keeps no secret list of hand-patched species overrides to hide that PBDB files Pupilla land snails under a sea snail, that WoRMS inherits endoparasitism onto Caenorhabditis elegans, or that Open Tree merges four oribatid mite genera into a jellyfish family. Viewing Open Tree's tree in Ptree shows Open Tree's tree, and the provenance footnote shows exactly which source made each claim.
Every excluded record, encoding repair (such as mixed UTF-8 and Windows-1252 lines in AusTraits and trophiCH), and upstream taxonomy quirk is logged with its record IDs on Upstream source errors so users and data maintainers can trace where any unexpected reading came from.