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

preparing new MassChroqR spectral count output

parent 54c5c2c2
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
#include "workerthread.h"
#include <odsstream/odsdocwriter.h>
#include <odsstream/tsvoutputstream.h>
#include <odsstream/tsvdirectorywriter.h>
#include <pappsomspp/pappsoexception.h>
#include <QDebug>
#include "../output/masschroqml.h"
......@@ -347,23 +347,16 @@ void WorkerThread::doWritingProticFile(QString filename, ProjectSp project_sp) {
}
void WorkerThread::doWritingMcqrSpectralCountFile(QString filename, ProjectSp project_sp) {
void WorkerThread::doWritingMcqrSpectralCountFile(QString directory_name, ProjectSp project_sp) {
try {
emit loadingMessage(tr("Writing %1 spectral count file for MassChroqR").arg(filename));
QFile outFile;
outFile.setFileName(filename);
outFile.open(QIODevice::WriteOnly);
QTextStream * p_outputStream = new QTextStream(&outFile);
TsvOutputStream * p_writer = new TsvOutputStream(*p_outputStream);
p_writer->setNoSheetName(true);
emit loadingMessage(tr("Writing spectral count files for MassChroqR in directory %1").arg(directory_name));
TsvDirectoryWriter * p_writer = new TsvDirectoryWriter(directory_name);
McqrSpectralCount spectra_sheet(project_sp.get());
spectra_sheet.write(p_writer, _p_work_monitor);
p_writer->close();
delete p_writer;
delete p_outputStream;
outFile.close();
emit operationFinished();
}
catch (pappso::PappsoException & error) {
......
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