Package sc.fiji.snt.analysis.curation
Class PlausibilityCheck.TerminalNearAncestor
java.lang.Object
sc.fiji.snt.analysis.curation.PlausibilityCheck.DeepCheck
sc.fiji.snt.analysis.curation.PlausibilityCheck.TerminalNearAncestor
- Enclosing class:
PlausibilityCheck
Flags terminal branches whose endpoint sits suspiciously close to a
node on a non-ancestor path. Pattern: the user traced two paths that
should really have been one branching event off a shared ancestor;
the terminal "ends" near the ancestor it should have forked off of.
Direct parents and ancestors are excluded from the proximity check
(it's normal for a terminal to be near its own parent right after the
fork), so we only flag "stranger" proximity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetName()Declares how this check's errors propagate.measure(Collection<Path> paths) Computes the full distribution of this check's metric acrosspaths, without applying the warning threshold.scan(Collection<Path> paths) Scans a collection of paths for plausibility issues.voidsetMaxProximityUm(double um) Methods inherited from class sc.fiji.snt.analysis.curation.PlausibilityCheck.DeepCheck
isEnabled, setEnabled
-
Constructor Details
-
TerminalNearAncestor
public TerminalNearAncestor()
-
-
Method Details
-
getName
- Specified by:
getNamein classPlausibilityCheck.DeepCheck- Returns:
- a short human-readable name for this check
-
impactKind
Description copied from class:PlausibilityCheck.DeepCheckDeclares how this check's errors propagate. DefaultLOCALfor deep checks because most deep checks (radius jumps, monotonicity, signal quality) measure intrinsic per-path properties that don't propagate to descendants. Topology-class checks (e.g.,Crossovers) override toPlausibilityCheck.ImpactKind.SUBTREE.- Overrides:
impactKindin classPlausibilityCheck.DeepCheck
-
setMaxProximityUm
public void setMaxProximityUm(double um) -
getMaxProximityUm
public double getMaxProximityUm() -
scan
Description copied from class:PlausibilityCheck.DeepCheckScans a collection of paths for plausibility issues.- Specified by:
scanin classPlausibilityCheck.DeepCheck- Parameters:
paths- the paths to scan- Returns:
- list of warnings (empty if no issues found)
-
measure
Description copied from class:PlausibilityCheck.DeepCheckComputes the full distribution of this check's metric acrosspaths, without applying the warning threshold. Default implementation returnsPlausibilityCheck.Measurements.EMPTY; subclasses override to enable per-check histogram popups in the Curation Assistant.- Overrides:
measurein classPlausibilityCheck.DeepCheck- Parameters:
paths- the paths to evaluate;nullor empty yieldsPlausibilityCheck.Measurements.EMPTY.- Returns:
- a
PlausibilityCheck.Measurementsrecord; nevernull.
-