public SmallMolecule createSmallMolecule(String chebiId, String shortLabel) { CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.SMALL_MOLECULE_MI_REF, CvInteractorType.SMALL_MOLECULE); SmallMolecule smallMolecule = new SmallMoleculeImpl(shortLabel, getInstitution(), intType); InteractorXref idXref = createIdentityXrefChebi(smallMolecule, chebiId); smallMolecule.addXref(idXref); InteractorAlias alias = createAliasGeneName(smallMolecule, shortLabel.toUpperCase()); smallMolecule.addAlias(alias); return smallMolecule; }
public SmallMolecule createSmallMolecule(String chebiId, String shortLabel) { CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.SMALL_MOLECULE_MI_REF, CvInteractorType.SMALL_MOLECULE); SmallMolecule smallMolecule = new SmallMoleculeImpl(shortLabel, getInstitution(), intType); InteractorXref idXref = createIdentityXrefChebi(smallMolecule, chebiId); smallMolecule.addXref(idXref); InteractorAlias alias = createAliasGeneName(smallMolecule, shortLabel.toUpperCase()); smallMolecule.addAlias(alias); return smallMolecule; }
interactor = new ProteinImpl( getInstitution(), organism, shortLabel, interactorType ); } else if ( CvInteractorType.SMALL_MOLECULE_MI_REF.equals(typeId)) { interactor = new SmallMoleculeImpl( shortLabel, getInstitution(), interactorType ); interactor.setBioSource( organism ); } else if ( CvInteractorType.NUCLEIC_ACID_MI_REF.equals(typeId) || dnaMis.contains(typeId) || interactor = new ProteinImpl( getInstitution(), organism, shortLabel, interactorType ); } else if ( interactorTypeLabel.equals( CvInteractorType.SMALL_MOLECULE ) ) { interactor = new SmallMoleculeImpl( shortLabel, getInstitution(), interactorType ); interactor.setBioSource( organism ); } else if (CvInteractorType.NUCLEIC_ACID.equals(interactorTypeLabel) || dnaLabels.contains(interactorTypeLabel) ||