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

pepxml should work

parent 56881e24
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ LoadResultsDialog::LoadResultsDialog(QWidget * parent):
_p_automatic_filter_widget = new AutomaticFilterWidget(this);
_p_automatic_filter_widget->hideButton();
QSettings settings;
AutomaticFilterParameters param = _p_automatic_filter_widget->getAutomaticFilterParameters();
param.setFilterCrossSamplePeptideNumber(settings.value("automatic_filter/cross_sample", "true").toBool());
......@@ -51,9 +51,9 @@ LoadResultsDialog::LoadResultsDialog(QWidget * parent):
param.setFilterProteinEvalue(settings.value("automatic_filter/protein_evalue", "0.01").toDouble());
_p_automatic_filter_widget->setAutomaticFilterParameters(param);
ui->filter_parameter_layout->addWidget(_p_automatic_filter_widget);
#if QT_VERSION >= 0x050000
// Qt5 code
......@@ -87,16 +87,16 @@ QStringList LoadResultsDialog::getFileList() const {
AutomaticFilterParameters LoadResultsDialog::getAutomaticFilterParameters() const {
return _p_automatic_filter_widget->getAutomaticFilterParameters();
}
void LoadResultsDialog::clearFileList() {
_p_file_list->removeRows( 0, _p_file_list->rowCount() );
}
void LoadResultsDialog::clearFileList() {
_p_file_list->removeRows( 0, _p_file_list->rowCount() );
}
void LoadResultsDialog::chooseFiles() {
try {
QSettings settings;
QString default_location = settings.value("path/identificationfiles", "").toString();
QStringList filenames = QFileDialog::getOpenFileNames(this,tr("identification files"),default_location,
tr("X!Tandem files (*.xml);;mzIdentML files (*.mzid);;Mascot dat files (*.dat);;all files (*)") );
tr("X!Tandem files (*.xml);;mzIdentML files (*.mzid);;pepxml files (*.pep);;all files (*)") );
if (filenames.size() > 0) {
settings.setValue("path/identificationfiles", QFileInfo(filenames[0]).absolutePath());
......
......@@ -59,8 +59,8 @@ IdentificationDataSourceSp IdentificationDataSourceStore::getInstance(const QStr
//X!Tandem result file
p_identfile = std::make_shared<IdentificationXtandemFile>(location_file);
} else
if (ext.toLower() == "dat") {
//dat file
if (ext.toLower() == "pep") {
//pep xml file
p_identfile = std::make_shared<IdentificationPwizFile>(location_file);
}else {
p_identfile = std::make_shared<IdentificationPwizFile>(location_file);
......
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