|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.overview.ExperimentOverview
GenericOverview
instead
public class ExperimentOverview
Get a complete overview of an experiment including the raw data, biomaterials, array designs and more that have been used in it. The structure will also be validated to make sure the experiment makes sense. Validation rules include:
getValidators()
to get all validators and getValidationOptions()
to specify if a certain validation rule should be ignored, cause a warning or an
error.
Field Summary | |
---|---|
private Map<String,Node> |
allNodes
Deprecated. |
private Map<Object,Set<Annotatable>> |
annotatableParents
Deprecated. |
private Experiment |
experiment
Deprecated. |
private List<Failure> |
failures
Deprecated. |
private Map<Item,Set<AnnotationType>> |
miameAnnotations
Deprecated. |
private Project |
project
Deprecated. |
private Node |
rootNode
Deprecated. |
private Map<String,Node> |
usedHybArrays
Deprecated. |
private ValidationOptions |
validationOptions
Deprecated. |
Constructor Summary | |
---|---|
private |
ExperimentOverview(Experiment experiment,
Project project)
Deprecated. Create a new overview for the experiment using defaults from the specified project. |
Method Summary | ||
---|---|---|
private Node |
addAnnotations(DbControl dc,
Node parentNode)
Deprecated. Add annotations child node to an annotatable item. |
|
private Node |
addArrayBatch(DbControl dc,
Node slideNode)
Deprecated. Add an array batch child node to an array slide. |
|
private Node |
addArrayDesign(DbControl dc,
Node parentNode)
Deprecated. Add an array design child node to a raw bioassay or array batch. |
|
private Node |
addArraySlide(DbControl dc,
Node hybNode)
Deprecated. Add an array slide child node to a hybridization. |
|
private Node |
addBioSource(DbControl dc,
Node sampleNode)
Deprecated. Add a biosource child node to a non-pooled sample. |
|
private Node |
addDataFiles(DbControl dc,
Node parentNode)
Deprecated. Add data files child node to a FileStoreEnabled item. |
|
private Node |
addExperimentalFactors(DbControl dc,
Node rootNode)
Deprecated. Add experimental factors child node to the experiment node. |
|
private Node |
addExtract(DbControl dc,
Node parentNode,
Extract extract)
Deprecated. Add an extract child node to a non-pooled labeled extract. |
|
private Node |
addHardware(DbControl dc,
Node parentNode,
String hardwareType)
Deprecated. Add a hardware child node to items with hardware (scanner, print robot, hyb. |
|
private Node |
addHybridization(DbControl dc,
Node scanNode,
Node rawBioAssayNode)
Deprecated. Add a hybridization child node to a scan. |
|
private Node |
addImage(DbControl dc,
Node imagesNode,
Image image)
Deprecated. Add an image child node to the images folder. |
|
private Node |
addImages(DbControl dc,
Node scanNode)
Deprecated. Add images child node to a scan node. |
|
private Node |
addLabeledExtract(DbControl dc,
Node parentNode,
LabeledExtract le)
Deprecated. Add a labeled extract child node to the labeled extracts folder. |
|
private Node |
addLabeledExtracts(DbControl dc,
Node hybNode,
Node rawBioAssayNode)
Deprecated. Add labeled extracts child node to a hybridization node. |
|
private Node |
addPlatform(DbControl dc,
Node parentNode)
Deprecated. Add a platform / variant child node to items with platform (raw bioassay and array design). |
|
private void |
addPooledExtracts(DbControl dc,
Node parentNode)
Deprecated. Add extract child nodes that are the source extracts of a pooled extract. |
|
private void |
addPooledLabeledExtracts(DbControl dc,
Node parentNode)
Deprecated. Add labeled extract child nodes that are the source labeled extracts of a pooled labeled extract |
|
private void |
addPooledSamples(DbControl dc,
Node parentNode)
Deprecated. Add sample child nodes that are the source samples of a pooled sample. |
|
private Node |
addProtocol(DbControl dc,
Node parentNode,
Project.Default defaultProtocol)
Deprecated. Add a protocol child node to items with a protocol. |
|
private Node |
addProtocolParameters(DbControl dc,
Node protocolNode)
Deprecated. Add protocol parameters child node to a protocol. |
|
private Node |
addRawBioAssay(DbControl dc,
Node rawBioAssaysNode,
RawBioAssay rba)
Deprecated. Add a raw bioassay child node to the rawbioassays folder. |
|
private Node |
addRawBioAssays(DbControl dc,
Node rootNode)
Deprecated. Add raw bioassays child node to the experiment node. |
|
private Node |
addSample(DbControl dc,
Node parentNode,
Sample sample)
Deprecated. Add a sample child node to a non-pooled extract. |
|
private Node |
addScan(DbControl dc,
Node rawBioAssayNode)
Deprecated. Add a scan child node to a raw bioassay. |
|
private Node |
addSoftware(DbControl dc,
Node parentNode)
Deprecated. Add a software child node to a raw bioassay. |
|
private void |
cacheChildNodes(Node node)
Deprecated. |
|
private void |
generateOverview(DbControl dc)
Deprecated. Generates the overview and validation. |
|
Set<Annotatable> |
getAnnotatableParents(Annotatable item)
Deprecated. Get all annotatatable parents, including parents of parents, of the given annotatable item. |
|
private Set<Annotatable> |
getAnnotatableParents(Annotatable current,
Annotatable root)
Deprecated. |
|
Experiment |
getExperiment()
Deprecated. Get the experiment of this overview. |
|
List<Failure> |
getFailures()
Deprecated. Get all failures generated by validation rules. |
|
Set<AnnotationType> |
getMiameAnnotationTypes(Item itemType)
Deprecated. Get the annotation types that have the 'Required for MIAME' flag set to true and is enabled for the specified item type. |
|
Node |
getNode(String nodeId)
Deprecated. Get the node with the given ID. |
|
static ExperimentOverview |
getOverview(Experiment experiment,
Project project)
Deprecated. (In 2.10) Use OverviewUtil.getNewOrCurrentOverview(DbControl, BasicItem, Project) instead |
|
Project |
getProject()
Deprecated. Get the project of this overview (may be null). |
|
Node |
getRootNode()
Deprecated. Get the root node (ie. the experiment node). |
|
ValidationOptions |
getValidationOptions()
Deprecated. Get the validation options currently in use. |
|
static Presets |
getValidationPresets(SessionControl sc)
Deprecated. (In 2.10) Use OverviewUtil.getValidationPresets(SessionControl) instead |
|
static Map<String,List<Validator>> |
getValidators()
Deprecated. (In 2.10) Use OverviewUtil.getValidators() instead |
|
private
|
initQuery(ItemQuery<T> query,
String sortAlias,
String sortProperty)
Deprecated. Set include options and sorting order for a query. |
|
void |
reset(DbControl dc)
Deprecated. Reset the overview, regenerate the entire structure and revalidate everything. |
|
static void |
saveValidationPresets(SessionControl sc)
Deprecated. In 2.10, use OverviewUtil.saveValidationPresets(SessionControl) instead |
|
void |
updateFailureCountOnNodes()
Deprecated. Updates the failure count (warnings and errors) on all nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Experiment experiment
private Project project
private Node rootNode
private ValidationOptions validationOptions
private List<Failure> failures
private Map<String,Node> allNodes
private Map<Item,Set<AnnotationType>> miameAnnotations
private Map<Object,Set<Annotatable>> annotatableParents
private Map<String,Node> usedHybArrays
Constructor Detail |
---|
private ExperimentOverview(Experiment experiment, Project project)
Method Detail |
---|
public static Map<String,List<Validator>> getValidators()
OverviewUtil.getValidators()
instead
public static ExperimentOverview getOverview(Experiment experiment, Project project)
OverviewUtil.getNewOrCurrentOverview(DbControl, BasicItem, Project)
instead
SessionControl
:s session settings.
experiment
- The experiment to get the overview forproject
- Default from this project will be used if new overview need to be created.
ExperimentOverview
objectpublic static Presets getValidationPresets(SessionControl sc)
OverviewUtil.getValidationPresets(SessionControl)
instead
public static void saveValidationPresets(SessionControl sc)
OverviewUtil.saveValidationPresets(SessionControl)
instead
public void reset(DbControl dc)
updateFailureCountOnNodes()
method instead if only the validation options has changed. That method
is a lot quicker and doesn't require any database access.
dc
- The DbControl to use for database accessprivate void generateOverview(DbControl dc)
public Experiment getExperiment()
public Project getProject()
public Set<AnnotationType> getMiameAnnotationTypes(Item itemType)
itemType
- The item type
public Set<Annotatable> getAnnotatableParents(Annotatable item)
item
- The child item
private Set<Annotatable> getAnnotatableParents(Annotatable current, Annotatable root)
public ValidationOptions getValidationOptions()
public Node getRootNode()
public void updateFailureCountOnNodes()
reset(DbControl)
method instead. That
method rebuilds the entire overview.
private void cacheChildNodes(Node node)
public Node getNode(String nodeId)
nodeId
- The ID of the node
public List<Failure> getFailures()
ValidationOptions.getSeverity(Validator)
,
Failure.getValidator()
private Node addExperimentalFactors(DbControl dc, Node rootNode)
experimental.factors
and inside it nodes with names experimental.factor.ID
where ID
is the ID of the AnnotationType
used as experimental factor.
Experiment.getExperimentalFactors()
private Node addRawBioAssays(DbControl dc, Node rootNode)
rawbioassays
and calls
addRawBioAssay(DbControl, Node, RawBioAssay)
for each raw bioassay.
Experiment.getRawBioAssays()
private Node addRawBioAssay(DbControl dc, Node rawBioAssaysNode, RawBioAssay rba)
rawbioassay.ID
where ID is the ID of the
RawBioAssay
.
private Node addArrayDesign(DbControl dc, Node parentNode)
arraydesign
.
private Node addScan(DbControl dc, Node rawBioAssayNode)
scan
.
private Node addHybridization(DbControl dc, Node scanNode, Node rawBioAssayNode)
hybridization
.
private Node addImages(DbControl dc, Node scanNode)
images
and calls
addImage(DbControl, Node, Image)
for each image.
private Node addImage(DbControl dc, Node imagesNode, Image image)
image.ID
where ID is the ID of the
Image
.
private Node addLabeledExtracts(DbControl dc, Node hybNode, Node rawBioAssayNode)
labeledextracts
and calls
addLabeledExtract(DbControl, Node, LabeledExtract)
for each labeled extract.
private Node addLabeledExtract(DbControl dc, Node parentNode, LabeledExtract le)
labeledextract.ID
where ID is the ID of the
LabeledExtract
.
private void addPooledLabeledExtracts(DbControl dc, Node parentNode)
private Node addExtract(DbControl dc, Node parentNode, Extract extract)
extract
.
private void addPooledExtracts(DbControl dc, Node parentNode)
private Node addSample(DbControl dc, Node parentNode, Sample sample)
sample
.
private void addPooledSamples(DbControl dc, Node parentNode)
private Node addBioSource(DbControl dc, Node sampleNode)
biosource
.
private Node addArraySlide(DbControl dc, Node hybNode)
slide
.
private Node addArrayBatch(DbControl dc, Node slideNode)
batch
.
private Node addPlatform(DbControl dc, Node parentNode)
platform
and a
subnode variant
if present.
private Node addSoftware(DbControl dc, Node parentNode)
software
.
private Node addHardware(DbControl dc, Node parentNode, String hardwareType)
hardware
.
private Node addProtocol(DbControl dc, Node parentNode, Project.Default defaultProtocol)
protocol
.
private Node addProtocolParameters(DbControl dc, Node protocolNode)
parameters
and inside
it item-type nodes with the name parameter.ID
for each
protocol parameter. ID is the ID of the annotation type.
Protocol.getParameters()
private Node addAnnotations(DbControl dc, Node parentNode)
annotations
and inside
it item-type nodes with the name annotationtype.ID
for each
annotation (primary and inherited). ID is the ID of the annotation type.
If the logged in user doesn't have read permission for a particular annotation
type a node with the name annotation.ID
is created instead. In this
case the ID is the ID of the annotation.
Protocol.getParameters()
private Node addDataFiles(DbControl dc, Node parentNode)
fileset
and inside
it item-type nodes with the name member.ID
for each
data file. ID is the ID of the file set member.
private <T extends BasicItem> ItemQuery<T> initQuery(ItemQuery<T> query, String sortAlias, String sortProperty)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |