本文整理了Java中uk.ac.ebi.intact.model.Interaction.addXref()
方法的一些代码示例,展示了Interaction.addXref()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interaction.addXref()
方法的具体详情如下:
包路径:uk.ac.ebi.intact.model.Interaction
类名称:Interaction
方法名:addXref
暂无
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly
public Interaction createInteractionRandomBinary(String imexId) {
CvInteractionType cvInteractionType = createCvObject(CvInteractionType.class, CvInteractionType.DIRECT_INTERACTION_MI_REF, CvInteractionType.DIRECT_INTERACTION);
CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.INTERACTION_MI_REF, CvInteractorType.INTERACTION );
Experiment experimentEmpty = createExperimentEmpty();
Interaction interaction = new InteractionImpl(new ArrayList<Experiment>(Arrays.asList(experimentEmpty)),
cvInteractionType, intType, nextString("label"), getInstitution());
experimentEmpty.getInteractions().add(interaction);
createComponentBait(interaction, createProteinRandom());
createComponentPrey(interaction, createProteinRandom());
String shortLabel = InteractionUtils.calculateShortLabel(interaction);
interaction.setShortLabel(shortLabel);
if (imexId != null) {
CvObjectBuilder cvBuilder = new CvObjectBuilder();
CvXrefQualifier idQual = cvBuilder.createIdentityCvXrefQualifier(getInstitution());
CvDatabase imexDb = createCvObject(CvDatabase.class, CvDatabase.IMEX_MI_REF, CvDatabase.IMEX);
interaction.addXref(new InteractorXref(getInstitution(), imexDb, imexId, idQual));
}
return interaction;
}
代码示例来源:origin: uk.ac.ebi.intact.core/intact-core
public Interaction createInteractionRandomBinary(String imexId) {
CvInteractionType cvInteractionType = createCvObject(CvInteractionType.class, CvInteractionType.DIRECT_INTERACTION_MI_REF, CvInteractionType.DIRECT_INTERACTION);
CvInteractorType intType = createCvObject(CvInteractorType.class, CvInteractorType.INTERACTION_MI_REF, CvInteractorType.INTERACTION );
Experiment experimentEmpty = createExperimentEmpty();
Interaction interaction = new InteractionImpl(new ArrayList<Experiment>(Arrays.asList(experimentEmpty)),
cvInteractionType, intType, nextString("label"), getInstitution());
experimentEmpty.getInteractions().add(interaction);
createComponentBait(interaction, createProteinRandom());
createComponentPrey(interaction, createProteinRandom());
String shortLabel = InteractionUtils.calculateShortLabel(interaction);
interaction.setShortLabel(shortLabel);
if (imexId != null) {
CvObjectBuilder cvBuilder = new CvObjectBuilder();
CvXrefQualifier idQual = cvBuilder.createIdentityCvXrefQualifier(getInstitution());
CvDatabase imexDb = createCvObject(CvDatabase.class, CvDatabase.IMEX_MI_REF, CvDatabase.IMEX);
interaction.addXref(new InteractorXref(getInstitution(), imexDb, imexId, idQual));
}
return interaction;
}
代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion
interaction.addXref( xref );
IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getXrefDao().persist( xref );
代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion
interaction.addXref( xref );
IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getXrefDao().persist( xref );
代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion
interaction.addXref( xref );
IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getXrefDao().persist( xref );
代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters
if (imexId != null && !alreadyContainsImexXref(interaction)) {
final InteractorXref imexXref = createImexXref(interaction, imexId);
interaction.addXref(imexXref);
内容来源于网络,如有侵权,请联系作者删除!