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

How to use
getBinaryInteractionForScoring
method
in
uk.ac.ebi.enfin.mi.cluster.Encore2Binary

Best Java code snippets using uk.ac.ebi.enfin.mi.cluster.Encore2Binary.getBinaryInteractionForScoring (Showing top 4 results out of 315)

origin: uk.ac.ebi.intact.dataexchange.uniprotexport/intact-uniprot-export

@Override
public Map<Integer, BinaryInteraction<Interactor>> getBinaryInteractionCluster() {
  Encore2Binary iConverter = new Encore2Binary(getMappingIdDbNames());
  Map<Integer, BinaryInteraction<Interactor>> binaryInteractionCluster = new HashMap<Integer, BinaryInteraction<Interactor>>();
  for(Integer mappingId:getInteractionMapping().keySet()){
    EncoreInteraction eI = getInteractionMapping().get(mappingId);
    if (eI != null){
      BinaryInteraction bI = iConverter.getBinaryInteractionForScoring(eI);
      binaryInteractionCluster.put(mappingId, bI);
    }
  }
  return binaryInteractionCluster;
}
origin: uk.ac.ebi.enfin.mi.cluster/micluster

@Override
public void saveResultsInMitab(String fileName) throws IOException {
  PsimiTabWriter writer = new PsimiTabWriter();
  File file = new File(fileName);
  BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file));
  try{
    Map<Integer, EncoreInteraction> interactionMapping = getInteractionMapping();
    Encore2Binary iConverter = new Encore2Binary(getMappingIdDbNames());
    for(Integer mappingId:interactionMapping.keySet()){
      EncoreInteraction eI = interactionMapping.get(mappingId);
      BinaryInteraction bI = iConverter.getBinaryInteractionForScoring(eI);
      writer.write(bI, bufferedWriter);
    }
  }
  finally {
    bufferedWriter.close();
  }
}
origin: uk.ac.ebi.intact.dataexchange.uniprotexport/intact-uniprot-export

fstream.flush();
BinaryInteraction bI = iConverter.getBinaryInteractionForScoring(eI);
writer.write(bI, mitabWriter);
origin: uk.ac.ebi.intact.dataexchange/intact-tasks

/**
 * Save clustered results including scores in mitab files
 * @param interactionClusterScore
 */
private void saveMitabOutputFile(InteractionClusterScore interactionClusterScore) throws IOException, PsimiTabException {
  /* Retrieve results */
  Map<Integer, EncoreInteraction> interactionMapping = interactionClusterScore.getInteractionMapping();
  PsimiTabWriter writer = new PsimiTabWriter(PsimiTabVersion.v2_5);
  BufferedWriter outputWriter = new BufferedWriter(new FileWriter(mitabOutputFile));
  try{
    if (header){
      writer.writeMitabHeader(outputWriter);
    }
    Encore2Binary iConverter = new Encore2Binary(interactionClusterScore.getMappingIdDbNames());
    for(Integer mappingId:interactionMapping.keySet()){
      EncoreInteraction eI = interactionMapping.get(mappingId);
      BinaryInteraction bI = iConverter.getBinaryInteractionForScoring(eI);
      writer.write(bI, outputWriter);
    }
  }
  finally {
    outputWriter.close();
  }
}
uk.ac.ebi.enfin.mi.clusterEncore2BinarygetBinaryInteractionForScoring

Popular methods of Encore2Binary

  • <init>
  • getBinaryInteraction
  • updateAlias
  • updateIdentifiers

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim 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