Commit 18ffb306 authored by Olivier Langella's avatar Olivier Langella
Browse files

add the quantification XML id to trace file names

parent 9778ac21
......@@ -157,10 +157,10 @@ CalcWriterInterface * QuantiItemPeptide::newCalcWriterInterface(const Quantifica
trace_dir.mkpath(trace_dir.absolutePath());
CalcWriterInterface * _p_writer=nullptr;
if (quantificator->getTracesFormat() == McqTsvFormat::tsv) {
_p_writer = new TsvDirectoryWriter(QString("%1/%2_%3-z%4.d").arg(trace_dir.absolutePath()).arg(prefix).arg(this->getPeptide()->getXmlId()).arg(this->_z));
_p_writer = new TsvDirectoryWriter(QString("%1/%2_%3-%4-z%5.d").arg(trace_dir.absolutePath()).arg(prefix).arg(quantificator->getXmlId()).arg(this->getPeptide()->getXmlId()).arg(this->_z));
}
else {
_p_writer = new OdsDocWriter(QString("%1/%2_%3-z%4.ods").arg(trace_dir.absolutePath()).arg(prefix).arg(this->getPeptide()->getXmlId()).arg(this->_z));
_p_writer = new OdsDocWriter(QString("%1/%2_%3-%4-z%5.ods").arg(trace_dir.absolutePath()).arg(prefix).arg(quantificator->getXmlId()).arg(this->getPeptide()->getXmlId()).arg(this->_z));
}
return _p_writer;
......
......@@ -121,10 +121,10 @@ CalcWriterInterface * QuantiItemPeptideNaturalIsotope::newCalcWriterInterface(co
trace_dir.mkpath(trace_dir.absolutePath());
CalcWriterInterface * _p_writer=nullptr;
if (quantificator->getTracesFormat() == McqTsvFormat::tsv) {
_p_writer = new TsvDirectoryWriter(QString("%1/%2_%3-z%4-%5-%6.d").arg(trace_dir.absolutePath()).arg(prefix).arg(this->getPeptide()->getXmlId()).arg(this->_z).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeNumber()).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeRank()));
_p_writer = new TsvDirectoryWriter(QString("%1/%2_%3-%4-z%5-%6-%7.d").arg(trace_dir.absolutePath()).arg(prefix).arg(quantificator->getXmlId()).arg(this->getPeptide()->getXmlId()).arg(this->_z).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeNumber()).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeRank()));
}
else {
_p_writer = new OdsDocWriter(QString("%1/%2_%3-z%4-%5-%6.ods").arg(trace_dir.absolutePath()).arg(prefix).arg(this->getPeptide()->getXmlId()).arg(this->_z).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeNumber()).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeRank()));
_p_writer = new OdsDocWriter(QString("%1/%2_%3-%4-z%5-%6-%7.ods").arg(trace_dir.absolutePath()).arg(prefix).arg(quantificator->getXmlId()).arg(this->getPeptide()->getXmlId()).arg(this->_z).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeNumber()).arg(this->getPeptideNaturalIsotopeAverageSp()->getIsotopeRank()));
}
return _p_writer;
......
Supports Markdown
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