package uk.ac.ebi.pride.proteogenomics.pogo.model;

import uk.ac.ebi.pride.proteogenomics.pogo.model.export.PoGoExporter;

/**
 * Project: libpogo
 * Package: uk.ac.ebi.pride.proteogenomics.pogo.model
 * Timestamp: 2017-06-13 14:46
 * ---
 * © 2017 Manuel Bernal Llinares <mbdebian@gmail.com>
 * All rights reserved.
 */

public class PoGoEntryFactory {
    public static PoGoEntry createPoGoEntry(String experiment, String peptide, Integer psm, Double quant) {
        return new PoGoEntry(experiment, peptide, psm, quant);
    }
}

@@ -114,16 +114,187 @@
 xporter;
+%0Aimport uk.ac.ebi.pride.proteogenomics.pogo.model.translator.PoGoEntryTranslatorForClusteredPsmReport;%0Aimport uk.ac.ebi.pride.spectracluster.repo.model.ClusteredPSMReport;
 %0A%0A/**%0A *
@@ -694,11 +694,213 @@
 );%0A    %7D
+%0A%0A    public static PoGoEntry createPoGoEntryFrom(ClusteredPSMReport clusteredPSMReport) %7B%0A        return (new PoGoEntryTranslatorForClusteredPsmReport(clusteredPSMReport)).visit(new PoGoEntry());%0A    %7D
 %0A%7D%0A

create PoGo entry from ClusteredPSMReport - factory method