Commit 00115aed authored by Langella Olivier's avatar Langella Olivier
Browse files

fix recognizing MGF files in TDF directories

parent 6860eda4
xtpcpp (0.4.19-1~buster2) buster; urgency=medium
* fix recongnizing mgf files in tdf directory
-- Olivier Langella <olivier.langella@u-psud.fr> Fri, 05 Feb 2021 10:46:18 +0100
xtpcpp (0.4.19-1~buster1) buster; urgency=medium
* MCQR work, integration is coming using librdata
......
......@@ -469,25 +469,29 @@ Utils::computeFdr(std::size_t count_decoy, std::size_t count_target)
pappso::MzFormat
Utils::guessDataFileFormatFromFile(QString filename)
{
QString extension = QFileInfo(filename).completeSuffix();
qDebug() << filename;
QString extension = QFileInfo(filename).suffix().toLower();
qDebug() << extension;
if(extension == "tdf")
{
return pappso::MzFormat::brukerTims;
}
else if(extension == "mzXML" || extension == "mzxml")
else if(extension == "mzxml")
{
return pappso::MzFormat::mzXML;
}
else if(extension == "mzML" || extension == "mzml")
else if(extension == "mzml")
{
return pappso::MzFormat::mzML;
}
else if(extension == "mgf")
{
qDebug() << filename;
return pappso::MzFormat::MGF;
}
else
{
qDebug() << filename;
return pappso::MzFormat::unknown;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment