CmpSpots
Class Cmpglb

java.lang.Object
  extended by CmpSpots.Cmpglb
Direct Known Subclasses:
CmpAssign, CmpData, CmpIni, CmpPair, CmpPairSecondary, CmpSpots

public class Cmpglb
extends java.lang.Object

Class Cmpglb is the base class that specifies global variables used by all of the other CmpSpots 2D spot pairing classes.

This code was derived and refactored from GELLAB-II cmpgl2 C language files and the Open2Dprot CmpSpots program Java files.

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/.

Version:
$Date: 2005/12/22 00:26:57 $ $Revision: 1.30 $
Author:
P. Lemkin, NCI-Frederick, Frederick, MD, 21702
See Also:
Open2Dprot Home

Field Summary
static DbAccession acc
           
static java.lang.String accDatabaseFile
          full path Accession database file is xmlDir+accFile
static java.lang.String accFile
          Accession database file without the path.
static int accFormatMode
          Accession DB file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML
static int AP
          Ambiguous Pair - CmpSpots generated label
static java.lang.String applicationName
          name of the application
static java.lang.String[] argsV
          Total command list arg list originally set fro main(args)
static CmpAssign asgn
           
static java.lang.String banner
          The full version data banner with todays date
static java.lang.String bannerTitle
          The short version data banner for popup titles
static java.lang.String baseImageFileNameRsample
          Base file name is the original Rsample input image file without the directory and without the file extension.
static java.lang.String baseImageFileNameSample
          Base file name is the original sample input image file without the directory and without the file extension.
static java.lang.String batchDir
          Batch temporary data files used in exec'ing pipeline modules directory {projDir}/batch/
static java.lang.String cacheDir
          Cache database directory {projDir}/cache/
static java.lang.String cmpspotsURL
          Hardwired Open2Dprot server connection Switch to S.F.
static boolean commutativeLMSswitch
          The parsed of Command line switches
static boolean CONSOLE_FLAG
           
static int CP
          Composite Sample Database spot pair.
static CmpSpots cs
          instance of the main class
static CmpData data
           
static java.lang.String DATE
          CVS Version date
static DbLM dbLM
          Landmark part of the database
static DbSample dbRsample
          Rsample SSF state parameters read from files .
static DbSample dbSample
          Sample SSF state parameters read from files.
static int DBUG_ALL_SSF_SPOTS
          Debug code: print all SSF spots for both samples
static boolean DBUG_APPEND
          Debugging append text flag
static int DBUG_ASSIGN_CODES
          Debug code: Assign the pairing codes
static int DBUG_ASSIGN_SSF_TO_LMS
          Debug code: Assign the SSF spots to the landmark sets
static int DBUG_COMPUTE_RADII
          Debug code: compute the landmark sets 1/2 radii
static boolean DBUG_CONSOLE
          Debugging console text flag
static int DBUG_DUMP_LM_SET_SPOTS
          Debug code: dumpLMsetSpots()
static int DBUG_DUMP_PREFACE_EPILOGUE
          Debug code: dumpSPFpreface() and dumpStatisticsToSPFfile
static int DBUG_DUMP_SPF
          Debug code: dump the SPF data into the xml/ SPF file
static int DBUG_FIND_LMS_IN_SSFS
          Debug code: find landmarks in the SSF spot lists
static int DBUG_FREE_0200000
          Debug code: -free-
static int DBUG_FREE_04000
          Debug code: -free-
static int DBUG_INITIAL_SPOT_PAIRING
          Debug code: initialSpotPairing() and convolveG1G2()
static int DBUG_PRINT_AT
          Debug code: printAt() debugging
static int DBUG_PRINT_FULL_NODE_INFO
          Debug code: print full spot node info
static int DBUG_PRINT_LMS_SET_SPOTS
          Debug code: cvtLMsetSpotsToStr
static int DBUG_PRINT_LMS_SPOT_MAPPING
          Debug code: - print landmark DB and corresponding spot mapping
static int DBUG_READ_LANDMARKS
          Debug code: readLandmarks()
static int DBUG_READ_SSF_DATA
          Debug code: readSSFdata()
static int DBUG_SECONDARY_PAIRING
          Debug code: secondarySpotPairing()
static int DBUG_SPECIFIC_SPOTS
          Debug code: debug specific (hardwired) list of spots
static int DBUG_SWITCH_ANALYSIS
          Debug code: analyze command line switches
static boolean DBUG_SWITCHES
          Debugging switches
static int dBugBits
          -debug:bits
static java.lang.String dbugBitsHelpStr
          Debug bit options help for error messages
static int[] dBugLMsetList
          List of landmark set names to be debugged specified by -debug:bits,LMset#1,#2,...,#n (not letter).
static boolean debugSwitch
          The parsed of Command line switches
static boolean defaultSwitch
          The parsed of Command line switches
static java.lang.String[] demoFileList
          List of demo/ files downloadable from the server
static boolean demoSwitch
          The parsed of Command line switches
static java.lang.String[] docFileList
          List of documentation files downloadable from the server
static boolean dtdSwitch
          The parsed of Command line switches
static int EP
          Extrapolated Pair - by database program [FUTURE]
static java.lang.String fileSeparator
          File separator: Property("file.separator")
static FileIO fio
           
static float fourSqrtPi
          Constant 4*sqrt(PI) constant used in computing spot volume
static int GS
          Garbage Spot - generated by database or editing programs [FUTURE]
static CmpIni ini
           
static java.lang.String inPixFileRsample
          original Rsample input image file with full path and .tif, .tiff, .jpg, .gif or .ppx file extensions.
static java.lang.String inPixFileSample
          original Sample input image file with full path and .tif, .tiff, .jpg, .gif or .ppx file extensions.
static boolean inputFormatSwitch
          The parsed of Command line switches
static boolean isCsamplePrimeSwitch
          The parsed of Command line switches
static java.lang.String[] jarFileList
          List of program .jar files downloadable from the server
static java.lang.String[] jarLibrFileList
          List of library .jar files downloadable from the server
static java.lang.String landmarkDatabaseFile
          full path Landmark database file is xmlDir+lmsFile
static boolean latchLandmarkSpotSwitch
          The parsed of Command line switches
static java.lang.String[] legalImageFileExtens
          List of legal sample image file extensions
static int LM
          LandMark spot [could be virtual landmark] - by database program [FUTURE]
static java.awt.Color LMSETCOLOR
           
static java.lang.String lmsFile
          Landmark database file without the path.
static int lmsFormatMode
          Landmark DB file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML
static int MAX_LM_LATCH_THR
          MAX distance to use to latch a landmark DB (x,y) value to a SSF (x,y) spot value if the -latchLMS is set
static float maxLatchDist
          Max distance to latch a landmark to its closest spot if any.
static boolean nbrAltLMSSwitch
          The parsed of Command line switches
static int nDbugLMsetList
          size of dBugLMsetList[].
static boolean NEVER
          NEVER and CONSOLE_FLAG - debugging variables - must not be final!
static int nlmDB
          # landmarks read from landmark database file
static int nSwitches
          the number of Command line switches
static int OPTBKGROUND
          Shift background grayscale away from 0 so graphics show up better...
static java.lang.String osName
          name of this operating system: Property("os.name")
static CmpPair pair
           
static CmpPairSecondary pair2ndary
           
static ParamHash paramH
           
static PixReader pix
           
static char[] pix1
          Rsample or G1 source sample image
static char[] pix2
          Sample or G2 source sample image
static java.lang.String pixFileExtn
          Output images are either ".gif" or ".jpg" [TODO] change this to .jpg with JPEG writer.
static int PP
          Possible Pair - CmpSpots generated label
static java.lang.String ppxDir
          Original sample images directory {projDir}/ppx/
static CmpReportPopup pra
          generic popup report
static java.lang.String projDir
          Project directory that is either userDir, specified by -projDir:{path}, or extracted from the input file path it the image is in a "/ppx/" subdirectory.
static boolean projDirSwitch
          The parsed of Command line switches
static java.lang.String propertiesFile
          Current startup properties file containing default switches if it exists.
static boolean propertiesFileSwitch
          The parsed of Command line switches
static DbPairSamples ps
           
(package private) static boolean PUBLISH
          NOTE: overide the following debugging options if publishing on net.
static java.lang.String rdbmsDir
          RDBMS database directory {projDir}/rdbms/
static java.lang.String REVISION
          CVS Revision
static Roi rRoiDbug
          Rsample debug computing window used with -cwRdbug: to ignore spots outside of this window for Rsample SSF input files This is a debugging tool.
static boolean rRoiDbugSwitch
          The parsed of Command line switches
static int RSAMPLE
          The index for the Rsample (Reference Sample)
static java.lang.String rsampleName
          Name of Rsample G1 which includes the file extension but not the full path.
static boolean rsampleSwitch
          The parsed of Command line switches
static int SAMPLE
          The index for the Sample to be paired with the Rsample
static java.lang.String sampleName
          Name of Sample G2 which includes the file extension but not the full path.
static boolean sampleSwitch
          The parsed of Command line switches
static boolean secondaryPairingSwitch
          The parsed of Command line switches
static java.lang.String simplePixFileRsample
          Simple Rsample original Rsample input image file with .tif, .tiff, .jpg, .gif or .ppx file extensions.
static java.lang.String simplePixFileSample
          Simple original Sample input image file with .tif, .tiff, .jpg, .gif or .ppx file extensions.
static Sort sort
           
static int SP
          Sure Pair - CmpSpots generated label
static int spfFormatMode
          SPF output file modes: Allowed: IO_FORMAT_FULL, IO_FORMAT_GELLAB, IO_FORMAT_TAB_DELIM, IO_FORMAT_XML
static boolean spfFormatSwitch
          The parsed of Command line switches
static java.lang.String spfOutputFile
          full xml/ SPF (Sample Pairs File) output file name
static java.lang.String spfOutputPrefaceFile
          full tab-delim PREFACE xml/ CmpSpot (Sample Pairs File) full path
static java.awt.Color SPOTBOXCOLOR
           
static Roi sRoiDbug
          Sample debug computing window used with -cwSdbug: to ignore spots outside of this window for Sample SSF input files This is a debugging tool.
static boolean sRoiDbugSwitch
          The parsed of Command line switches
static java.lang.String ssfFileRsample
          SSF input file for G1 sample (i.e., Rsample)
static java.lang.String ssfFileSample
          SSF input file for G2 sample (i.e., Sample)
static int ssfFormatMode
          SSF input file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML
static java.lang.String ssfInputEpilogueFileRsample
          full tab-delim G1 EPILOGUE xml/Rsample SSF full path
static java.lang.String ssfInputEpilogueFileSample
          full tab-delim G2 EPILOGUE xml/Sample SSFfull path
static java.lang.String ssfInputFileRsample
          xml/ Rsample G1 SSF File full path
static java.lang.String ssfInputFileSample
          xml/ Sample G2 SSF full path
static java.lang.String ssfInputPrefaceFileRsample
          full tab-delim G1 PREFACE xml/Rsample SSF full path
static java.lang.String ssfInputPrefaceFileSample
          full tab-delim G2 PREFACE xml/Sample SSF full path
static long startTime
          starting time in epoch msec time
static java.lang.String[] sw
          Command line + CmpSpots.properties state switches
(package private) static boolean[] switchOptCBvalue
          The switchOptcCBvalue[0:nData-1] is used by the Report Popup that in turn may call PopupOptions.
(package private) static java.lang.String[] switchOptData
          The switchOptData[0:(2*nData)-1] is used by the Report Popup that in turn may call PopupOptions.
(package private) static java.lang.String[] switchOptValue
          The switchOptValue[0:nData-1] is used by the Report Popup that in turn may call PopupOptions.
static boolean thrPPswitch
          The parsed of Command line switches
static boolean thrSPswitch
          The parsed of Command line switches
static boolean timerSwitch
          The parsed of Command line switches
static java.lang.String tmpDir
          Tmp images directory {projDir}/tmp/
static boolean updateSwitch
          The parsed of Command line switches
static int US
          Unresolved Spot - CmpSpots generated label
static boolean usageSwitch
          The parsed of Command line switches
(package private) static boolean USE_DEMO_DATA
          Use the demo data by enabling the -demo flag and data.
static boolean useAccFileSwitch
          The parsed of Command line switches
static boolean useHistGUISwitch
          The parsed of Command line switches
static boolean useLmsFileSwitch
          The parsed of Command line switches
static boolean usePercentDensitySwitch
          The parsed of Command line switches
static boolean usePopupGUISwitch
          The parsed of Command line switches
static java.lang.String userDir
          current User directory: getProperty("user.dir")+fileSeparator
static Util util
          instance of utility class
static java.lang.String VERSION
          Manually define Version number
static java.lang.String xmlDir
          Directory {projDir}/xml/ use to accession, landmark, SSF, SPF, CSD and other database files.
 
Constructor Summary
Cmpglb()
           
 
Method Summary
static int get2D(char[] pix, int pixWidth, int x, int y)
          get2D() - get the pixel at pix(x,y) computed at (y+pixWidth+x)
static int get2D(int[] pix, int pixWidth, int x, int y)
          get2D() - get the pixel at pix(x,y) computed at (y+pixWidth+x)
static void initGlb()
          initGlb() - intialize any resources that must be set upon startup [TODO] Could move some of the above static defs here...
static void resetGlb()
          resetGlb() - reset any resources that must be reset for the next run of the program.
static int set2D(char[] pix, int pixWidth, int x, int y, int g)
          set2D() - save the pixel value g at pix(x,y) computed at (y+pixWidth+x)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cs

public static CmpSpots cs
instance of the main class


applicationName

public static final java.lang.String applicationName
name of the application

See Also:
Constant Field Values

PUBLISH

static boolean PUBLISH
NOTE: overide the following debugging options if publishing on net.


USE_DEMO_DATA

static boolean USE_DEMO_DATA
Use the demo data by enabling the -demo flag and data.


DBUG_APPEND

public static final boolean DBUG_APPEND
Debugging append text flag

See Also:
Constant Field Values

DBUG_SWITCHES

public static boolean DBUG_SWITCHES
Debugging switches


DBUG_CONSOLE

public static final boolean DBUG_CONSOLE
Debugging console text flag

See Also:
Constant Field Values

DATE

public static java.lang.String DATE
CVS Version date


REVISION

public static java.lang.String REVISION
CVS Revision


VERSION

public static java.lang.String VERSION
Manually define Version number


NEVER

public static boolean NEVER
NEVER and CONSOLE_FLAG - debugging variables - must not be final!


CONSOLE_FLAG

public static boolean CONSOLE_FLAG

cmpspotsURL

public static final java.lang.String cmpspotsURL
Hardwired Open2Dprot server connection Switch to S.F. when released on S.F.

See Also:
Constant Field Values

jarFileList

public static java.lang.String[] jarFileList
List of program .jar files downloadable from the server


jarLibrFileList

public static java.lang.String[] jarLibrFileList
List of library .jar files downloadable from the server


docFileList

public static java.lang.String[] docFileList
List of documentation files downloadable from the server


demoFileList

public static java.lang.String[] demoFileList
List of demo/ files downloadable from the server


MAX_LM_LATCH_THR

public static final int MAX_LM_LATCH_THR
MAX distance to use to latch a landmark DB (x,y) value to a SSF (x,y) spot value if the -latchLMS is set

See Also:
Constant Field Values

US

public static final int US
Unresolved Spot - CmpSpots generated label


SP

public static final int SP
Sure Pair - CmpSpots generated label


PP

public static final int PP
Possible Pair - CmpSpots generated label


AP

public static final int AP
Ambiguous Pair - CmpSpots generated label


EP

public static final int EP
Extrapolated Pair - by database program [FUTURE]


CP

public static final int CP
Composite Sample Database spot pair. The CSD' is a statistical representation of a set of effective sample replicates generated by the database program [FUTURE]


GS

public static final int GS
Garbage Spot - generated by database or editing programs [FUTURE]


LM

public static final int LM
LandMark spot [could be virtual landmark] - by database program [FUTURE]


DBUG_ASSIGN_CODES

public static final int DBUG_ASSIGN_CODES
Debug code: Assign the pairing codes

See Also:
Constant Field Values

DBUG_ASSIGN_SSF_TO_LMS

public static final int DBUG_ASSIGN_SSF_TO_LMS
Debug code: Assign the SSF spots to the landmark sets

See Also:
Constant Field Values

DBUG_COMPUTE_RADII

public static final int DBUG_COMPUTE_RADII
Debug code: compute the landmark sets 1/2 radii

See Also:
Constant Field Values

DBUG_DUMP_SPF

public static final int DBUG_DUMP_SPF
Debug code: dump the SPF data into the xml/ SPF file

See Also:
Constant Field Values

DBUG_FIND_LMS_IN_SSFS

public static final int DBUG_FIND_LMS_IN_SSFS
Debug code: find landmarks in the SSF spot lists

See Also:
Constant Field Values

DBUG_SWITCH_ANALYSIS

public static final int DBUG_SWITCH_ANALYSIS
Debug code: analyze command line switches

See Also:
Constant Field Values

DBUG_INITIAL_SPOT_PAIRING

public static final int DBUG_INITIAL_SPOT_PAIRING
Debug code: initialSpotPairing() and convolveG1G2()

See Also:
Constant Field Values

DBUG_PRINT_LMS_SPOT_MAPPING

public static final int DBUG_PRINT_LMS_SPOT_MAPPING
Debug code: - print landmark DB and corresponding spot mapping

See Also:
Constant Field Values

DBUG_PRINT_AT

public static final int DBUG_PRINT_AT
Debug code: printAt() debugging

See Also:
Constant Field Values

DBUG_PRINT_LMS_SET_SPOTS

public static final int DBUG_PRINT_LMS_SET_SPOTS
Debug code: cvtLMsetSpotsToStr

See Also:
Constant Field Values

DBUG_FREE_04000

public static final int DBUG_FREE_04000
Debug code: -free-

See Also:
Constant Field Values

DBUG_ALL_SSF_SPOTS

public static final int DBUG_ALL_SSF_SPOTS
Debug code: print all SSF spots for both samples

See Also:
Constant Field Values

DBUG_READ_SSF_DATA

public static final int DBUG_READ_SSF_DATA
Debug code: readSSFdata()

See Also:
Constant Field Values

DBUG_READ_LANDMARKS

public static final int DBUG_READ_LANDMARKS
Debug code: readLandmarks()

See Also:
Constant Field Values

DBUG_SECONDARY_PAIRING

public static final int DBUG_SECONDARY_PAIRING
Debug code: secondarySpotPairing()

See Also:
Constant Field Values

DBUG_FREE_0200000

public static final int DBUG_FREE_0200000
Debug code: -free-

See Also:
Constant Field Values

DBUG_DUMP_LM_SET_SPOTS

public static final int DBUG_DUMP_LM_SET_SPOTS
Debug code: dumpLMsetSpots()

See Also:
Constant Field Values

DBUG_DUMP_PREFACE_EPILOGUE

public static final int DBUG_DUMP_PREFACE_EPILOGUE
Debug code: dumpSPFpreface() and dumpStatisticsToSPFfile

See Also:
Constant Field Values

DBUG_PRINT_FULL_NODE_INFO

public static final int DBUG_PRINT_FULL_NODE_INFO
Debug code: print full spot node info

See Also:
Constant Field Values

DBUG_SPECIFIC_SPOTS

public static final int DBUG_SPECIFIC_SPOTS
Debug code: debug specific (hardwired) list of spots

See Also:
Constant Field Values

dbugBitsHelpStr

public static final java.lang.String dbugBitsHelpStr
Debug bit options help for error messages

See Also:
Constant Field Values

OPTBKGROUND

public static final int OPTBKGROUND
Shift background grayscale away from 0 so graphics show up better... Shift gray values after read image.

See Also:
Constant Field Values

LMSETCOLOR

public static final java.awt.Color LMSETCOLOR

SPOTBOXCOLOR

public static final java.awt.Color SPOTBOXCOLOR

RSAMPLE

public static final int RSAMPLE
The index for the Rsample (Reference Sample)


SAMPLE

public static final int SAMPLE
The index for the Sample to be paired with the Rsample


spfFormatMode

public static int spfFormatMode
SPF output file modes: Allowed: IO_FORMAT_FULL, IO_FORMAT_GELLAB, IO_FORMAT_TAB_DELIM, IO_FORMAT_XML


ssfFormatMode

public static int ssfFormatMode
SSF input file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML


accFormatMode

public static int accFormatMode
Accession DB file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML


lmsFormatMode

public static int lmsFormatMode
Landmark DB file modes: Allowed: IO_FORMAT_TAB_DELIM, IO_FORMAT_XML


acc

public static DbAccession acc

asgn

public static CmpAssign asgn

data

public static CmpData data

fio

public static FileIO fio

pair

public static CmpPair pair

pair2ndary

public static CmpPairSecondary pair2ndary

ini

public static CmpIni ini

ps

public static DbPairSamples ps

paramH

public static ParamHash paramH

pix

public static PixReader pix

sort

public static Sort sort

util

public static Util util
instance of utility class


pra

public static CmpReportPopup pra
generic popup report


dbRsample

public static DbSample dbRsample
Rsample SSF state parameters read from files .


dbSample

public static DbSample dbSample
Sample SSF state parameters read from files.


dbLM

public static DbLM dbLM
Landmark part of the database


bannerTitle

public static java.lang.String bannerTitle
The short version data banner for popup titles


banner

public static java.lang.String banner
The full version data banner with todays date


rsampleName

public static java.lang.String rsampleName
Name of Rsample G1 which includes the file extension but not the full path.


sampleName

public static java.lang.String sampleName
Name of Sample G2 which includes the file extension but not the full path.


legalImageFileExtens

public static final java.lang.String[] legalImageFileExtens
List of legal sample image file extensions


accDatabaseFile

public static java.lang.String accDatabaseFile
full path Accession database file is xmlDir+accFile


accFile

public static java.lang.String accFile
Accession database file without the path. From -accessionFile:


landmarkDatabaseFile

public static java.lang.String landmarkDatabaseFile
full path Landmark database file is xmlDir+lmsFile


lmsFile

public static java.lang.String lmsFile
Landmark database file without the path. From -landmarkFile:


ssfFileRsample

public static java.lang.String ssfFileRsample
SSF input file for G1 sample (i.e., Rsample)


ssfFileSample

public static java.lang.String ssfFileSample
SSF input file for G2 sample (i.e., Sample)


spfOutputFile

public static java.lang.String spfOutputFile
full xml/ SPF (Sample Pairs File) output file name


spfOutputPrefaceFile

public static java.lang.String spfOutputPrefaceFile
full tab-delim PREFACE xml/ CmpSpot (Sample Pairs File) full path


propertiesFile

public static java.lang.String propertiesFile
Current startup properties file containing default switches if it exists. Set by -propertiesFile:< new file >


pixFileExtn

public static java.lang.String pixFileExtn
Output images are either ".gif" or ".jpg" [TODO] change this to .jpg with JPEG writer.


simplePixFileRsample

public static java.lang.String simplePixFileRsample
Simple Rsample original Rsample input image file with .tif, .tiff, .jpg, .gif or .ppx file extensions.


simplePixFileSample

public static java.lang.String simplePixFileSample
Simple original Sample input image file with .tif, .tiff, .jpg, .gif or .ppx file extensions.


inPixFileRsample

public static java.lang.String inPixFileRsample
original Rsample input image file with full path and .tif, .tiff, .jpg, .gif or .ppx file extensions.


inPixFileSample

public static java.lang.String inPixFileSample
original Sample input image file with full path and .tif, .tiff, .jpg, .gif or .ppx file extensions.


baseImageFileNameRsample

public static java.lang.String baseImageFileNameRsample
Base file name is the original Rsample input image file without the directory and without the file extension. Derived from inPixFileRsample.


baseImageFileNameSample

public static java.lang.String baseImageFileNameSample
Base file name is the original sample input image file without the directory and without the file extension. Derived from inPixFileSample.


ssfInputFileRsample

public static java.lang.String ssfInputFileRsample
xml/ Rsample G1 SSF File full path


ssfInputPrefaceFileRsample

public static java.lang.String ssfInputPrefaceFileRsample
full tab-delim G1 PREFACE xml/Rsample SSF full path


ssfInputEpilogueFileRsample

public static java.lang.String ssfInputEpilogueFileRsample
full tab-delim G1 EPILOGUE xml/Rsample SSF full path


ssfInputFileSample

public static java.lang.String ssfInputFileSample
xml/ Sample G2 SSF full path


ssfInputPrefaceFileSample

public static java.lang.String ssfInputPrefaceFileSample
full tab-delim G2 PREFACE xml/Sample SSF full path


ssfInputEpilogueFileSample

public static java.lang.String ssfInputEpilogueFileSample
full tab-delim G2 EPILOGUE xml/Sample SSFfull path


osName

public static java.lang.String osName
name of this operating system: Property("os.name")


fileSeparator

public static java.lang.String fileSeparator
File separator: Property("file.separator")


userDir

public static java.lang.String userDir
current User directory: getProperty("user.dir")+fileSeparator


projDir

public static java.lang.String projDir
Project directory that is either userDir, specified by -projDir:{path}, or extracted from the input file path it the image is in a "/ppx/" subdirectory.


batchDir

public static java.lang.String batchDir
Batch temporary data files used in exec'ing pipeline modules directory {projDir}/batch/


cacheDir

public static java.lang.String cacheDir
Cache database directory {projDir}/cache/


ppxDir

public static java.lang.String ppxDir
Original sample images directory {projDir}/ppx/


rdbmsDir

public static java.lang.String rdbmsDir
RDBMS database directory {projDir}/rdbms/


tmpDir

public static java.lang.String tmpDir
Tmp images directory {projDir}/tmp/


xmlDir

public static java.lang.String xmlDir
Directory {projDir}/xml/ use to accession, landmark, SSF, SPF, CSD and other database files.


argsV

public static java.lang.String[] argsV
Total command list arg list originally set fro main(args)


sw

public static java.lang.String[] sw
Command line + CmpSpots.properties state switches


nSwitches

public static int nSwitches
the number of Command line switches


useAccFileSwitch

public static boolean useAccFileSwitch
The parsed of Command line switches


nbrAltLMSSwitch

public static boolean nbrAltLMSSwitch
The parsed of Command line switches


isCsamplePrimeSwitch

public static boolean isCsamplePrimeSwitch
The parsed of Command line switches


commutativeLMSswitch

public static boolean commutativeLMSswitch
The parsed of Command line switches


sRoiDbugSwitch

public static boolean sRoiDbugSwitch
The parsed of Command line switches


rRoiDbugSwitch

public static boolean rRoiDbugSwitch
The parsed of Command line switches


debugSwitch

public static boolean debugSwitch
The parsed of Command line switches


defaultSwitch

public static boolean defaultSwitch
The parsed of Command line switches


demoSwitch

public static boolean demoSwitch
The parsed of Command line switches


dtdSwitch

public static boolean dtdSwitch
The parsed of Command line switches


spfFormatSwitch

public static boolean spfFormatSwitch
The parsed of Command line switches


usePopupGUISwitch

public static boolean usePopupGUISwitch
The parsed of Command line switches


useHistGUISwitch

public static boolean useHistGUISwitch
The parsed of Command line switches


inputFormatSwitch

public static boolean inputFormatSwitch
The parsed of Command line switches


useLmsFileSwitch

public static boolean useLmsFileSwitch
The parsed of Command line switches


latchLandmarkSpotSwitch

public static boolean latchLandmarkSpotSwitch
The parsed of Command line switches


usePercentDensitySwitch

public static boolean usePercentDensitySwitch
The parsed of Command line switches


projDirSwitch

public static boolean projDirSwitch
The parsed of Command line switches


propertiesFileSwitch

public static boolean propertiesFileSwitch
The parsed of Command line switches


rsampleSwitch

public static boolean rsampleSwitch
The parsed of Command line switches


sampleSwitch

public static boolean sampleSwitch
The parsed of Command line switches


secondaryPairingSwitch

public static boolean secondaryPairingSwitch
The parsed of Command line switches


thrSPswitch

public static boolean thrSPswitch
The parsed of Command line switches


thrPPswitch

public static boolean thrPPswitch
The parsed of Command line switches


timerSwitch

public static boolean timerSwitch
The parsed of Command line switches


updateSwitch

public static boolean updateSwitch
The parsed of Command line switches


usageSwitch

public static boolean usageSwitch
The parsed of Command line switches


dBugBits

public static int dBugBits
-debug:bits


dBugLMsetList

public static int[] dBugLMsetList
List of landmark set names to be debugged specified by -debug:bits,LMset#1,#2,...,#n (not letter). If null, there is no list.


nDbugLMsetList

public static int nDbugLMsetList
size of dBugLMsetList[]. It is 0 if not list


rRoiDbug

public static Roi rRoiDbug
Rsample debug computing window used with -cwRdbug: to ignore spots outside of this window for Rsample SSF input files This is a debugging tool. (Default is -nocwRdbug).


sRoiDbug

public static Roi sRoiDbug
Sample debug computing window used with -cwSdbug: to ignore spots outside of this window for Sample SSF input files This is a debugging tool. (Default is -nocwSdbug).


fourSqrtPi

public static float fourSqrtPi
Constant 4*sqrt(PI) constant used in computing spot volume


maxLatchDist

public static float maxLatchDist
Max distance to latch a landmark to its closest spot if any. Set by -latchLandMarkDistance:. If not defined, it defaults to dt1Threshold


nlmDB

public static int nlmDB
# landmarks read from landmark database file


startTime

public static long startTime
starting time in epoch msec time


pix1

public static char[] pix1
Rsample or G1 source sample image


pix2

public static char[] pix2
Sample or G2 source sample image


switchOptData

static java.lang.String[] switchOptData
The switchOptData[0:(2*nData)-1] is used by the Report Popup that in turn may call PopupOptions. It contains pairs of (prompt, helpStr) data. If the prompt data has a "-", then make a CheckBox (switchOptCBvalue), else it is a Label with the prompt data. If the user data is not null, then make a TextField with this user (switchOptValue) data on the right else make an empty Label.


switchOptCBvalue

static boolean[] switchOptCBvalue
The switchOptcCBvalue[0:nData-1] is used by the Report Popup that in turn may call PopupOptions. It contains boolean values of switch data use for Checkboxes.


switchOptValue

static java.lang.String[] switchOptValue
The switchOptValue[0:nData-1] is used by the Report Popup that in turn may call PopupOptions. It contains String values of associated switch data.

Constructor Detail

Cmpglb

public Cmpglb()
Method Detail

initGlb

public static void initGlb()
initGlb() - intialize any resources that must be set upon startup [TODO] Could move some of the above static defs here...


resetGlb

public static void resetGlb()
resetGlb() - reset any resources that must be reset for the next run of the program. [TODO] 1) Could move a subset of the above static defs here... 2) Some of this should be done in DbLM.


get2D

public static final int get2D(int[] pix,
                              int pixWidth,
                              int x,
                              int y)
get2D() - get the pixel at pix(x,y) computed at (y+pixWidth+x)

Parameters:
pix - is the image buffer
pixWidth - is width of image
x - of pixel
y - of pixel
Returns:
true if succeed

get2D

public static final int get2D(char[] pix,
                              int pixWidth,
                              int x,
                              int y)
get2D() - get the pixel at pix(x,y) computed at (y+pixWidth+x)

Parameters:
pix - is the image buffer
pixWidth - is width of image
x - of pixel
y - of pixel
Returns:
true if succeed

set2D

public static final int set2D(char[] pix,
                              int pixWidth,
                              int x,
                              int y,
                              int g)
set2D() - save the pixel value g at pix(x,y) computed at (y+pixWidth+x)

Parameters:
pix - is the image buffer
pixWidth - is width of image
x - of pixel
y - of pixel
g - is new int value to save
Returns:
g