Skip to content

Commit

Permalink
HELP-21267: don't apply pLDDT coloring to archive entries
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Jul 1, 2024
1 parent c9fcb5a commit 3116c32
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[Semantic Versioning](https://semver.org/)

## [2.10.3] - 2024-07-01
### Bug fixes
- HELP-21267: don't apply pLDDT coloring to experimental structures

## [2.10.2] - 2024-07-01
### General
- Dependency updates
Expand Down
4 changes: 2 additions & 2 deletions src/viewer/helpers/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
AssemblySymmetryProvider
} from 'molstar/lib/extensions/assembly-symmetry/prop';
import { Task } from 'molstar/lib/mol-task';
import { PLDDTConfidenceColorThemeProvider } from 'molstar/lib/extensions/model-archive/quality-assessment/color/plddt';
import { QualityAssessment } from 'molstar/lib/extensions/model-archive/quality-assessment/prop';

type BaseProps = {
assemblyId?: string
Expand Down Expand Up @@ -352,7 +352,7 @@ function checkPlddtColorTheme(structure: StructureObject | undefined, plddt: 'on
if (!structure?.data) return false;
if (plddt === 'off') return false;
if (plddt === 'single-chain' && structure.data?.polymerUnitCount !== 1) return false;
return PLDDTConfidenceColorThemeProvider.isApplicable({ structure: structure.data });
return structure.data.models.some(m => QualityAssessment.isApplicable(m, 'pLDDT'));
}

function determineAssemblyId(traj: any, p: MotifProps) {
Expand Down
13 changes: 9 additions & 4 deletions src/viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,15 @@ <h2> RCSB PDB Mol* Viewer - Test Page</h2>
}
}
},
// {
// id: '6JI7',
// info: 'small: NMR structure with RCI'
// },
{
id: '8GK5',
info: 'small: NMR structure with RCI',
config: {
props: {
assemblyId: '1'
}
}
},
{
id: '3PQR',
info: 'medium: polymer, carbs, ligands',
Expand Down

0 comments on commit 3116c32

Please sign in to comment.