protected boolean isBait(Participant participant) { if (participant == null) { throw new IllegalArgumentException("Participant must not be null."); } if (participant.hasExperimentalRoles()) { for (ExperimentalRole role : participant.getExperimentalRoles()) { // search for bait log.debug("Checking if participant (id:" + participant.getId() + ") is a bait."); if (XrefUtils.hasPsiId(role.getXref(), BAIT_MI_REF)) { log.debug("Yes it is."); return true; } log.debug("No it is not."); } } return false; }
psiIndex.addParticipant( participant.getId(), isr );
psiIndex.addParticipant( participant.getId(), isr );
private Entity createBiopaxEntity(Participant participant, Set<String> avail, Provenance pro) LOG.debug("createBiopaxEntity, processing participant: " + participant.getId()); .create(Evidence.class, genUri(Evidence.class, "p",participant.getId())); LOG.debug("createBiopaxEntity, participant: " + participant.getId() + ", exp. interactor: " + interactor.getId()); Entity expEntity = createParticipant(participant, interactor, avail, pro, true); LOG.debug("createBiopaxEntity, participant: " + participant.getId() + " doesn't have any exp. interactors"); createAddExperimentalForm(participant, participantEvidence, null, null);
for (psidev.psi.mi.xml.model.Participant mParticipant : mInteraction.getParticipants()) { if (!participantIds.contains(mParticipant.getId())) { mEntry.getInteractors().add(mParticipant.getInteractor()); participantIds.add(mParticipant.getInteractor().getId());
throw new PsimiXmlReaderException("The interaction " + ref.getRef() + " has a participant ("+participant.getId()+") which is an interaction and this interaction is referring to itself." + " It is not a valid participant."); throw new PsimiXmlReaderException("The participant "+participant.getId()+" refers to the interaction " + ref.getRef() + " but this interaction cannot be found by the parser. Please check that this interaction is described somewhere in the list of interactions."); throw new PsimiXmlReaderException("The participant ("+participant.getId()+") doesn't have any interactions attached to it."); throw new PsimiXmlReaderException("The participant "+participant.getId()+" refers to the interactor " + ref.getRef() + " but this interactior cannot be found by the parser. " + "Please check that you are not mixing the expanded PSI xml schema and the compact PSI xml schema together. Either all the interactors are described at the beginning of the file and" + " all the participants then use references to pre-declared interactors or all the interactors are only described at the level of the participants and no interactor reference can be used."); throw new PsimiXmlReaderException( "The participant ("+ participant.getId() +") defined in interaction (id="+ parentInteraction.getId()+") has a participant identification method which refers to experiment ref "+ eref.getRef() +"," + "however, this experiment isn't defined in this interaction." + throw new PsimiXmlReaderException("The participant "+participant.getId()+" has a participant identification method which refers to the experiment " + eref.getRef() + " but this experiment cannot be found by the parser." + " Please check that you are not mixing the expanded PSI xml schema and the compact PSI xml schema together. Either all the experiments are described at the beginning of the file and" + " all the interactions and participants then use references to pre-declared experiments or all the experiments are only described at the level of the interactions and no experiment reference can be used."); throw new PsimiXmlReaderException( "The participant ("+ participant.getId() +") defined in interaction (id="+ parentInteraction.getId()+") has an experimental role which refers to experiment ref "+ eref.getRef() +"," + "however, this experiment isn't defined in this interaction." + throw new PsimiXmlReaderException("The participant "+participant.getId()+" has an experimental role which refers to the experiment " + eref.getRef() + " but this experiment cannot be found by the parser." + " Please check that you are not mixing the expanded PSI xml schema and the compact PSI xml schema together. Either all the experiments are described at the beginning of the file and" + " all the interactions and participants then use references to pre-declared experiments or all the experiments are only described at the level of the interactions and no experiment reference can be used."); throw new PsimiXmlReaderException( "The participant ("+ participant.getId() +") defined in interaction (id="+ parentInteraction.getId()+") has an experimental preparation which refers to experiment ref "+ eref.getRef() +"," +
jParticipant.setParticipantRef( mInferredInteractionParticipant.getParticipant().getId() );
jParticipant.setParticipantRef( mInferredInteractionParticipant.getParticipant().getId() );