Skip to content
Snippets Groups Projects
Commit 56474c18 authored by Olivier Langella's avatar Olivier Langella
Browse files

compar PAI datasheet added to exports

parent a090f7a0
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,8 @@ public class printing_base extends process {
this.printComparSpectra(odsDoc);
logger.debug("Print new spectra specific");
this.printComparSpecificSpectra(odsDoc);
logger.debug("Print new compar pai");
this.printComparPai(odsDoc);
logger.debug("Print new spectra (expert)");
this.printSpectraList(odsDoc);
......@@ -209,6 +211,10 @@ public class printing_base extends process {
this.add_current_progress();
}
protected void printComparPai(OdsDocWriter odsDoc) throws Exception {
}
protected void printComparSpecificSpectra(OdsDocWriter odsDoc)
throws Exception {
}
......
......@@ -5,6 +5,7 @@ import fr.inra.pappso.libodsstream.OdsDocWriter;
import fr.inra.pappso.xtandempipeline.MsException.StopException;
import fr.inra.pappso.xtandempipeline.class_msms.config;
import fr.inra.pappso.xtandempipeline.class_msms.Identification;
import fr.inra.pappso.xtandempipeline.output.SpreadSheets.OdsComparPaiOutput;
import fr.inra.pappso.xtandempipeline.output.SpreadSheets.OdsComparSpecificSpectraOutput;
import fr.inra.pappso.xtandempipeline.output.SpreadSheets.OdsComparSpectraOutput;
......@@ -14,6 +15,40 @@ public class printing_combine extends printing_base {
super(conf);
}
@Override
protected void printComparPai(OdsDocWriter odsDoc) throws Exception {
logger.debug("printComparPai begin");
// Verification pas arrete
if (this.isStop())
throw new StopException("");
this.add_current_progress();
this.set_view("Printing compar PAI results");
if (this.isCsv) {
Ods2Csv ods2csv = new Ods2Csv();
ods2csv.setSinkFilename(this.getfileout().getAbsolutePath()
+ "_compar_pai.txt");
odsDoc = ods2csv.getOdsDocPipedOutput();
} else {
}
OdsComparPaiOutput writer = new OdsComparPaiOutput(odsDoc);
// output.open(this.getfileout().getAbsolutePath() + "_compar.txt");
for (Identification ident : this.identifications) {
this.writeMsSampleName(ident, odsDoc);
writer.write(ident);
}
logger.debug("printComparPai end");
if (this.isCsv) {
odsDoc.close();
logger.debug("csv file closed "
+ this.getfileout().getAbsolutePath() + "_compar_pai.txt");
}
}
@Override
protected void printComparSpectra(OdsDocWriter odsDoc) throws Exception {
logger.debug("printComparSpectra begin");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment