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

change vector of values to separate values in function parameters

parent bef3b787
No related branches found
No related tags found
1 merge request!26Allow to use TDF raw data to load MGF spectrum
......@@ -262,7 +262,12 @@ IdentificationDataSource::getMassSpectrumCstSPtr(unsigned int scan_number) const
pappso::MassSpectrumCstSPtr
IdentificationDataSource::getMassSpectrumCstSPtrMgfToTdf(
unsigned int scan_number, QString tdf_file, std::vector<double> values) const
unsigned int scan_number,
QString tdf_file,
int charge,
double mz_val,
double rt_sec,
double k0) const
{
qDebug() << "scan=" << scan_number;
if(_ms_run_sp.get()->getMzFormat() != pappso::MzFormat::MGF)
......@@ -307,7 +312,8 @@ IdentificationDataSource::getMassSpectrumCstSPtrMgfToTdf(
msrun_reader_sp.get()->scanNumber2SpectrumIndex(scan_number);
}
std::vector<std::size_t> spectrum_result;
spectrum_result = msrun_reader_sp.get()->getMs2ScanFromMzRt(values);
spectrum_result =
msrun_reader_sp.get()->getMs2ScanFromMzRt(charge, mz_val, rt_sec, k0);
qDebug() << spectrum_result.size();
if(spectrum_result.size() == 0)
{
......
......@@ -63,11 +63,16 @@ class IdentificationDataSource
* */
virtual pappso::MassSpectrumCstSPtr
getMassSpectrumCstSPtr(unsigned int scan_number) const;
/** @brief get the spectrum from MGF values such as precursor mz, precursor
* charge, RT and K0
* */
pappso::MassSpectrumCstSPtr
getMassSpectrumCstSPtrMgfToTdf(unsigned int scan_number,
QString tdf_file,
std::vector<double> values) const;
int charge,
double mz_val,
double rt_sec,
double k0) const;
/** \brief read source content to store it in project
*/
virtual void parseTo(Project *p_project) = 0;
......
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