congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProteinParticipantTag.getProteinInteractor
Code IndexAdd Tabnine to your IDE (free)

How to use
getProteinInteractor
method
in
uk.ac.ebi.intact.application.dataConversion.psiUpload.model.ProteinParticipantTag

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiUpload.model.ProteinParticipantTag.getProteinInteractor (Showing top 18 results out of 315)

origin: uk.ac.ebi.intact.util/data-conversion

Object o = (Object) iterator.next();
if ( o instanceof ProteinParticipantTag ) {
  uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

Object o = (Object) iterator.next();
if ( o instanceof ProteinParticipantTag ) {
  uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
origin: uk.ac.ebi.intact.app/data-conversion

Object o = (Object) iterator.next();
if ( o instanceof ProteinParticipantTag ) {
  uniprotID = ( (ProteinParticipantTag) o ).getProteinInteractor().getPrimaryXref().getId();
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  public static void check( final ProteinParticipantTag proteinParticipant,
               final UpdateProteinsI proteinFactory,
               final BioSourceFactory bioSourceFactory ) {

    final String role = proteinParticipant.getRole();
    RoleChecker.check( role );

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
    ProteinInteractorChecker.check( proteinInteractor, proteinFactory, bioSourceFactory );

    final Collection features = proteinParticipant.getFeatures();
    for ( Iterator iterator = features.iterator(); iterator.hasNext(); ) {
      FeatureTag feature = (FeatureTag) iterator.next();

      FeatureChecker.ckeck( feature );
    }

    // check feature clustering (specific to PSI version 1)
    try {
      proteinParticipant.getClusteredFeatures();
    } catch ( IllegalArgumentException iae ) {
      MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while checking if the feature were clusterizable: " +
                                    iae.getMessage() ) );
    }

    // TODO check isOverExpressed
    // TODO check isTaggedProtein: as we have to create a Feature having CvFeatureType(tagged-protein) with undetermined range
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

  public static void check( final ProteinParticipantTag proteinParticipant,
               final UpdateProteinsI proteinFactory,
               final BioSourceFactory bioSourceFactory ) {

    final String role = proteinParticipant.getRole();
    RoleChecker.check( role );

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
    ProteinInteractorChecker.check( proteinInteractor, proteinFactory, bioSourceFactory );

    final Collection features = proteinParticipant.getFeatures();
    for ( Iterator iterator = features.iterator(); iterator.hasNext(); ) {
      FeatureTag feature = (FeatureTag) iterator.next();

      FeatureChecker.ckeck( feature );
    }

    // check feature clustering (specific to PSI version 1)
    try {
      proteinParticipant.getClusteredFeatures();
    } catch ( IllegalArgumentException iae ) {
      MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while checking if the feature were clusterizable: " +
                                    iae.getMessage() ) );
    }

    // TODO check isOverExpressed
    // TODO check isTaggedProtein: as we have to create a Feature having CvFeatureType(tagged-protein) with undetermined range
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

  public static void check( final ProteinParticipantTag proteinParticipant,
               final UpdateProteinsI proteinFactory,
               final BioSourceFactory bioSourceFactory ) {

    final String role = proteinParticipant.getRole();
    RoleChecker.check( role );

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
    ProteinInteractorChecker.check( proteinInteractor, proteinFactory, bioSourceFactory );

    final Collection features = proteinParticipant.getFeatures();
    for ( Iterator iterator = features.iterator(); iterator.hasNext(); ) {
      FeatureTag feature = (FeatureTag) iterator.next();

      FeatureChecker.ckeck( feature );
    }

    // check feature clustering (specific to PSI version 1)
    try {
      proteinParticipant.getClusteredFeatures();
    } catch ( IllegalArgumentException iae ) {
      MessageHolder.getInstance().addCheckerMessage( new Message( "An error occured while checking if the feature were clusterizable: " +
                                    iae.getMessage() ) );
    }

    // TODO check isOverExpressed
    // TODO check isTaggedProtein: as we have to create a Feature having CvFeatureType(tagged-protein) with undetermined range
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

ProteinParticipantTag psiComponent = (ProteinParticipantTag) iterator2.next();
sb.append( NEW_LINE ).append( '[' );
sb.append( psiComponent.getProteinInteractor().getPrimaryXref().getId() );
sb.append( ", " );
sb.append( psiComponent.getRole() );
origin: uk.ac.ebi.intact.app/data-conversion

ProteinParticipantTag psiComponent = (ProteinParticipantTag) iterator2.next();
sb.append( NEW_LINE ).append( '[' );
sb.append( psiComponent.getProteinInteractor().getPrimaryXref().getId() );
sb.append( ", " );
sb.append( psiComponent.getRole() );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

ProteinParticipantTag psiComponent = (ProteinParticipantTag) iterator2.next();
sb.append( NEW_LINE ).append( '[' );
sb.append( psiComponent.getProteinInteractor().getPrimaryXref().getId() );
sb.append( ", " );
sb.append( psiComponent.getRole() );
origin: uk.ac.ebi.intact.app/data-conversion

ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
String uniprotID = null;
String taxid = null;
origin: uk.ac.ebi.intact.util/data-conversion

ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
String uniprotID = null;
String taxid = null;
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
String uniprotID = null;
String taxid = null;
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Get an Intact Protein out of a ProteinInteractorTag.
   *
   * @param proteinParticipant
   *
   * @return the IntAct Protein correcponding to the given ProteinParticipantTag.
   */
  private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) {

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();

    OrganismTag organism = proteinInteractor.getOrganism();
    BioSource bioSource = null;
    if ( organism != null ) {
      bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() );
    }

    String proteinId = proteinInteractor.getPrimaryXref().getId();
    String db = proteinInteractor.getPrimaryXref().getDb();

//        System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" +
//                            proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" );

    return ProteinInteractorChecker.getProtein( proteinId, db, bioSource );
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

  /**
   * Get an Intact Protein out of a ProteinInteractorTag.
   *
   * @param proteinParticipant
   *
   * @return the IntAct Protein correcponding to the given ProteinParticipantTag.
   */
  private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) {

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();

    OrganismTag organism = proteinInteractor.getOrganism();
    BioSource bioSource = null;
    if ( organism != null ) {
      bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() );
    }

    String proteinId = proteinInteractor.getPrimaryXref().getId();
    String db = proteinInteractor.getPrimaryXref().getDb();

//        System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" +
//                            proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" );

    return ProteinInteractorChecker.getProtein( proteinId, db, bioSource );
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * Get an Intact Protein out of a ProteinInteractorTag.
   *
   * @param proteinParticipant
   *
   * @return the IntAct Protein correcponding to the given ProteinParticipantTag.
   */
  private static ProteinHolder getProtein( final ProteinParticipantTag proteinParticipant ) {

    final ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();

    OrganismTag organism = proteinInteractor.getOrganism();
    BioSource bioSource = null;
    if ( organism != null ) {
      bioSource = OrganismChecker.getBioSource( proteinInteractor.getOrganism() );
    }

    String proteinId = proteinInteractor.getPrimaryXref().getId();
    String db = proteinInteractor.getPrimaryXref().getDb();

//        System.out.println( "Search interactor (" + proteinInteractor.getShortlabel() + ") from cache(" +
//                            proteinId + ", " + db + ", " + bioSource.getShortLabel() + ")" );

    return ProteinInteractorChecker.getProtein( proteinId, db, bioSource );
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

public static void persist( final ProteinParticipantTag proteinParticipant,
              final Interaction interaction ) throws IntactException {
  ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
origin: uk.ac.ebi.intact.app/data-conversion

public static void persist( final ProteinParticipantTag proteinParticipant,
              final Interaction interaction ) throws IntactException {
  ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public static void persist( final ProteinParticipantTag proteinParticipant,
              final Interaction interaction ) throws IntactException {
  ProteinInteractorTag proteinInteractor = proteinParticipant.getProteinInteractor();
uk.ac.ebi.intact.application.dataConversion.psiUpload.modelProteinParticipantTaggetProteinInteractor

Popular methods of ProteinParticipantTag

  • <init>
  • getClusteredFeatures
    Produce a map that represents a clustering of the features. That method is there to help with PSI ve
  • getExpressedIn
  • getFeatureId
    Get from a feature object the primaryId of an Xref having the given database.
  • getFeatures
  • getRole
  • hasFeature
    Checks if a feature has an Xref with the given primaryId and database.

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Reference (javax.naming)
  • 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