Package org.rcsb.strucmotif.core
Class KruskalMotifPruner
java.lang.Object
org.rcsb.strucmotif.core.KruskalMotifPruner
- All Implemented Interfaces:
MotifPruner
A motif may be best described by the minimal spanning tree which connects all vertices in the most compact fashion.
Uses Kruskal's algorithm to determine tree.
-
Constructor Summary
ConstructorsConstructorDescriptionKruskalMotifPruner(MotifSearchConfig motifSearchConfig) Injectable constructor. -
Method Summary
Modifier and TypeMethodDescriptionprune(Structure structure, List<LabelSelection> labelSelections, List<Map<LabelAtomId, float[]>> residues) Perform pruning operation (e.g.
-
Constructor Details
-
KruskalMotifPruner
Injectable constructor.- Parameters:
motifSearchConfig- app config
-
-
Method Details
-
prune
public List<ResiduePairOccurrence> prune(Structure structure, List<LabelSelection> labelSelections, List<Map<LabelAtomId, float[]>> residues) Description copied from interface:MotifPrunerPerform pruning operation (e.g. extract allResiduePairOccurrenceinstances from a structure and prune the resulting graph).- Specified by:
prunein interfaceMotifPruner- Parameters:
structure- the structure from whichResiduePairOccurrenceinstances will be extractedlabelSelections- the residue identifiersresidues- the manifested residues to work with, a subset of the structure- Returns:
- the set of occurrences which describe this structure
-