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

find MS run file on basename or samplename.

get sample name from Mascot dat parameters.
parent ef77225c
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@ MsRun::findMsRunFile()
_msrun_reader_sp = nullptr;
}
}
if(file.fileName().contains(onlyfilename))
if((file.fileName().contains(onlyfilename)) ||
(file.fileName().contains(basename)) ||
(file.fileName().contains(this->getSampleName())))
{
try
{
......
......@@ -416,13 +416,22 @@ INTERNALS=0.0,700.0
if(header_list[1] == "FILE")
{
// FILE=F:\MSData\Batch4 Qex+TOUL Injection2\QEKAC160601_02.raw.mgf
/* not finished
QFileInfo fileinfo(header_list[2]);
_p_identification_data_source->getMsRunSp().get()->setSampleName(
fileinfo.baseName());
*/
_p_identification_data_source->getMsRunSp().get()->setFilename(
header_list[2]);
QFileInfo fileinfo(header_list[2]);
if(fileinfo.fileName() == header_list[2])
{
fileinfo.setFile(header_list[2].replace("\\", "/"));
_p_identification_data_source->getMsRunSp().get()->setSampleName(
fileinfo.baseName());
}
else
{
_p_identification_data_source->getMsRunSp().get()->setSampleName(
fileinfo.baseName());
}
}
}
}
......
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