Search in sources :

Example 1 with AnnotationMapping

use of org.vcell.relationship.AnnotationMapping in project vcell by virtualcell.

the class VCMetaData method createBioPaxObjects.

public void createBioPaxObjects(BioModel bioModel) {
    AnnotationMapping annoMapping = new AnnotationMapping();
    VCMetaData vcMetaData = bioModel.getVCMetaData();
    Set<Identifiable> identifiables = vcMetaData.getIdentifiableProvider().getAllIdentifiables();
    TreeMap<Identifiable, Map<MiriamRefGroup, MIRIAMQualifier>> miriamDescrHeir = miriamManager.getMiriamTreeMap();
    for (Identifiable identifiable : identifiables) {
        Map<MiriamRefGroup, MIRIAMQualifier> refGroupMap = miriamDescrHeir.get(identifiable);
        if (refGroupMap != null) {
            String info = annoMapping.annotation2BioPaxObject(bioModel, identifiable);
            boolean printInfo = false;
            if (printInfo) {
                System.out.println(info);
            }
        }
    }
}
Also used : Map(java.util.Map) IdentityHashMap(java.util.IdentityHashMap) TreeMap(java.util.TreeMap) MIRIAMQualifier(org.vcell.sybil.models.miriam.MIRIAMQualifier) AnnotationMapping(org.vcell.relationship.AnnotationMapping) MiriamRefGroup(cbit.vcell.biomodel.meta.MiriamManager.MiriamRefGroup) Identifiable(org.vcell.util.document.Identifiable)

Aggregations

MiriamRefGroup (cbit.vcell.biomodel.meta.MiriamManager.MiriamRefGroup)1 IdentityHashMap (java.util.IdentityHashMap)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 AnnotationMapping (org.vcell.relationship.AnnotationMapping)1 MIRIAMQualifier (org.vcell.sybil.models.miriam.MIRIAMQualifier)1 Identifiable (org.vcell.util.document.Identifiable)1