Search in sources :

Example 6 with Evidence

use of org.vcell.pathway.Evidence in project vcell by virtualcell.

the class PathwayReaderBiopax3 method addObjectEvidence.

private Evidence addObjectEvidence(Element element) {
    if (element.getChildren().size() == 0) {
        EvidenceProxy proxy = new EvidenceProxy();
        addAttributes(proxy, element);
        pathwayModel.add(proxy);
        return proxy;
    }
    Evidence evidence = new Evidence();
    addAttributes(evidence, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentEvidence(evidence, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(evidence);
    return evidence;
}
Also used : EvidenceProxy(org.vcell.pathway.persistence.BiopaxProxy.EvidenceProxy) Element(org.jdom.Element) Evidence(org.vcell.pathway.Evidence) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 7 with Evidence

use of org.vcell.pathway.Evidence in project vcell by virtualcell.

the class PathwayProducerBiopax3 method addContentEvidence.

private Element addContentEvidence(BioPaxObject bpObject, Element element) {
    element = addContentUtilityClass(bpObject, element);
    Evidence ob = (Evidence) bpObject;
    Element tmpElement = null;
    return element;
}
Also used : Element(org.jdom.Element) Evidence(org.vcell.pathway.Evidence)

Example 8 with Evidence

use of org.vcell.pathway.Evidence in project vcell by virtualcell.

the class PathwayProducerBiopax3 method addContentTemplateReactionRegulation.

// evidence 	Evidence 	multiple
private Element addContentTemplateReactionRegulation(BioPaxObject bpObject, Element element) {
    element = addContentControl(bpObject, element);
    TemplateReactionRegulation ob = (TemplateReactionRegulation) bpObject;
    Element tmpElement = null;
    if (ob.getEvidence() != null && ob.getEvidence().size() > 0) {
        List<Evidence> list = ob.getEvidence();
        for (Evidence item : list) {
            tmpElement = new Element("evidence", bp);
            addIDToProperty(tmpElement, item);
            mustPrintObject(item);
            element.addContent(tmpElement);
        }
    }
    return element;
}
Also used : TemplateReactionRegulation(org.vcell.pathway.TemplateReactionRegulation) Element(org.jdom.Element) Evidence(org.vcell.pathway.Evidence)

Aggregations

Element (org.jdom.Element)8 Evidence (org.vcell.pathway.Evidence)8 BioPaxObject (org.vcell.pathway.BioPaxObject)2 EntityFeature (org.vcell.pathway.EntityFeature)2 PathwayXMLHelper.schemaString (org.vcell.pathway.PathwayXMLHelper.schemaString)2 PublicationXref (org.vcell.pathway.PublicationXref)2 RelationshipXref (org.vcell.pathway.RelationshipXref)2 Xref (org.vcell.pathway.Xref)2 BiochemicalPathwayStep (org.vcell.pathway.BiochemicalPathwayStep)1 Entity (org.vcell.pathway.Entity)1 EntityReference (org.vcell.pathway.EntityReference)1 GeneticInteraction (org.vcell.pathway.GeneticInteraction)1 GroupObject (org.vcell.pathway.GroupObject)1 Interaction (org.vcell.pathway.Interaction)1 MolecularInteraction (org.vcell.pathway.MolecularInteraction)1 Pathway (org.vcell.pathway.Pathway)1 PathwayStep (org.vcell.pathway.PathwayStep)1 PhysicalEntity (org.vcell.pathway.PhysicalEntity)1 Provenance (org.vcell.pathway.Provenance)1 SequenceLocation (org.vcell.pathway.SequenceLocation)1