Modifier and Type | Field and Description |
---|---|
static int |
MAP_MISSING
Stand for missing file in experiment.
|
static int |
PAQP_INVALID
Stand for bad paQP experiment that has some files missing.
|
static int |
PAQP_VALID
Stand for good paQP experiment that has all files.
|
static int |
QCONF_INVALID
Stand for bad QCONF file that can not be loaded.
|
static String |
SEPARATOR
Separator for error messages.
|
static int |
SNQP_MISSING
Stand for missing file in experiment.
|
static int |
STQP_MISSING
Stand for missing file in experiment.
|
Constructor and Description |
---|
QconfLoader()
Default constructor.
|
QconfLoader(File file)
Parameterised constructor.
|
QconfLoader(File file,
String fileExt)
Parametrised constructor.
|
Modifier and Type | Method and Description |
---|---|
ANAParamCollection |
getANA()
Query for ANA object.
|
BOAState |
getBOA()
Query for BOA object.
|
OutlinesCollection |
getEcmm()
Query for ECMM object.
|
ij.ImagePlus |
getImage()
Try to load image associated with QCONF or paQP file.
|
STmap[] |
getQ()
Query for Q object.
|
Path |
getQconfFile()
Return path to loaded configuration file.
|
QParams |
getQp()
Return QParams object.
|
StatsCollection |
getStats()
Query for Stats object.
|
boolean |
isANAPresent()
Just decoder of
DataContainer.validateDataContainer() . |
boolean |
isBOAPresent()
Just decoder of
DataContainer.validateDataContainer() . |
boolean |
isECMMPresent()
Just decoder of
DataContainer.validateDataContainer() . |
int |
isFileLoaded()
Return type of loaded file or 0 if not loaded yet.
|
boolean |
isQPresent()
Just decoder of
DataContainer.validateDataContainer() . |
boolean |
isStatsPresent()
Just decoder of
DataContainer.validateDataContainer() . |
static Map<Integer,String> |
validatePaqp(Path firstFile)
Perform blind validation of accessible files without reading them.
|
int |
validateQconf()
Validate loaded QCONF file in accordance to modules run on it.
|
public static final int QCONF_INVALID
public static final int PAQP_INVALID
public static final int PAQP_VALID
public static final int SNQP_MISSING
public static final int STQP_MISSING
public static final int MAP_MISSING
public static final String SEPARATOR
validatePaqp(Path)
,
Constant Field Valuespublic QconfLoader() throws QuimpException
Bring file dialog to load QCONF.
QuimpException
- when QCONF can not be loadedpublic QconfLoader(File file, String fileExt) throws QuimpException
file
- File *.paQP/QCONF. If null user is asked for this file.fileExt
- pre-selection extension or null to use default selected in QuimP_Bar.QuimpException
- when file can not be loadedpublic QconfLoader(File file) throws QuimpException
file
- File *.paQP/QCONF. If null user is asked for this fileQuimpException
- when file can not be loadedpublic ij.ImagePlus getImage()
If image has not been found, user is being asked to point relevant file. If file is loaded
from disk it updates orgFile in BOAState.BOAp
.
If run in testing mode it tries to load an image from folder where QCONF is. Do not display UI.
public int validateQconf()
For certain cases this method may not be able to verify if QCONF is valid. This may happen if QCONF was obtained from paQP files, where some of experiment files were missing (this should no happen).
DataContainer.validateDataContainer()
flags otherwise
- may return defective QCONF with warnings.
public static Map<Integer,String> validatePaqp(Path firstFile)
Check if for each cell in same experiment (identified by provided full name /path/name_0.paQP) all other corresponding files exist.
firstFile
- full path to first paQP file in experimentpublic boolean isBOAPresent()
DataContainer.validateDataContainer()
.public boolean isECMMPresent()
DataContainer.validateDataContainer()
.public boolean isANAPresent()
DataContainer.validateDataContainer()
.public boolean isQPresent()
DataContainer.validateDataContainer()
.public boolean isStatsPresent()
DataContainer.validateDataContainer()
.public BOAState getBOA() throws QuimpException
QuimpException
- when there is no such object in file or old format is used.public OutlinesCollection getEcmm() throws QuimpException
QuimpException
- when there is no such object in file or old format is used.public ANAParamCollection getANA() throws QuimpException
QuimpException
- when there is no such object in file or old format is used.public STmap[] getQ() throws QuimpException
QuimpException
- when there is no such object in file or old format is used.public StatsCollection getStats() throws QuimpException
QuimpException
- when there is no such object in file or old format is used.public QParams getQp()
public int isFileLoaded()
QCONF_INVALID
or QParams.NEW_QUIMP
,
QParams.QUIMP_11
public Path getQconfFile()
QParamsQconf.getParamFile()
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.