Tabnine Logo
uk.ac.ebi.intact.application.dataConversion.psiUpload.parser
Code IndexAdd Tabnine to your IDE (free)

How to use uk.ac.ebi.intact.application.dataConversion.psiUpload.parser

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiUpload.parser (Showing top 20 results out of 315)

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

/**
 * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data.
 *
 * @param entry
 */
private static void loadGlobalContext( Element entry ) {
  // process all eventual experiment (COULD BE EMPTY)
  globalExperiments = new ExperimentListParser();
  globalExperiments.process( entry );
  // process all eventual interactors (COULD BE EMPTY)
  globalParticipants = new ParticipantListParser();
  globalParticipants.process( entry );
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Collect all primary and secondary Xrefs.
 * <p/>
 * <pre>
 *   <xref>
 *       <primaryRef db="Swiss-Prot" id="P10912"/>
 * <p/>
 *       <secondaryRef db="Swiss-Prot" id="P11111"/>
 *       <secondaryRef db="Swiss-Prot" id="P22222"/>
 *       <secondaryRef db="Swiss-Prot" id="P33333"/>
 *   </xref>
 * </pre>
 *
 * @return an intact Xref collection. Empty collection if something goes wrong.
 */
public static Collection process( final Element root ) {
  Collection xrefs;
  xrefs = processSecondaryRef( root );
  XrefTag xref = processPrimaryRef( root );
  if ( xref != null ) {
    xrefs.add( xref );
  }
  return xrefs;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  public static EntryTag process( Element entry ) {

    loadGlobalContext( entry );

    // process all interactions
    InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants );
    Collection interactions = interactionList.process( entry );


    EntryTag entryTag = null;
    try {
      entryTag = new EntryTag( globalExperiments.getExperiments(),
                   globalParticipants.getInteractors(),
                   interactions );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) );
    }

    return entryTag;
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * @param entry
   */
  public Collection process( final Element entry ) {

    final Element interactionList = DOMUtil.getFirstElement( entry, "interactionList" );
    final NodeList someInteractions = interactionList.getElementsByTagName( "interaction" );
    final int count = someInteractions.getLength();

    final Collection interactions = new ArrayList( count );

    for ( int i = 0; i < count; i++ ) {
      final Element interactionNode = (Element) someInteractions.item( i );
      final InteractionParser interaction = new InteractionParser( experimentList, participantList,
                                     interactionNode );
      InteractionTag interactionTag = interaction.process();

      if ( interactionTag != null ) {
        interactions.add( interactionTag );
      }
    } // interactions

    return interactions;
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

  /**
   * Process a &lt;interactorList&gt;
   *
   * @param entry a &lt;interactorList&gt; Element
   */
  public void process( final Element entry ) {

    final Element proteinsList = DOMUtil.getFirstElement( entry, "interactorList" );
    if ( proteinsList != null ) {
      final NodeList someProteins = proteinsList.getElementsByTagName( "proteinInteractor" );
      for ( int i = 0; i < someProteins.getLength(); i++ ) {
        final Node interactor = someProteins.item( i );
        final ProteinInteractorParser proteinInteractor = new ProteinInteractorParser( this, (Element) interactor );

        final LabelValueBean lvb = proteinInteractor.process();
        if ( lvb != null ) {
          interactors.put( lvb.getLabel(), lvb.getValue() );
        }
      } // interactors
    }
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

  public static EntryTag process( Element entry ) {

    loadGlobalContext( entry );

    // process all interactions
    InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants );
    Collection interactions = interactionList.process( entry );


    EntryTag entryTag = null;
    try {
      entryTag = new EntryTag( globalExperiments.getExperiments(),
                   globalParticipants.getInteractors(),
                   interactions );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) );
    }

    return entryTag;
  }
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data.
 *
 * @param entry
 */
private static void loadGlobalContext( Element entry ) {
  // process all eventual experiment (COULD BE EMPTY)
  globalExperiments = new ExperimentListParser();
  globalExperiments.process( entry );
  // process all eventual interactors (COULD BE EMPTY)
  globalParticipants = new ParticipantListParser();
  globalParticipants.process( entry );
}
origin: uk.ac.ebi.intact.app/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Collect all primary and secondary Xrefs.
 * <p/>
 * <pre>
 *   <xref>
 *       <primaryRef db="Swiss-Prot" id="P10912"/>
 * <p/>
 *       <secondaryRef db="Swiss-Prot" id="P11111"/>
 *       <secondaryRef db="Swiss-Prot" id="P22222"/>
 *       <secondaryRef db="Swiss-Prot" id="P33333"/>
 *   </xref>
 * </pre>
 *
 * @return an intact Xref collection. Empty collection if something goes wrong.
 */
public static Collection process( final Element root ) {
  Collection xrefs;
  xrefs = processSecondaryRef( root );
  XrefTag xref = processPrimaryRef( root );
  if ( xref != null ) {
    xrefs.add( xref );
  }
  return xrefs;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  /**
   * @param entry
   */
  public Collection process( final Element entry ) {

    final Element interactionList = DOMUtil.getFirstElement( entry, "interactionList" );
    final NodeList someInteractions = interactionList.getElementsByTagName( "interaction" );
    final int count = someInteractions.getLength();

    final Collection interactions = new ArrayList( count );

    for ( int i = 0; i < count; i++ ) {
      final Element interactionNode = (Element) someInteractions.item( i );
      final InteractionParser interaction = new InteractionParser( experimentList, participantList,
                                     interactionNode );
      InteractionTag interactionTag = interaction.process();

      if ( interactionTag != null ) {
        interactions.add( interactionTag );
      }
    } // interactions

    return interactions;
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

  /**
   * Process a &lt;interactorList&gt;
   *
   * @param entry a &lt;interactorList&gt; Element
   */
  public void process( final Element entry ) {

    final Element proteinsList = DOMUtil.getFirstElement( entry, "interactorList" );
    if ( proteinsList != null ) {
      final NodeList someProteins = proteinsList.getElementsByTagName( "proteinInteractor" );
      for ( int i = 0; i < someProteins.getLength(); i++ ) {
        final Node interactor = someProteins.item( i );
        final ProteinInteractorParser proteinInteractor = new ProteinInteractorParser( this, (Element) interactor );

        final LabelValueBean lvb = proteinInteractor.process();
        if ( lvb != null ) {
          interactors.put( lvb.getLabel(), lvb.getValue() );
        }
      } // interactors
    }
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

  public static EntryTag process( Element entry ) {

    loadGlobalContext( entry );

    // process all interactions
    InteractionListParser interactionList = new InteractionListParser( globalExperiments, globalParticipants );
    Collection interactions = interactionList.process( entry );


    EntryTag entryTag = null;
    try {
      entryTag = new EntryTag( globalExperiments.getExperiments(),
                   globalParticipants.getInteractors(),
                   interactions );
    } catch ( IllegalArgumentException e ) {
      MessageHolder.getInstance().addParserMessage( new Message( entry, e.getMessage() ) );
    }

    return entryTag;
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Load all global Experiment and Interaction succeptible to be used by the interactions described in the PSI data.
 *
 * @param entry
 */
private static void loadGlobalContext( Element entry ) {
  // process all eventual experiment (COULD BE EMPTY)
  globalExperiments = new ExperimentListParser();
  globalExperiments.process( entry );
  // process all eventual interactors (COULD BE EMPTY)
  globalParticipants = new ParticipantListParser();
  globalParticipants.process( entry );
}
origin: uk.ac.ebi.intact.util/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Collect all primary and secondary Xrefs.
 * <p/>
 * <pre>
 *   <xref>
 *       <primaryRef db="Swiss-Prot" id="P10912"/>
 * <p/>
 *       <secondaryRef db="Swiss-Prot" id="P11111"/>
 *       <secondaryRef db="Swiss-Prot" id="P22222"/>
 *       <secondaryRef db="Swiss-Prot" id="P33333"/>
 *   </xref>
 * </pre>
 *
 * @return an intact Xref collection. Empty collection if something goes wrong.
 */
public static Collection process( final Element root ) {
  Collection xrefs;
  xrefs = processSecondaryRef( root );
  XrefTag xref = processPrimaryRef( root );
  if ( xref != null ) {
    xrefs.add( xref );
  }
  return xrefs;
}
origin: uk.ac.ebi.intact.util/data-conversion

  /**
   * @param entry
   */
  public Collection process( final Element entry ) {

    final Element interactionList = DOMUtil.getFirstElement( entry, "interactionList" );
    final NodeList someInteractions = interactionList.getElementsByTagName( "interaction" );
    final int count = someInteractions.getLength();

    final Collection interactions = new ArrayList( count );

    for ( int i = 0; i < count; i++ ) {
      final Element interactionNode = (Element) someInteractions.item( i );
      final InteractionParser interaction = new InteractionParser( experimentList, participantList,
                                     interactionNode );
      InteractionTag interactionTag = interaction.process();

      if ( interactionTag != null ) {
        interactions.add( interactionTag );
      }
    } // interactions

    return interactions;
  }
}
origin: uk.ac.ebi.intact.app/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

CellTypeTag cellType = null;
if ( null != cellTypeElement ) {
  cellType = CellTypeParser.process( cellTypeElement );
TissueTag tissue = null;
if ( null != tissueElement ) {
  tissue = TissueParser.process( tissueElement );
uk.ac.ebi.intact.application.dataConversion.psiUpload.parser

Most used classes

  • AnnotationParser
    That class reflects what is needed to create an IntAct Annotation. CAV1
  • CellTypeParser
    That class .
  • ConfidenceParser
    TODO document this ;o)
  • EntryParser
    That class .
  • EntrySetParser
    That class is parsing a set of Entry.
  • ExperimentListParser,
  • FeatureListParser,
  • FeatureParser,
  • HostOrganismParser,
  • InteractionListParser,
  • InteractionParser,
  • InteractionTypeParser,
  • LocationParser,
  • OrganismParser,
  • ParticipantListParser,
  • ProteinInteractorParser,
  • TissueParser,
  • XrefParser
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