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

mzidentml: get protein description if cvParam is used

parent 01a1fa8e
No related branches found
No related tags found
Loading
......@@ -272,6 +272,13 @@ IdentificationPwizReader::read(
ProteinXtp protein;
protein.setCompleteDescription(
QString::fromStdString(sequence_pwiz->accession));
if(sequence_pwiz->hasCVParam(pwiz::cv::MS_protein_description))
{
protein.setDescription(
sequence_pwiz->cvParam(pwiz::cv::MS_protein_description)
.value.c_str());
}
protein.setSequence(QString::fromStdString(sequence_pwiz->seq));
ProteinXtpSp protein_sp(protein.makeProteinXtpSp());
protein_sp = protein_store.getInstance(protein_sp);
......
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