/** * 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); }
/** * 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); }
/** * 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); }