Class BeskopeClassifierManager

java.lang.Object
matchedTemplateClassifer.bespokeClassification.BeskopeClassifierManager

public class BeskopeClassifierManager extends Object
Manages classification flags and/or any bespoke alteration to specific types of data units after an MT Classification has been processed.

For example, ClickDetections have a species flag which is used by many displays and saved in binary files. Although the Annotation framework the MTClassifier uses is generic across all types of data unit it is still useful to add the flag to the ClickDetection. This helps both simplify post analysis tasks as flags are saved to the binary file and also ensure that classified clicks are coloured differently on many displays.

Author:
Jamie Macaulay
  • Constructor Details

    • BeskopeClassifierManager

      public BeskopeClassifierManager(MTProcess mtProcess)
  • Method Details

    • updateSettings

      public void updateSettings(MatchedTemplateParams newParams)
      Called whenever the settings of the matched click classifier are updated.
    • bespokeDataUnitFlags

      public void bespokeDataUnitFlags(PamDataUnit pamDataUnit, boolean classify)
      Classifies specific data units if they have bespoke data unit specific species flags. Some data units will not be affected by this function.

      Note: 26/08/2019 that until PG has a unified classification framework this is always going to be a bit of a messy function.

      Parameters:
      pamDataUnit - - the input data unit to add classification flags to.
      classify - - true if binary classifier test has been passed.