Search in sources :

Example 6 with Dna

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

the class PathwayProducerBiopax3 method addContentDna.

// entityReference 	EntityReference 	single
private Element addContentDna(BioPaxObject bpObject, Element element) {
    element = addContentPhysicalEntity(bpObject, element);
    Dna ob = (Dna) bpObject;
    Element tmpElement = null;
    if (ob.getEntityReference() != null) {
        tmpElement = new Element("entityReference", bp);
        addIDToProperty(tmpElement, ob.getEntityReference());
        mustPrintObject(ob.getEntityReference());
        element.addContent(tmpElement);
    }
    return element;
}
Also used : Dna(org.vcell.pathway.Dna) Element(org.jdom.Element)

Example 7 with Dna

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

the class PathwayReader method addObjectDna.

private Dna addObjectDna(Element element) {
    Dna dna = new Dna();
    addAttributes(dna, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentDna(dna, element, childElement)) {
                showUnexpected(childElement, dna);
            }
        }
    }
    pathwayModel.add(dna);
    return dna;
}
Also used : Dna(org.vcell.pathway.Dna) Element(org.jdom.Element) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

Dna (org.vcell.pathway.Dna)7 BioPaxObject (org.vcell.pathway.BioPaxObject)6 Element (org.jdom.Element)5 GroupObject (org.vcell.pathway.GroupObject)5 Complex (org.vcell.pathway.Complex)4 Protein (org.vcell.pathway.Protein)4 Rna (org.vcell.pathway.Rna)4 SmallMolecule (org.vcell.pathway.SmallMolecule)4 DnaRegion (org.vcell.pathway.DnaRegion)3 PhysicalEntity (org.vcell.pathway.PhysicalEntity)3 RnaRegion (org.vcell.pathway.RnaRegion)3 HashSet (java.util.HashSet)2 Control (org.vcell.pathway.Control)2 Interaction (org.vcell.pathway.Interaction)2 MolecularInteraction (org.vcell.pathway.MolecularInteraction)2 PhysicalEntityProxy (org.vcell.pathway.persistence.BiopaxProxy.PhysicalEntityProxy)2 EdgeShape (cbit.gui.graph.EdgeShape)1 Shape (cbit.gui.graph.Shape)1 BioModelEntityObject (cbit.vcell.model.BioModelEntityObject)1 Dimension (java.awt.Dimension)1