Tabnine Logo
ParticipantEvidence.getInteraction
Code IndexAdd Tabnine to your IDE (free)

How to use
getInteraction
method
in
psidev.psi.mi.jami.model.ParticipantEvidence

Best Java code snippets using psidev.psi.mi.jami.model.ParticipantEvidence.getInteraction (Showing top 4 results out of 315)

origin: psidev.psi.mi/psimi-schema-validator

/**
 * For each experiment associated with this interaction, collect all respective participants and their identification method and
 * check if the dependencies are correct.
 *
 * @param participant a participant to check on.
 * @return a collection of validator messages.
 *         if we fail to retreive the MI Ontology.
 */
public Collection<ValidatorMessage> check( ParticipantEvidence participant ) throws ValidatorException {
  Collection<ValidatorMessage> messages = Collections.EMPTY_LIST;
  if (participant.getInteraction() != null){
    InteractionEvidence interaction = participant.getInteraction();
    Experiment exp = interaction.getExperiment();
    if (exp != null){
      CvTerm detMethod = exp.getInteractionDetectionMethod();
      if (detMethod != null){
        if (!participant.getIdentificationMethods().isEmpty()){
          messages = new ArrayList<ValidatorMessage>(participant.getIdentificationMethods().size());
          for (CvTerm method : participant.getIdentificationMethods()){
            // build a context in case of error
            MiContext context = RuleUtils.buildContext(participant, "participant");
            context.addAssociatedContext(RuleUtils.buildContext(exp, "experiment"));
            messages.addAll( mapping.check( detMethod, method, context, this ) );
          }
        }
      }
    }
  }
  return messages;
}
origin: psidev.psi.mi/psimi-schema-validator

/**
 * For each experiment associated with this interaction, collect all respective participants and their biological roles and
 * check if the dependencies are correct.
 *
 * @param participant a participant to check on.
 * @return a collection of validator messages.
 *         if we fail to retreive the MI Ontology.
 */
public Collection<ValidatorMessage> check( ParticipantEvidence participant ) throws ValidatorException {
  Collection<ValidatorMessage> messages = Collections.EMPTY_LIST;
  CvTerm biolRole = participant.getBiologicalRole();
  if (participant.getInteraction() != null){
    InteractionEvidence interaction = participant.getInteraction();
    Experiment exp = interaction.getExperiment();
    if (exp != null){
      CvTerm method = exp.getInteractionDetectionMethod();
      // build a context in case of error
      MiContext context = RuleUtils.buildContext(participant, "participant");
      context.addAssociatedContext(RuleUtils.buildContext(exp, "experiment"));
      messages=mapping.check( method, biolRole, context, this );
    }
  }
  return messages;
}
origin: psidev.psi.mi/psimi-schema-validator

/**
 * For each experiment associated with this interaction, collect all respective participants and their experimental roles and
 * check if the dependencies are correct.
 *
 * @param participant a participant to check on.
 * @return a collection of validator messages.
 *         if we fail to retreive the MI Ontology.
 */
public Collection<ValidatorMessage> check( ParticipantEvidence participant ) throws ValidatorException {
  Collection<ValidatorMessage> messages = Collections.EMPTY_LIST;
  CvTerm role = participant.getExperimentalRole();
  if (participant.getInteraction() != null){
    InteractionEvidence interaction = participant.getInteraction();
    Experiment exp = interaction.getExperiment();
    if (exp != null){
      // build a context in case of error
      MiContext context = RuleUtils.buildContext(participant, "participant");
      context.addAssociatedContext(RuleUtils.buildContext(exp, "experiment"));
      final CvTerm method = exp.getInteractionDetectionMethod();
      messages=mapping.check( method, role, context, this );
    }
  }
  return messages;
}
origin: psidev.psi.mi.jami/jami-mitab

else if (participant.getInteraction() != null){
  InteractionEvidence interaction = participant.getInteraction();
  if (interaction.getExperiment() != null){
    Experiment exp = interaction.getExperiment();
psidev.psi.mi.jami.modelParticipantEvidencegetInteraction

Popular methods of ParticipantEvidence

  • getExperimentalRole
    The experimental role of the participant. It is a controlled vocabulary term and cannot be null. It
  • getIdentificationMethods
    The identification methods for this participant. Each identification method is a controlled vocabula
  • getAnnotations
  • getConfidences
    The confidences for this participant. The Collection cannot be null. If the participant does not hav
  • getExpressedInOrganism
    The organisms in which the participant has been expressed. It can be null if not relevant or same as
  • getInteractor
  • getParameters
    Numerical parameters associated with this participant. The Collection cannot be null. If the partici
  • getAliases
  • getBiologicalRole
  • getExperimentalPreparations
    The experimental preparations for this participant. Each experimental preparation is a controlled vo
  • getFeatures
  • getXrefs
  • getFeatures,
  • getXrefs,
  • addFeature,
  • getCausalRelationships,
  • getStoichiometry,
  • setBiologicalRole,
  • setExperimentalRole,
  • setExpressedInOrganism,
  • setInteraction

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now