composition_view
Colour structure parts by their presence fraction from a supplied table, labeling and fading rarely present components so compositional occupancy is visible rather than implied by atom-level occupancy.
Instructions
Colour parts of a structure by the fraction of particles containing them.
This is occupancy in SENSE 2 — compositional. A ligand at 40% here means 40% of imaged complexes had it bound. It is not the per-atom crystallographic occupancy q, and it is never derived from q: a model can be q=1.0 at every atom while the subunit it belongs to is present in half the particles. Both statements are true and they answer different questions, so the table must be supplied and this tool never reads an atom property at all. For sense 1, use occupancy_view.
A selection matching no atoms is refused rather than skipped — PyMOL would accept it silently, colour nothing, and leave a render that looks like a fully-present structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Write each part's presence fraction next to it | |
| table | Yes | Presence fractions, inline as "chain A=0.4, chain B=1.0" or a path to a file of selection<TAB>fraction lines | |
| obj_name | Yes | The object the table's selections apply to | |
| transparency | No | Also make rarely-present parts transparent in proportion, so half-present reads as half there |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |