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

free msrun reader after getting statistics

parent f822f79f
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@
#include "samplesheet.h"
SampleSheet::SampleSheet(OdsExport *p_ods_export, CalcWriterInterface *p_writer,
SampleSheet::SampleSheet(OdsExport *p_ods_export,
CalcWriterInterface *p_writer,
const Project *p_project)
: _p_project(p_project)
{
......@@ -118,16 +119,19 @@ SampleSheet::writeHeaders()
"total number of MS level 3 during the MS run (from mz file)");
_p_writer->writeCell("Total MS3");
_p_writer->setCellAnnotation("total ion current in MS level 1 spectra "
"during the MS run (from mz file)");
_p_writer->setCellAnnotation(
"total ion current in MS level 1 spectra "
"during the MS run (from mz file)");
_p_writer->writeCell("TIC MS1");
_p_writer->setCellAnnotation("total ion current in MS level 2 spectra "
"during the MS run (from mz file)");
_p_writer->setCellAnnotation(
"total ion current in MS level 2 spectra "
"during the MS run (from mz file)");
_p_writer->writeCell("TIC MS2");
_p_writer->setCellAnnotation("total ion current in MS level 3 spectra "
"during the MS run (from mz file)");
_p_writer->setCellAnnotation(
"total ion current in MS level 3 spectra "
"during the MS run (from mz file)");
_p_writer->writeCell("TIC MS3");
}
......@@ -148,7 +152,10 @@ SampleSheet::writeIdentificationDataSource(
if(_msrun_statistics)
{
if(msrun_sp->findMsRunFile())
msrun_sp->checkMsRunStatistics();
{
msrun_sp->checkMsRunStatistics();
}
msrun_sp->freeMsRunReaderSp();
}
_p_writer->writeCell(msrun_sp.get()->getXmlId());
......
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