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

new files to display ptm islands

parent b9a03178
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,10 @@ PtmGroupingExperiment::~PtmGroupingExperiment()
}
const std::vector<PtmIslandSp> & PtmGroupingExperiment::getPtmIslandList() {
return _ptm_island_list;
}
void PtmGroupingExperiment::numbering() {
std::sort(_ptm_island_group_list.begin(), _ptm_island_group_list.end(),[](const PtmIslandGroupSp a, const PtmIslandGroupSp b)
{
......
......@@ -45,6 +45,8 @@ public:
void setValidationState(ValidationState validation_state);
void addProteinMatch(const ProteinMatch* p_protein_match);
void startGrouping();
const std::vector<PtmIslandSp> & getPtmIslandList();
private:
std::vector<unsigned int> getPtmPositions(const ProteinMatch * protein_match) const;
......
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ptm_island_list_window</class>
<class>PtmIslandListWindow</class>
<widget class="QMainWindow" name="ptm_island_list_window">
<property name="geometry">
<rect>
......
/**
* \file gui/ptm_island_list_window/ptmislandlistwindow.cpp
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#include "ptmislandlistwindow.h"
PtmIslandListWindow::PtmIslandListWindow(const PtmIslandListWindow& other)
{
}
PtmIslandListWindow::~PtmIslandListWindow()
{
}
/**
* \file gui/ptm_island_list_window/ptmislandlistwindow.h
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#ifndef PTMISLANDLISTWINDOW_H
#define PTMISLANDLISTWINDOW_H
#include <QMainWindow>
#include "ptmislandtablemodel.h"
#include "ptmislandproxymodel.h"
class ProjectWindow;
//http://doc.qt.io/qt-4.8/qt-itemviews-chart-mainwindow-cpp.html
namespace Ui {
class PtmIslandListWindow;
}
class PtmIslandListWindow: public QMainWindow {
Q_OBJECT
public:
explicit PtmIslandListWindow(ProjectWindow * parent = 0);
~PtmIslandListWindow();
void setIdentificationGroup(IdentificationGroup * p_identification_group);
public slots:
void doFocusReceived(bool has_focus);
void doIdentificationGroupGrouped(IdentificationGroup * p_identification_group);
protected slots:
void doNotValidHide(bool hide);
void doNotCheckedHide(bool hide);
void doNotGroupedHide(bool hide);
void doProxyLayoutChanged();
void showContextMenu(const QPoint &);
void updateStatusBar();
void onProteinSearchEdit(QString protein_search_string);
void doSearchOn(QString search_on);
protected :
void askProteinDetailView(ProteinMatch * p_protein_match);
void askPeptideListView(ProteinMatch * p_protein_match);
private:
IdentificationGroup * _p_identification_group=nullptr;
Ui::ProteinView *ui;
ProteinTableModel * _protein_table_model_p = nullptr;
ProteinTableProxyModel * _p_proxy_model = nullptr;
ProjectWindow * _project_window;
};
#endif // PTMISLANDLISTWINDOW_H
/**
* \file gui/ptm_island_list_window/ptmislandproxymodel.cpp
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#include "ptmislandproxymodel.h"
PtmIslandProxyModel::PtmIslandProxyModel(const PtmIslandProxyModel& other)
{
}
PtmIslandProxyModel::~PtmIslandProxyModel()
{
}
/**
* \file gui/ptm_island_list_window/ptmislandproxymodel.h
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#ifndef PTMISLANDPROXYMODEL_H
#define PTMISLANDPROXYMODEL_H
class PtmIslandProxyModel
{
public:
PtmIslandProxyModel(const PtmIslandProxyModel& other);
~PtmIslandProxyModel();
};
#endif // PTMISLANDPROXYMODEL_H
/**
* \file gui/ptm_island_list_window/ptmislandtablemodel.h
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#include "ptmislandtablemodel.h"
PtmIslandTableModel::PtmIslandTableModel(const PtmIslandTableModel& other)
{
}
PtmIslandTableModel::~PtmIslandTableModel()
{
}
/**
* \file gui/ptm_island_list_window/ptmislandtablemodel.h
* \date 30/5/2017
* \author Olivier Langella
* \brief display all ptm islands
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#ifndef PTMISLANDTABLEMODEL_H
#define PTMISLANDTABLEMODEL_H
class PtmIslandTableModel
{
public:
PtmIslandTableModel(const PtmIslandTableModel& other);
~PtmIslandTableModel();
};
#endif // PTMISLANDTABLEMODEL_H
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