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

decoy status displayed in protein details

parent 4acff869
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>609</width>
<height>409</height>
<height>428</height>
</rect>
</property>
<property name="windowTitle">
......@@ -18,70 +18,94 @@
<item row="1" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="accession_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>167</height>
</size>
</property>
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<layout class="QHBoxLayout" name="horizontalLayout"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="accession_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>167</height>
</size>
</property>
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="description_label">
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="validCheckBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>valid</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QCheckBox" name="valid_checkbox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>valid</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="decoy_checkbox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>decoy</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="description_label">
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="sequenceTextEdit">
<property name="lineWrapMode">
......@@ -148,7 +172,7 @@
<x>0</x>
<y>0</y>
<width>609</width>
<height>25</height>
<height>46</height>
</rect>
</property>
</widget>
......
......@@ -71,8 +71,10 @@ void ProteinWindow::doPeptideMatchSelected(PeptideMatch * peptide_match) {
void ProteinWindow::updateDisplay() {
try {
ui->validCheckBox->setCheckState(Qt::Unchecked);
if (_p_protein_match->isValid()) ui->validCheckBox->setCheckState(Qt::Checked);
ui->valid_checkbox->setCheckState(Qt::Unchecked);
if (_p_protein_match->isValid()) ui->valid_checkbox->setCheckState(Qt::Checked);
ui->decoy_checkbox->setCheckState(Qt::Unchecked);
if (_p_protein_match->getProteinXtpSp().get()->isDecoy()) ui->decoy_checkbox->setCheckState(Qt::Checked);
ui->accession_label->setText(_p_protein_match->getProteinXtpSp().get()->getAccession());
ui->description_label->setText(_p_protein_match->getProteinXtpSp().get()->getDescription());
ui->sequenceTextEdit->setText(_p_protein_match->getHtmlSequence());
......
......@@ -329,6 +329,7 @@ QString XpipSaxHandler::errorString() const {
bool XpipSaxHandler::endDocument() {
//_p_project->getProteinStore().setRegexpDecoyPattern(_p_project->getProteinStore().getRegexpDecoy().pattern());
_p_project->updateAutomaticFilters(_automatic_filter_parameters);
return true;
}
......
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