Tabnine Logo
ExperimentListItem.getChunkNumber
Code IndexAdd Tabnine to your IDE (free)

How to use
getChunkNumber
method
in
uk.ac.ebi.intact.application.dataConversion.ExperimentListItem

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.ExperimentListItem.getChunkNumber (Showing top 3 results out of 315)

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

public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli)
{
  Integer firstInteraction = null;
  Integer maxInteractions = null;
  // if there is pagination, get the first and the max result
  if (eli.getLargeScaleChunkSize() != null)
  {
    firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize();
    maxInteractions = eli.getLargeScaleChunkSize();
  }
  Collection<String> experimentLabels = eli.getExperimentLabels();
  return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao()
      .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]),
          firstInteraction, maxInteractions);
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli)
{
  Integer firstInteraction = null;
  Integer maxInteractions = null;
  // if there is pagination, get the first and the max result
  if (eli.getLargeScaleChunkSize() != null)
  {
    firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize();
    maxInteractions = eli.getLargeScaleChunkSize();
  }
  Collection<String> experimentLabels = eli.getExperimentLabels();
  return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao()
      .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]),
          firstInteraction, maxInteractions);
}
origin: uk.ac.ebi.intact.app/data-conversion

public static Collection<Interaction> getInteractionsForExperimentListItem(ExperimentListItem eli)
{
  Integer firstInteraction = null;
  Integer maxInteractions = null;
  // if there is pagination, get the first and the max result
  if (eli.getLargeScaleChunkSize() != null)
  {
    firstInteraction = (eli.getChunkNumber() - 1) * eli.getLargeScaleChunkSize();
    maxInteractions = eli.getLargeScaleChunkSize();
  }
  Collection<String> experimentLabels = eli.getExperimentLabels();
  return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getInteractionDao()
      .getInteractionByExperimentShortLabel(experimentLabels.toArray(new String[experimentLabels.size()]),
          firstInteraction, maxInteractions);
}
uk.ac.ebi.intact.application.dataConversionExperimentListItemgetChunkNumber

Popular methods of ExperimentListItem

  • <init>
  • getExperimentLabels
  • getFilename
  • getInteractionRange
  • getLargeScaleChunkSize
  • getPattern
  • removeTrailingSlash
  • twoDigitNumber

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Notification (javax.management)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JPanel (javax.swing)
  • Top Sublime Text plugins
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