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

read spectrum from identification source

parent 1ac0a236
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@
#include <pappsomspp/msrun/msrunid.h>
#include <pappsomspp/spectrum/spectrum.h>
#include <map>
......@@ -43,6 +44,9 @@ public:
const QString & getResourceName () const;
void setMsRunSp (pappso::MsRunIdSp ms_run_sp);
pappso::MsRunIdSp getMsRunSp () const;
/** @brief get the spectrum with scan number
* */
virtual pappso::SpectrumSp getSpectrumSp(unsigned int scan_number) const = 0;
protected :
QString _resource_name;
......
......@@ -39,3 +39,8 @@ bool IdentificationXtandemFile::operator==(const IdentificationXtandemFile& othe
{
}
pappso::SpectrumSp IdentificationXtandemFile::getSpectrumSp(unsigned int scan_number) const {
pappso::SpectrumSp spectrum_sp;
return spectrum_sp;
}
......@@ -34,6 +34,8 @@ public:
~IdentificationXtandemFile();
bool operator==(const IdentificationXtandemFile& other) const;
virtual pappso::SpectrumSp getSpectrumSp(unsigned int scan_number) const;
private:
const QFileInfo _xtandem_file;
};
......
......@@ -69,6 +69,8 @@ void PeptideWindow::updateDisplay() {
ui->z_label->setText(QString("%1").arg(_p_peptide_match->getCharge()));
ui->scan_label->setText(QString("%1").arg(_p_peptide_match->getScan()));
ui->modification_label->setText(_p_peptide_match->getPeptideXtpSp().get()->getModifString());
}
catch (pappso::PappsoException exception_pappso) {
QMessageBox::warning(this,
......@@ -83,5 +85,7 @@ void PeptideWindow::updateDisplay() {
void PeptideWindow::setPeptideMatch(PeptideMatch * p_peptide_match) {
_p_peptide_match = p_peptide_match;
SpectrumSp spectrum = _p_peptide_match->getIdentificationDataSource()->getSpectrumSp(_p_peptide_match->getScan());
updateDisplay();
}
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