Class XPathHelper
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.helper_classes.XPathHelper
- All Implemented Interfaces:
HelperClass
public class XPathHelper extends Object implements HelperClass
- Author:
- Christian Klukas (c) 2004 IPK-Gatersleben
- Recent revisions:
- 2.7.0
-
Field Summary
Fields Modifier and Type Field Description static String
noGivenTimeStringConstant
-
Constructor Summary
Constructors Constructor Description XPathHelper()
-
Method Summary
Modifier and Type Method Description static int
getAlternativeIdCount(Node xmlSubstanceNode, boolean includeEmpty)
static ArrayList<String>
getAlternativeIDs(Node xmlSubstanceNode)
static Node
getChildNode(Node node, String childNodeName)
static String
getCoordinatorFromLineNode(Node linenode)
static ArrayList<Node>
getDataImageNodes(Document doc, Integer sampleID)
static Double[]
getDataList(Node sampleNode)
static ArrayList<Node>
getDataNetworkNodes(Document doc, Integer sampleID)
static ArrayList<Node>
getDataNodes(Document doc, Integer sampleID)
static ArrayList<Node>
getDataVolumeNodes(Document doc, Integer sampleID)
static String
getExpAndSeriesName(String expName, String seriesName)
static String
getExperimentNameFromLineNode(Node linenode)
static int
getLineCountForSubstanceNode(Node n)
static int
getMaximumAlternativeIDidx(Node xmlSubstanceNode)
Returns the highest index number of a alternative identifier.static ArrayList<Node>
getPlantNodes(Document experimentData)
static String[]
getPlants(Document experimentData)
Get a list of analyzed plants for the experiment.static int
getSampleCountForSubstanceNode(Node n)
static ArrayList<Node>
getSampleNodes(Document doc, Integer plantID, String substanceID)
static String
getSampleTime(Node sampleNode)
static String
getSampleTimeUnit(Node sampleNode)
static int
getSampleTimeValueForComparison(Node sampleNode)
static String
getSeriesIDforLine(Node linenode)
static String
getSeriesNameForLine(Node linenode)
static String
getSeriesNameFromSpeciesGenotypeAndTreatment(String linename, String linegenotype, String linetreatment)
static String
getStartDateFromLineNode(Node linenode)
static ArrayList<Node>
getSubstanceNodes(Document document)
static String
getSumOfValues(Document mydoc)
static int
getTimeCountForSubstanceNode(Node nn)
static String[]
getTimes(Document experimentData)
Get the possible time values that are stored in an experiment.static boolean
isReplicateDataMissing(Document mydoc)
static int
processAvailableStdDevSubstanceData(Document mydoc, String substanceStdDevEndID)
(1) search substance names which end withsubstanceStdDevEndID
(2) for each substance get all experiment/genotype/line/time combinations enclosed extract average sample values (3) use average sample values as sample stddev for corresponding substance/sample data whose substance name is the same as the one mentioned above, but without the trailingsubstanceStdDevEndID
id.static void
setTtestInfoSampleIsReference(Node sampleNode)
static void
setTTestSetSampleSignificane(Node sampleNode, boolean different, double level)
static boolean
ttestIsH1(Node sampleNode)
static boolean
tTestIsReference(Node sampleNode)
static void
tTestSetSampleAsReference(Node sampleNode)
static void
tTestSetSampleSignificane(Node sampleNode, boolean different)
-
Field Details
-
noGivenTimeStringConstant
-
-
Constructor Details
-
XPathHelper
public XPathHelper()
-
-
Method Details
-
getSampleCountForSubstanceNode
-
getLineCountForSubstanceNode
-
getTimeCountForSubstanceNode
-
getTimes
Get the possible time values that are stored in an experiment.- Parameters:
experimentData
-- Returns:
-
getPlants
Get a list of analyzed plants for the experiment.- Parameters:
experimentData
-- Returns:
-
getPlantNodes
-
getSubstanceNodes
-
getChildNode
-
getSumOfValues
-
setTtestInfoSampleIsReference
-
getDataList
-
getSampleTimeValueForComparison
-
getSampleTime
- Parameters:
sampleNode
-- Returns:
- The time and time unit from a sample. e.g. "day 1" or "week 2". Returns "" if no time information is avalilable.
-
getSampleTimeUnit
- Parameters:
sampleNode
-- Returns:
- The time and time unit from a sample. e.g. "day 1" or "week 2". Returns "" if no time information is avalilable.
-
tTestSetSampleAsReference
- Parameters:
sampleNode
-
-
tTestSetSampleSignificane
-
setTTestSetSampleSignificane
-
tTestIsReference
- Parameters:
samplenode
-- Returns:
-
getSeriesNameForLine
- Parameters:
linenode
-- Returns:
-
getSeriesNameFromSpeciesGenotypeAndTreatment
-
ttestIsH1
- Parameters:
samplenode
-- Returns:
-
getExpAndSeriesName
-
getExperimentNameFromLineNode
-
getCoordinatorFromLineNode
-
getStartDateFromLineNode
-
getSeriesIDforLine
-
processAvailableStdDevSubstanceData
(1) search substance names which end withsubstanceStdDevEndID
(2) for each substance get all experiment/genotype/line/time combinations enclosed extract average sample values (3) use average sample values as sample stddev for corresponding substance/sample data whose substance name is the same as the one mentioned above, but without the trailingsubstanceStdDevEndID
id.- Parameters:
mydoc
-substanceStdDevEndID
-- Returns:
- Number of processed "std-dev substances"
-
isReplicateDataMissing
-
getSampleNodes
-
getDataNodes
-
getDataVolumeNodes
-
getDataNetworkNodes
-
getDataImageNodes
-
getMaximumAlternativeIDidx
Returns the highest index number of a alternative identifier. Processes all attributes and looks for attribute names that start with "name".- Parameters:
xmlSubstanceNode
-- Returns:
- The highest index of a alternative identifier attribute. Returns -1 in case no alternative identifier is currently assigned.
-
getAlternativeIdCount
-
getAlternativeIDs
-