|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCmpSpots.Cmpglb
CmpSpots.CmpPairSecondary
public class CmpPairSecondary
Class CmpPairSecondary does secondary spot pairing for the 2D spot pairing program. This code supports additional improvements to the initial pairing by testing AP and US spots to see if they could pair better with AP or US spots in adjacent (i.e., nearest-neighbor) landmark sets. If a spots would pair better, it is moved to that landmark set and re-paired. The statistics are updated to reflect this.
This code was derived and refactored from GELLAB-II cmpgl2 C language files as well as the Open2Dprot Seg2Dgel program.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Open2Dprot Mozilla and Legal files are available on http://Open2Dprot.sourceforge.net/.
| Nested Class Summary | |
|---|---|
(package private) class |
CmpPairSecondary.OptimizedPair
Used for passing data on current optimized pair of spots |
| Field Summary | |
|---|---|
private static boolean |
NOT_NEEDED_WITH_MULT_LANDMARKS
|
| Constructor Summary | |
|---|---|
CmpPairSecondary()
CmpPairSecondary() - Constructor |
|
| Method Summary | |
|---|---|
private DbSpot |
findBetterAltPairedSpot(CmpPairSecondary.OptimizedPair op)
findBetterAltPairedSpot() - look for better matching landmark set for the p1 spot with a US or AP label in otherSample such that the dP for the new pair is better than the current dP. |
private DbSpot |
findOptNNspot(CmpPairSecondary.OptimizedPair op)
findBetterAltPairedSpot() - look for better match kAlt in otherSample the dP for the new pair must be better than the old. |
private void |
rePairSpotsInAltLMset(CmpPairSecondary.OptimizedPair op)
rePairSpotsInAltLMset() - move Gi spot in LM[k] to LM[kAlt] by adjusting pointers and also adjust pairing statistics. |
void |
secondarySpotPairing()
secondarySpotPairing() - reanalyze & try to re-pair (US,AP) with adj LM sets. |
| Methods inherited from class CmpSpots.Cmpglb |
|---|
get2D, get2D, initGlb, resetGlb, set2D |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean NOT_NEEDED_WITH_MULT_LANDMARKS
| Constructor Detail |
|---|
public CmpPairSecondary()
| Method Detail |
|---|
public void secondarySpotPairing()
I.e. promote for (Rsample,Sample):
(US, US) or (AP, US) or (US, AP) or (AP, AP)
to (SP, SP) or (PP, PP).
In the FUTURE may add code to promote
(US,{SP,PP}) or ({SP,PP}, US)
to (AP,{SP,PP}) or ({SP,PP}, AP).
For all LM k which are valid search each spot in
LM set k in both G1 and G2 which is either US or AP. For each such
spot, search the valid alternative LM set k' for a dP and dL which
would make that spot a SP or PP. If one is found, then move the spot
from LM k set to LM k' and change the code accordingly. Also update
the landmark sets that the spot is in.
Note: circa 1982 - A suggestion by Bob Conner/NCI - not implemented but should be investigated because of its consequences: Use PPs in secondary pairing as well as US and APs. If this were done, then would have to relabel the PP's previous partner (possibly using relaxation techniques).
CmpAssign.getSpotLMSmappingStr(java.lang.String),
DbLM#cvLMSIdx2Name,
DbLM#getDumpLMsetSpotsStr,
Util#appendPRmsg,
findBetterAltPairedSpot(CmpSpots.CmpPairSecondary.OptimizedPair)private DbSpot findBetterAltPairedSpot(CmpPairSecondary.OptimizedPair op)
op - is the optimized pair object used for passing data on
the current optimized pair of spots
findOptNNspot(CmpSpots.CmpPairSecondary.OptimizedPair),
rePairSpotsInAltLMset(CmpSpots.CmpPairSecondary.OptimizedPair)private void rePairSpotsInAltLMset(CmpPairSecondary.OptimizedPair op)
op - is the optimized pair object used for passing data on
the current optimized pair of spotsprivate DbSpot findOptNNspot(CmpPairSecondary.OptimizedPair op)
op - is the optimized pair object used for passing data on
the current optimized pair of spots
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||