Skip to content

Mismatched model->cluster mapping in clustrmsd: only when called multiple times in a single run #1650

Description

@AnnaKravchenko

Module/Workflow/Library affected

clustrmds, but ONLY when called 2nd or more times

Expected behavior

When mapping models to respective clusters, both clustrmsd.txt/rmsd_matrix.json and cluster.out should carry the same mapping.

Actual behavior

Look at sinlge model in cluster # 5.
In 4_clustrmsd/cluster.out:

Cluster 1 -> 1 2 5 6 7 8 9 11 14 16 18
Cluster 2 -> 13 15 19
Cluster 3 -> 10 17 20
Cluster 4 -> 3 12
Cluster 5 -> 4

But 4_clustrmsd/clustrmsd.txt and rmsd_matrix.json display different model (full file at the bottom):

…
-----------------------------------------------
Cluster 3 (#5, n=1, top1_avg_score = -677.47)
clt_rank	model_name	score
1	mdref_1.pdb	-677.47	*
-----------------------------------------------
...

Steps to reproduce the behavior

Workflow and input pdb are here

Version

657917f

Additional context

In the FIRST occurrence of clustrmsd, this mapping is CORRECT. But in the 2nd and subsequent occurrences of clustrmsd, it is broken.

Raw 4_clustrmsd/clustrmsd.txt. Clusters # 5, # 4 and # 3 are fully mismatched.

### clustrmsd output ###

Clustering parameters
> linkage_type=average
> criterion=maxclust
> n_clusters=5
> min_population=1

-----------------------------------------------

Total # of clusters: 5

-----------------------------------------------
Cluster 1 (#1, n=11, top1_avg_score = -702.24)

clt_rank	model_name	score
1	mdref_18.pdb	-702.24
2	mdref_2.pdb	-692.84
3	mdref_16.pdb	-673.15
4	mdref_13.pdb	-672.02
5	mdref_14.pdb	-669.53
6	mdref_3.pdb	-663.94	*
7	mdref_17.pdb	-661.30
8	mdref_5.pdb	-657.26
9	mdref_7.pdb	-656.27
10	mdref_11.pdb	-653.63
11	mdref_8.pdb	-650.35

-----------------------------------------------
Cluster 2 (#4, n=2, top1_avg_score = -682.43)

clt_rank	model_name	score
1	mdref_9.pdb	-682.43	*
2	mdref_20.pdb	-677.80

-----------------------------------------------
Cluster 3 (#5, n=1, top1_avg_score = -677.47)

clt_rank	model_name	score
1	mdref_1.pdb	-677.47	*

-----------------------------------------------
Cluster 4 (#3, n=3, top1_avg_score = -672.13)

clt_rank	model_name	score
1	mdref_19.pdb	-672.13
2	mdref_4.pdb	-671.03	*
3	mdref_6.pdb	-652.01

-----------------------------------------------
Cluster 5 (#2, n=3, top1_avg_score = -671.46)

clt_rank	model_name	score
1	mdref_10.pdb	-671.46
2	mdref_12.pdb	-661.66	*
3	mdref_15.pdb	-654.04
———————————————————————

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions