We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1b806 commit fe000c3Copy full SHA for fe000c3
panoramapublic/src/org/labkey/panoramapublic/proteomexchange/PxXmlWriter.java
@@ -391,7 +391,7 @@ void writeModificationList(Status validationStatus) throws PxException
391
*/
392
Element mod_list = new Element("ModificationList");
393
var mods = validationStatus.getModifications();
394
- if(mods.size() == 0)
+ if(mods.size() == 0 || mods.stream().noneMatch(Modification::isValid))
395
{
396
mod_list.addChild(new CvParamElement("MS", "MS:1002864", "No PTMs are included in the dataset"));
397
}
0 commit comments