Dry Lab

Clustering methods

How the 298,687,363 PETadex V2 catalytic cores were clustered at 90%, 60% and 30% identity, why clustering runs within each CATH superfamily, where the centroids come from, and how the result compares with the original PETadex.

Why cluster?

PETadex V2 is huge and very redundant. The same enzyme turns up again and again across Logan, because closely related organisms get sequenced in thousands of samples. Working on 299 million cores directly would mean embedding, sampling and plotting the same sequence many times over.

Clustering by identity gives us the dataset at three resolutions:

  • 90%, enzymes. Collapses near-identical sequences. One centroid stands in for what is effectively one enzyme.
  • 60%, families. Groups enzymes that are clearly related but no longer near-copies.
  • 30%, superfamilies. About where sequences stop aligning reliably. This is the level that shows the shape of the dataset.

Inputs

The input is every complete catalytic core: the part of each sequence that a catalytic HMM matched, where the match covered every catalytic residue position. We cluster cores rather than whole proteins so that two enzymes with the same catalytic domain but different accessory domains still land together.

SourceCores
PETadex-PAZy503
PETadex-nr6,764,617
PETadex-Logan291,922,243
Total298,687,363

Before clustering we checked every record: each sequence's length equals its HMM hit range, no ID appears twice, and no sequence is empty.

Three levels, one after another

The clustering is hierarchical. We cluster all cores at 90%, then cluster the 90% centroids at 60%, then the 60% centroids at 30%. Every core therefore has exactly one cluster at each level, and the levels nest: two cores in the same 90% cluster are always in the same 60% and 30% cluster.

Clustering within each CATH superfamily

Cores from different folds don't share meaningful identity, so there is no reason to compare them. We split the input into groups and cluster each group on its own. We tried two groupings:

  • Run 1: per component. One clustering job for each of the 46 components.
  • Run 2: per CATH superfamily. One job for each of the 15 CATH superfamilies, with the same settings as the clustering of the original PETadex (v1.1).

Run 2 changed two things at once: the grouping, and the search settings (ultra-sensitive mode, true identity rather than an approximation, full extension, and no masking). To separate them, we split Run 2's result back along component lines. That gives about 85,000 clusters at 30%, compared with 167,232 for Run 1 and 77,524 for Run 2. Most of the difference comes from the settings. Grouping by superfamily helps as well, so we keep it.

So far only the 30% level has been rerun with the v1.1 settings. The 90% and 60% counts below are still from Run 1.

Results

IdentityPETadex V2Original PETadex (v1.1)
90%30,453,50118,172,960
60%2,928,8101,814,296
30%77,524 (Run 2); 167,232 (Run 1)22,235

From a similar amount of input, PETadex V2 has 1.6 to 1.7 times as many clusters as v1.1 at 90% and 60%, and 3.5 times as many at 30%.

From 299 million cores to 77,524 superfamilies
PETadex V2 Original PETadex (v1.1)
30% superfamilies: 77,524 clusters (Run 2)
Logan 68,949 88.9%NCBI nr 8,496 11.0%PAZy 79 0.1%

18,348 singletons (23.7%). The original PETadex had 22,235 clusters at 30%.

Cluster counts on a log scale. Each level clusters the centroids of the level above, within each CATH superfamily.

Where the centroids come from

Each centroid is a real core, so we can ask which source it came from.

SourceCores90% centroids60% centroids30% centroids
PETadex-PAZy50336120379
PETadex-nr6,764,6172,394,647383,2338,496
PETadex-Logan291,922,24328,058,4932,545,37468,949
Total298,687,36330,453,5012,928,81077,524

Logan supplies 98% of the cores and 87–92% of the centroids at every level. nr punches above its weight: 2% of the cores, but 8–13% of the centroids.

For comparison, v1.1 had 172 PAZy, 1,747,473 nr and 16,425,315 Logan centroids at 90%, and 116, 297,773 and 1,516,407 at 60%. In Run 1, the 30% centroids split 94 / 17,912 / 149,226.

Singletons

A singleton is a cluster with one member: a core with nothing else in the dataset at that identity. PETadex V2 has more of them than v1.1, and the gap is widest at 30%.

IdentityRunSingletonsShareClusters without singletons
90%V2, Run 115,564,26051.1%14,889,241
90%v1.19,169,31950.5%9,003,641
60%V2, Run 11,019,46134.8%1,909,349
60%v1.1571,80331.5%1,242,493
30%V2, Run 156,05033.5%111,182
30%V2, Run 218,34823.7%59,176
30%v1.12,94013.2%19,295

At 90% and 60% the singleton share barely moves between versions. At 30% the v1.1 settings cut the share from a third to a quarter, but that is still nearly twice the v1.1 share. Even without singletons, V2 has three times as many 30% clusters as v1.1.

We don't know yet why. The new Logan search seems to return a more fragmented set of families, which more distant or partial cores would explain, but we haven't tested that.

Domain composition

α/β-hydrolases are close to half of the clusters at every level, from 46.8% at 90% to 42.1% at 30%. The largest superfamilies lose share as clusters get coarser, which is what clustering should do: a big, dense family collapses into relatively few clusters, while small, scattered families keep most of theirs. Trypsin-like proteases are the exception. They are 3.2% of 90% clusters but 17.2% of 30% clusters, the second-largest group at that level.

CATH superfamily composition of PETadex V2 clusters at 90% (30,453,501 clusters), 60% (2,928,810) and 30% identity (77,524). Segments of at least 3% are labelled; the eight smallest superfamilies are grouped as Other.

Limitations

  • Not final. Only the 30% level uses the v1.1 settings. All three levels will be rerun end to end.
  • Unexplained singletons. The new corpus has far more 30% singletons than v1.1, and we don't know why yet.
  • Settings matter more than grouping. The 30% count roughly halved when we changed settings, so these counts describe the dataset under one particular set of settings, not a fixed property of it.
  • No clustering across superfamilies. Two cores from different superfamilies never share a cluster, even in the rare case that they would pass the identity cutoff.