Tabnine Logo
PsiFileGenerator.generatePsiData
Code IndexAdd Tabnine to your IDE (free)

How to use
generatePsiData
method
in
uk.ac.ebi.intact.application.dataConversion.PsiFileGenerator

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.PsiFileGenerator.generatePsiData (Showing top 12 results out of 315)

origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public static Document generatePsiData(Collection<Interaction> interactions, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.app/data-conversion

public static Document generatePsiData(Collection<Interaction> interactions, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.util/data-conversion

public static Document generatePsiData(Collection<Interaction> interactions, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @param baseDir The base dir where to put the files
 * @param validate whether to validate the xml
 * @throws IOException thrown if there is some problem writing to the file
 * @return a psiValidatorReport
 */
public static PsiValidatorReport writePsiData(ExperimentListItem eli,
                PsiVersion psiVersion,
                CvMapping cvMapping,
                File baseDir, boolean validate) throws IOException
{
  File xmlFile = new File(baseDir, eli.getFilename());
  Document doc = generatePsiData(eli,psiVersion,cvMapping);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlFile, validate);
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @param baseDir The base dir where to put the files
 * @param validate whether to validate the xml
 * @throws IOException thrown if there is some problem writing to the file
 * @return a psiValidatorReport
 */
public static PsiValidatorReport writePsiData(ExperimentListItem eli,
                PsiVersion psiVersion,
                CvMapping cvMapping,
                File baseDir, boolean validate) throws IOException
{
  File xmlFile = new File(baseDir, eli.getFilename());
  Document doc = generatePsiData(eli,psiVersion,cvMapping);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlFile, validate);
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Writes a file containing the PSI XML, for the information contained in the ExperimentListItem
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @param baseDir The base dir where to put the files
 * @param validate whether to validate the xml
 * @throws IOException thrown if there is some problem writing to the file
 * @return a psiValidatorReport
 */
public static PsiValidatorReport writePsiData(ExperimentListItem eli,
                PsiVersion psiVersion,
                CvMapping cvMapping,
                File baseDir, boolean validate) throws IOException
{
  File xmlFile = new File(baseDir, eli.getFilename());
  Document doc = generatePsiData(eli,psiVersion,cvMapping);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlFile, validate);
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Converts a list of experiments to PSI XML, providing the experiment labels
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @return The Document containing the PSI XML
 */
public static Document generatePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Collection<Interaction> interactions = getInteractionsForExperimentListItem(eli);
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Converts a list of experiments to PSI XML, providing the experiment labels
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @return The Document containing the PSI XML
 */
public static Document generatePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Collection<Interaction> interactions = getInteractionsForExperimentListItem(eli);
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Converts a list of experiments to PSI XML, providing the experiment labels
 *
 * @param eli The ExperimentListItem, which contaisn information about the experiment to be fetched, the pagination and files
 * @param psiVersion The version of PSI to use
 * @param cvMapping The cv mapping
 * @return The Document containing the PSI XML
 */
public static Document generatePsiData(ExperimentListItem eli, PsiVersion psiVersion, CvMapping cvMapping)
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Collection<Interaction> interactions = getInteractionsForExperimentListItem(eli);
  return generatePsiData(interactions, session);
}
origin: uk.ac.ebi.intact.app/data-conversion

/**
 * Writes a file containing the PSI XML, with the interactions provided
 *
 * @param interactions
 * @param psiVersion
 * @param cvMapping
 * @param xmlTargetFile
 * @param validate
 * @return
 * @throws IOException
 */
public static PsiValidatorReport writePsiData(Collection<Interaction> interactions,
                  PsiVersion psiVersion,
                  CvMapping cvMapping,
                  File xmlTargetFile, boolean validate) throws IOException
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Document doc =  generatePsiData(interactions, session);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlTargetFile, validate);
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

/**
 * Writes a file containing the PSI XML, with the interactions provided
 *
 * @param interactions
 * @param psiVersion
 * @param cvMapping
 * @param xmlTargetFile
 * @param validate
 * @return
 * @throws IOException
 */
public static PsiValidatorReport writePsiData(Collection<Interaction> interactions,
                  PsiVersion psiVersion,
                  CvMapping cvMapping,
                  File xmlTargetFile, boolean validate) throws IOException
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Document doc =  generatePsiData(interactions, session);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlTargetFile, validate);
}
origin: uk.ac.ebi.intact.util/data-conversion

/**
 * Writes a file containing the PSI XML, with the interactions provided
 *
 * @param interactions
 * @param psiVersion
 * @param cvMapping
 * @param xmlTargetFile
 * @param validate
 * @return
 * @throws IOException
 */
public static PsiValidatorReport writePsiData(Collection<Interaction> interactions,
                  PsiVersion psiVersion,
                  CvMapping cvMapping,
                  File xmlTargetFile, boolean validate) throws IOException
{
  UserSessionDownload session = new UserSessionDownload(psiVersion);
  if (cvMapping != null)
  {
    session.setReverseCvMapping(cvMapping);
  }
  Document doc =  generatePsiData(interactions, session);
  if (doc == null)
  {
    return new PsiValidatorReport();
  }
  return writeFile(doc, xmlTargetFile, validate);
}
uk.ac.ebi.intact.application.dataConversionPsiFileGeneratorgeneratePsiData

Javadoc

Convert a list of interactions into PSI XML

Popular methods of PsiFileGenerator

  • filterInteractions
    It takes an interactions Collection and retrieves the ACs for the interactions that have a NucleicAc
  • getInteractionsForExperimentListItem
  • writeFile

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ImageIO (javax.imageio)
  • JPanel (javax.swing)
  • 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