public static String getRecommendedName(InteractionImpl complex) { return getAlias(complex, CvAliasType.COMPLEX_RECOMMENDED_NAME_MI_REF); }
public static String getDisease(InteractionImpl complex) { return getAnnotationById(complex, CvTopic.COMPLEX_DISEASE_MI_REF); }
public static String getLigand(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.COMPLEX_LIGAND); }
public static String getName(InteractionImpl complex) { String name = getRecommendedName(complex); if (name != null) return name; name = getSystematicName(complex); if (name != null) return name; List<String> synonyms = getSynonyms(complex); if (! synonyms.isEmpty()) return synonyms.get(0); name = getFirstAlias(complex); if (name != null) return name; return complex.getShortLabel(); }
@PrePersist @PreUpdate protected void correctCategory() { if (this.interaction != null){ if (Hibernate.isInitialized(this.interaction.getAnnotations())){ if (ComplexUtils.isComplex(this.interaction)){ if (this.category == null || !this.category.endsWith("_pool")){ this.category = "modelled_participant"; } else { this.category = "modelled_participant_pool"; } } else if (this.category == null || !this.category.endsWith("_pool")){ this.category = "participant_evidence"; } else { this.category = "participant_evidence_pool"; } } else if (this.category == null){ this.category = "participant_evidence"; } } else if (this.category == null){ this.category = "participant_evidence"; } }
public static String getName(InteractionImpl complex) { String name = getRecommendedName(complex); if (name != null) return name; name = getSystematicName(complex); if (name != null) return name; List<String> synonyms = getSynonyms(complex); if (! synonyms.isEmpty()) return synonyms.get(0); name = getFirstAlias(complex); if (name != null) return name; return complex.getShortLabel(); }
@PrePersist @PreUpdate protected void correctCategory() { if (this.interaction != null){ if (Hibernate.isInitialized(this.interaction.getAnnotations())){ if (ComplexUtils.isComplex(this.interaction)){ if (this.category == null || !this.category.endsWith("_pool")){ this.category = "modelled_participant"; } else { this.category = "modelled_participant_pool"; } } else if (this.category == null || !this.category.endsWith("_pool")){ this.category = "participant_evidence"; } else { this.category = "participant_evidence_pool"; } } else if (this.category == null){ this.category = "participant_evidence"; } } else if (this.category == null){ this.category = "participant_evidence"; } }
public static String getFunction(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.CURATED_COMPLEX); }
public static String getProperties(InteractionImpl complex) { return getAnnotationById(complex, CvTopic.COMPLEX_PROPERTIES_MI_REF); }
public static String getSystematicName(InteractionImpl complex) { return getAlias(complex, CvAliasType.COMPLEX_SYSTEMATIC_NAME_MI_REF); }
@PrePersist @PreUpdate protected void correctCategory() { if (this.component != null){ if (this.component.getInteraction() != null){ if (Hibernate.isInitialized(this.component.getInteraction().getAnnotations())){ if (ComplexUtils.isComplex(this.component.getInteraction())){ this.category = "modelled"; } else { this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } }
public static String getComplexAssembly(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.COMPLEX_ASSEMBLY); }
public static String getProperties(InteractionImpl complex) { return getAnnotationById(complex, CvTopic.COMPLEX_PROPERTIES_MI_REF); }
public static String getRecommendedName(InteractionImpl complex) { return getAlias(complex, CvAliasType.COMPLEX_RECOMMENDED_NAME_MI_REF); }
@PrePersist @PreUpdate protected void correctCategory() { if (this.component != null){ if (this.component.getInteraction() != null){ if (Hibernate.isInitialized(this.component.getInteraction().getAnnotations())){ if (ComplexUtils.isComplex(this.component.getInteraction())){ this.category = "modelled"; } else { this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } } else if (this.category == null){ this.category = "evidence"; } }
public static String getLigand(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.COMPLEX_LIGAND); }
public static String getDisease(InteractionImpl complex) { return getAnnotationById(complex, CvTopic.COMPLEX_DISEASE_MI_REF); }
public static String getSystematicName(InteractionImpl complex) { return getAlias(complex, CvAliasType.COMPLEX_SYSTEMATIC_NAME_MI_REF); }
public static String getComplexAssembly(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.COMPLEX_ASSEMBLY); }
public static String getFunction(InteractionImpl complex) { return getAnnotationByShortLabel(complex, CvTopic.CURATED_COMPLEX); }