Skip to content
Snippets Groups Projects
Commit 19c954ab authored by Renne Thomas's avatar Renne Thomas
Browse files

change tandemwrapper filter to correctTDF and Triangle

parent 18917fbc
No related branches found
No related tags found
1 merge request!27Change pseudocentroid filter to deconvolution filter
......@@ -42,6 +42,9 @@
#include <pappsomspp/exception/exceptionnotimplemented.h>
#include <pappsomspp/msrun/private/timsmsrunreaderms2.h>
#include <pappsomspp/processing/filters/filterpseudocentroid.h>
#include <pappsomspp/processing/filters/filtertdfcorrectpeak.h>
#include <pappsomspp/processing/filters/filtertriangle.h>
#include <pappsomspp/precision.h>
#include "peptideevidence.h"
#include "alignmentgroup.h"
......@@ -128,14 +131,21 @@ MsRun::setMsRunReaderSp(QString ms_run_file)
_msrun_reader_sp.get());
if(tims2_reader != nullptr)
{
qDebug() << m_centroidOptions;
QStringList option_list = m_centroidOptions.split(" ");
std::shared_ptr<pappso::FilterPseudoCentroid> ms2filter =
std::make_shared<pappso::FilterPseudoCentroid>(
option_list.at(0).toDouble(),
option_list.at(1).toDouble(),
option_list.at(2).toDouble(),
option_list.at(3).toDouble());
std::shared_ptr<pappso::FilterSuite> ms2filter = std::make_shared<pappso::FilterSuite>();
// ms2filter.get()->push_back(
// std::make_shared<pappso::FilterPseudoCentroid>(
// option_list.at(0).toDouble(),
// option_list.at(1).toDouble(),
// option_list.at(2).toDouble(),
// option_list.at(3).toDouble()));
std::shared_ptr<pappso::FilterTriangle> triangle = std::make_shared<pappso::FilterTriangle>();
triangle.get()->setTriangleSlope(50,0.02);
ms2filter.get()->push_back(triangle);
ms2filter.get()->push_back(
std::make_shared<pappso::FilterCorrectTdfPeaks>(pappso::PrecisionFactory::getDaltonInstance(0.02)));
tims2_reader->setMs2FilterCstSPtr(ms2filter);
qDebug() << m_centroidOptions;
......
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