congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Participant.getExperimentalRoles
Code IndexAdd Tabnine to your IDE (free)

How to use
getExperimentalRoles
method
in
psidev.psi.mi.xml.model.Participant

Best Java code snippets using psidev.psi.mi.xml.model.Participant.getExperimentalRoles (Showing top 15 results out of 315)

origin: psidev.psi.mi/psimitab

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;
}
origin: psidev.psi.mi/psi25-xml

public static Participant createParticipant(Interactor interactor, BiologicalRole biologicalRole, ExperimentalRole experimentalRole) {
  Participant participant = new Participant();
  assignNextId(participant);
  participant.setInteractor(interactor);
  participant.setBiologicalRole(biologicalRole);
  participant.getExperimentalRoles().add(experimentalRole);
  return participant;
}
origin: psidev.psi.mi/psimitab

protected String displayParticipant(Participant p) {
  // fetch role
  String role = "";
  for (ExperimentalRole aRole : p.getExperimentalRoles()) {
    if (role.length() > 0) {
      role += "&";
    }
    if (aRole.hasNames()) {
      role += aRole.getNames().getShortLabel();
    } else {
      role += "?";
    }
  }
  // fetch interactor
  String interactor = p.getInteractor().getNames().getShortLabel();
  return interactor + ":" + role;
}
origin: psidev.psi.mi/psimitab

private String displayParticipant( Participant p ) {
  // fetch role
  String role = "";
  for ( ExperimentalRole aRole : p.getExperimentalRoles() ) {
    if ( role.length() > 0 ) {
      role += "&";
    }
    if ( aRole.hasNames() ) {
      role += aRole.getNames().getShortLabel();
    } else {
      role += "?";
    }
  }
  // fetch interactor
  String interactor = p.getInteractor().getNames().getShortLabel();
  return interactor + ":" + role;
}
origin: org.biopax.paxtools/psimi-converter

for (ExperimentalRole role : participant.getExperimentalRoles()) {
  if(exp==null || role.getExperiments().contains(exp) || role.getExperiments().isEmpty()) {
origin: psidev.psi.mi/psimitab

Collection<ExperimentalRole> xmlExpRoles = xmlParticipant.getExperimentalRoles();
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

if (participant.getExperimentalRoles().size() > 1) {
  throw new UnsupportedConversionException("Cannot convert participants with more than one experimental role: "+participant);
if (participant.getExperimentalRoles().isEmpty()) {
  if (log.isWarnEnabled()) log.warn("Participant without experimental roles: " + participant);
  roles = participant.getExperimentalRoles();
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

if (participant.getExperimentalRoles().size() > 1) {
  throw new UnsupportedConversionException("Cannot convert participants with more than one experimental role: "+participant);
if (participant.getExperimentalRoles().isEmpty()) {
  if (log.isWarnEnabled()) log.warn("Participant without experimental roles: " + participant);
  roles = participant.getExperimentalRoles();
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-psixml-converters

participant.getExperimentalRoles().add( expRole );
origin: psidev.psi.mi/psimitab

participant.getExperimentalRoles().add(experimentalRole);
origin: psidev.psi.mi/psi25-xml

for ( ExperimentalRole er : participant.getExperimentalRoles() ) {
  if ( er.hasExperimentRefs() ) {
origin: psidev.psi.mi/psi25-xml

  jParticipant.getExperimentalRoleList().getExperimentalRoles() ) {
mParticipant.getExperimentalRoles().add( experimentalRoleConverter.fromJaxb( jExperimentalRole ) );
origin: psidev.psi.mi/psi25-xml

  jParticipant.getExperimentalRoleList().getExperimentalRoles() ) {
mParticipant.getExperimentalRoles().add( experimentalRoleConverter.fromJaxb( jExperimentalRole ) );
origin: psidev.psi.mi/psi25-xml

for ( ExperimentalRole mExperimentalRole : mParticipant.getExperimentalRoles() ) {
  jParticipant.getExperimentalRoleList().getExperimentalRoles().add( experimentalRoleConverter.toJaxb( mExperimentalRole ) );
origin: psidev.psi.mi/psi25-xml

for ( ExperimentalRole mExperimentalRole : mParticipant.getExperimentalRoles() ) {
  jParticipant.getExperimentalRoleList().getExperimentalRoles().add( experimentalRoleConverter.toJaxb( mExperimentalRole ) );
psidev.psi.mi.xml.modelParticipantgetExperimentalRoles

Javadoc

Gets the value of the experimentalRoleList property.

Popular methods of Participant

  • getInteractor
    Gets the value of the interactor property.
  • getFeatures
    Gets the value of the featureList property.
  • getAttributes
    Gets the value of the attributeList property.
  • getBiologicalRole
    Gets the value of the biologicalRole property.
  • getExperimentalInteractors
    Gets the value of the experimentalInteractorList property.
  • getId
    Gets the value of the id property.
  • getInteraction
  • getParticipantIdentificationMethods
    Gets the value of the participantIdentificationMethodList property.
  • hasExperimentalRoles
    Check if the optional experimentalRoles is defined.
  • setBiologicalRole
    Sets the value of the biologicalRole property.
  • setInteractor
    Sets the value of the interactor property.
  • <init>
  • setInteractor,
  • <init>,
  • getConfidenceList,
  • getExperimentalPreparations,
  • getHostOrganisms,
  • getNames,
  • getParameters,
  • getXref,
  • hasAttributes

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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