#include <msrunxicextractor.h>
Definition at line 40 of file msrunxicextractor.h.
◆ MsRunXicExtractor() [1/2]
| pappso::MsRunXicExtractor::MsRunXicExtractor |
( |
MsRunReaderSPtr & |
msrun_reader | ) |
|
|
protected |
Definition at line 59 of file msrunxicextractor.cpp.
75 FilterResampleKeepXRange keep_range(mz_range.lower(), mz_range.upper());
76 std::shared_ptr<Xic> msrunxic_sp = std::make_shared<Xic>(Xic());
◆ MsRunXicExtractor() [2/2]
◆ ~MsRunXicExtractor()
| pappso::MsRunXicExtractor::~MsRunXicExtractor |
( |
| ) |
|
|
virtual |
◆ getXicCstSPtr()
get a XIC on this MsRun at the given mass range
- Parameters
-
| mz_range | mz range to extract |
| rt_begin | begining of the XIC in seconds |
| rt_end | end of the XIC in seconds |
Implements pappso::MsRunXicExtractorInterface.
Reimplemented in pappso::MsRunXicExtractorDisk.
Definition at line 90 of file msrunxicextractor.cpp.
105 if(spectrum->size() > 0)
109 qDebug() << __FILE__ <<
" " << __FUNCTION__ <<
" " << __LINE__
110 <<
" peak.y=" << peak.y
111 <<
" spectrum->size()=" << spectrum->size();
116 peak.y =
sumYTrace(spectrum->begin(), spectrum->end(), 0);
118 msrunxic_sp->push_back(peak);
124 return (msrunxic_sp);
127 std::vector<XicCstSPtr>
131 std::vector<std::shared_ptr<Xic>> xic_list_return;
132 std::vector<Xic *> xic_list;
133 for(std::size_t i = 0; i < mz_range_list.size(); i++)
135 xic_list_return.push_back(std::make_shared<Xic>(Xic()));
136 xic_list.push_back(xic_list_return.back().get());
140 std::vector<XicCstSPtr> xic_list_return_b;
141 for(
auto &xic : xic_list_return)
143 xic_list_return_b.push_back(xic);
References pappso::maxYDataPoint(), pappso::DataPoint::y, and pappso::y.
◆ getXicCstSPtrList()
| std::vector< XicCstSPtr > pappso::MsRunXicExtractor::getXicCstSPtrList |
( |
const std::vector< MzRange > & |
mz_range_list | ) |
|
|
overridevirtual |
extract a list of XIC given a list of mass to extract
Implements pappso::MsRunXicExtractorInterface.
Reimplemented in pappso::MsRunXicExtractorDisk.
Definition at line 147 of file msrunxicextractor.cpp.
155 qDebug() << __FILE__ <<
" " << __FUNCTION__ <<
" " << __LINE__;
157 std::vector<DataPoint> peak_for_mass;
158 for(
const MzRange &mass_range : mass_range_list)
160 peak_for_mass.push_back(DataPoint());
161 qDebug() << __FILE__ <<
" " << __FUNCTION__ <<
" " << __LINE__
162 <<
" mass_range=" << mass_range.getMz();
◆ getXicFromPwizMSDataFile()
Definition at line 168 of file msrunxicextractor.cpp.
176 while((itpoints !=
m_msrun_points.end()) && (itpoints->rt <= rt_end))
181 for(DataPoint &peak : peak_for_mass)
183 peak.x = itpoints->rt;
189 for(
auto &&spectrum_point : *(spectrum.get()))
193 for(std::size_t i = 0; i < mass_range_list.size(); i++)
195 if(mass_range_list[i].contains(spectrum_point.x))
199 if(peak_for_mass[i].
y < spectrum_point.y)
201 peak_for_mass[i].y = spectrum_point.y;
206 peak_for_mass[i].y += spectrum_point.y;
212 for(std::size_t i = 0; i < mass_range_list.size(); i++)
216 xic_list[i]->push_back(peak_for_mass[i]);
223 qDebug() << __FILE__ <<
" " << __FUNCTION__ <<
" " << __LINE__;
◆ m_msrun_points
| std::vector<MsRunXicExtractorPoints> pappso::MsRunXicExtractor::m_msrun_points |
|
protected |
◆ MsRunXicExtractorFactory
| friend pappso::MsRunXicExtractor::MsRunXicExtractorFactory |
|
private |
The documentation for this class was generated from the following files: