Skip to content

Edge panel's column filter pre-fills 'PDB:', which hides PDB-CCD ligand terms #284

Description

@realmarcin

From the round-5 review of #244.

Where: _fleet/fleet_fragment.html: selectEdge() pre-fills the term filter with voc + ":", and renderTermList() matches by substring on the id and label.

#244 gives PDB ligand codes and Rhea compounds their own term keys (PDB-CCD:, RHEA-COMP:), but they count toward the PDB and RHEA columns in the edge's breakdown. When the edge panel is refiltered by the PDB column (for example, a PDB heading clicked while the edge file is still loading), the filter reads "PDB:". The panel then shows "PDB 140" in the breakdown and lists none of them, because every id is PDB-CCD:…. Clicking the chord directly is unaffected.

Fix: match a term against the column it counts toward as well as its own prefix, as build_subsets.column() does.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions