forked from OpenMS/OpenMS
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
augment ParamCTD file with new tag (bumping version to version 1.8)
- Loading branch information
Showing
6 changed files
with
208 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
<xs:element name="PARAMETERS" type="PARAMETERSType"> | ||
<xs:annotation> | ||
<xs:documentation>Main parameters node.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:complexType name="PARAMETERSType"> | ||
<xs:sequence> | ||
<xs:group ref="ITEMS" minOccurs="0" maxOccurs="unbounded" /> | ||
<xs:element name="NODE" type="NODEType" minOccurs="0" maxOccurs="unbounded" /> | ||
</xs:sequence> | ||
<xs:attribute name="version" type="versionString" /> | ||
</xs:complexType> | ||
<xs:complexType name="AbstractITEMType" abstract="true"> | ||
<xs:attribute name="name" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:minLength value="1" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute name="type" type="PossibleITEMType" use="required"> | ||
<xs:annotation> | ||
<xs:documentation>The type of the specified ITEM. Either input or output.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="description" type="xs:string" default="" /> | ||
<xs:attribute name="short_description" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>A short description of the parameter.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="tags" type="xs:string" default="false"> | ||
<xs:annotation> | ||
<xs:documentation>Additional annotations of the parameter incl. required, advanced, thread, debug, internal, file-type-override, log</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="restrictions" type="xs:string" default="" /> | ||
<xs:attribute name="supported_formats" type="xs:string" default="false"> | ||
<xs:annotation> | ||
<xs:documentation>Defines the expected file types. Only valid for input-file, output-file, input-prefix, and output-prefix parameters.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="required" type="xs:boolean" default="false"> | ||
<xs:annotation> | ||
<xs:documentation>Deprecated, embed as tag into tags attribute. Will be removed in v2.0.0 of the schema.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="advanced" type="xs:boolean" default="false"> | ||
<xs:annotation> | ||
<xs:documentation>Deprecated, embed as tag into tags attribute. Will be removed in v2.0.0 of the schema.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="position" type="xs:nonNegativeInteger" use="optional"> | ||
<xs:annotation> | ||
<xs:documentation>Position of the parameter (0-based). Certain parameters are not associated to an option identifier, rather, to the position on which they appear on the command-line.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:complexType> | ||
<xs:complexType name="ITEMLISTType"> | ||
<xs:complexContent> | ||
<xs:extension base="AbstractITEMType"> | ||
<xs:sequence> | ||
<xs:element name="LISTITEM" type="LISTITEMType" minOccurs="0" maxOccurs="unbounded" /> | ||
</xs:sequence> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:complexType name="LISTITEMType"> | ||
<xs:attribute name="value" use="required" /> | ||
</xs:complexType> | ||
<xs:complexType name="ITEMType"> | ||
<xs:complexContent> | ||
<xs:extension base="AbstractITEMType"> | ||
<xs:attribute name="value" type="xs:string" use="required"> | ||
<xs:annotation> | ||
<xs:documentation>The actual value of the parameter.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="default" type="xs:string" use="optional"> | ||
<xs:annotation> | ||
<xs:documentation>If available, the default value of the given parameter.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:extension> | ||
</xs:complexContent> | ||
</xs:complexType> | ||
<xs:simpleType name="PossibleITEMType"> | ||
<xs:annotation> | ||
<xs:documentation>Defines the possible types available in the type attribute of ITEM and ITEMLIST.</xs:documentation> | ||
</xs:annotation> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="int" /> | ||
<xs:enumeration value="double" /> | ||
<xs:enumeration value="float" /> | ||
<xs:enumeration value="string" /> | ||
<xs:enumeration value="int-pair" /> | ||
<xs:enumeration value="double-pair" /> | ||
<xs:enumeration value="input-prefix" /> | ||
<xs:enumeration value="output-prefix" /> | ||
<xs:enumeration value="input-file" /> | ||
<xs:enumeration value="output-file" /> | ||
<xs:enumeration value="output-dir" /> | ||
<xs:enumeration value="bool" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
<xs:group name="ITEMS"> | ||
<xs:choice> | ||
<xs:element name="ITEM" type="ITEMType" /> | ||
<xs:element name="ITEMLIST" type="ITEMLISTType" /> | ||
</xs:choice> | ||
</xs:group> | ||
<xs:complexType name="NODEType"> | ||
<xs:annotation> | ||
<xs:documentation /> | ||
</xs:annotation> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:group ref="ITEMS" /> | ||
<xs:element name="NODE" type="NODEType" /> | ||
</xs:choice> | ||
<xs:attribute name="name" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:minLength value="1" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
<xs:attribute name="description" type="xs:string" default="" /> | ||
</xs:complexType> | ||
<xs:simpleType name="versionString"> | ||
<xs:restriction base="xs:string"> | ||
<xs:pattern value="\d+\.\d+(\.\d+)?" /> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 46 additions & 45 deletions
91
src/tests/class_tests/openms/data/ParamCTDFile_test_writeCTDToStream.ctd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tool ctdVersion="1.7" version="2.6.0-pre-STL-ParamCTD-2021-06-02" name="AccurateMassSearch" docurl="http://www.openms.de/doxygen/nightly/html/TOPP_AccurateMassSearch.html" category="Utilities" > | ||
<description><![CDATA[Match MS signals to molecules from a database by mass.]]></description> | ||
<manual><![CDATA[Match MS signals to molecules from a database by mass.]]></manual> | ||
<citations> | ||
<citation doi="10.1038/s41592-024-02197-7" url="" /> | ||
</citations> | ||
<PARAMETERS version="1.7.0" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/OpenMS/OpenMS/develop/share/OpenMS/SCHEMAS/Param_1_7_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<ITEMLIST name="stringlist" type="string" description="StringList Description" required="false" advanced="false" > | ||
<LISTITEM value="a"/> | ||
<LISTITEM value="bb"/> | ||
<LISTITEM value="ccc"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="intlist" type="int" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
<LISTITEM value="22"/> | ||
<LISTITEM value="333"/> | ||
</ITEMLIST> | ||
<ITEM name="item" value="bla" type="string" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="stringlist2" type="string" description="" required="false" advanced="false" > | ||
</ITEMLIST> | ||
<ITEMLIST name="intlist2" type="int" description="" required="false" advanced="false" > | ||
</ITEMLIST> | ||
<ITEM name="item1" value="7" type="int" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="intlist3" type="int" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="stringlist3" type="string" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
</ITEMLIST> | ||
<ITEM name="item3" value="7.6" type="double" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="doublelist" type="double" description="" required="false" advanced="false" > | ||
<LISTITEM value="1.22"/> | ||
<LISTITEM value="2.33"/> | ||
<LISTITEM value="4.55"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="doublelist3" type="double" description="" required="false" advanced="false" > | ||
<LISTITEM value="1.4"/> | ||
</ITEMLIST> | ||
<ITEM name="file_parameter" value="" type="input-file" description="This is a file parameter." required="false" advanced="false" supported_formats="*.mzML,*.mzXML" /> | ||
<ITEM name="advanced_parameter" value="" type="string" description="This is an advanced parameter." required="false" advanced="true" /> | ||
<ITEM name="flag" value="false" type="bool" description="This is a flag i.e. in a command line input it does not need a value." required="false" advanced="false" /> | ||
<ITEM name="noflagJustTrueFalse" value="true" type="string" description="This is not a flag but has a boolean meaning." required="false" advanced="false" restrictions="true,false" /> | ||
</PARAMETERS> | ||
</tool> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tool ctdVersion="1.8" version="2.6.0-pre-STL-ParamCTD-2021-06-02" name="AccurateMassSearch" docurl="http://www.openms.de/doxygen/nightly/html/TOPP_AccurateMassSearch.html" category="Utilities" > | ||
<description><![CDATA[Match MS signals to molecules from a database by mass.]]></description> | ||
<manual><![CDATA[Match MS signals to molecules from a database by mass.]]></manual> | ||
<citations> | ||
<citation doi="10.1038/s41592-024-02197-7" url="" /> | ||
</citations> | ||
<PARAMETERS version="1.8.0" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/OpenMS/OpenMS/develop/share/OpenMS/SCHEMAS/Param_1_8_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<ITEMLIST name="stringlist" type="string" description="StringList Description" required="false" advanced="false" > | ||
<LISTITEM value="a"/> | ||
<LISTITEM value="bb"/> | ||
<LISTITEM value="ccc"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="intlist" type="int" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
<LISTITEM value="22"/> | ||
<LISTITEM value="333"/> | ||
</ITEMLIST> | ||
<ITEM name="item" value="bla" type="string" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="stringlist2" type="string" description="" required="false" advanced="false" > | ||
</ITEMLIST> | ||
<ITEMLIST name="intlist2" type="int" description="" required="false" advanced="false" > | ||
</ITEMLIST> | ||
<ITEM name="item1" value="7" type="int" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="intlist3" type="int" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="stringlist3" type="string" description="" required="false" advanced="false" > | ||
<LISTITEM value="1"/> | ||
</ITEMLIST> | ||
<ITEM name="item3" value="7.6" type="double" description="" required="false" advanced="false" /> | ||
<ITEMLIST name="doublelist" type="double" description="" required="false" advanced="false" > | ||
<LISTITEM value="1.22"/> | ||
<LISTITEM value="2.33"/> | ||
<LISTITEM value="4.55"/> | ||
</ITEMLIST> | ||
<ITEMLIST name="doublelist3" type="double" description="" required="false" advanced="false" > | ||
<LISTITEM value="1.4"/> | ||
</ITEMLIST> | ||
<ITEM name="file_parameter" value="" type="input-file" description="This is a file parameter." required="false" advanced="false" supported_formats="*.mzML,*.mzXML" /> | ||
<ITEM name="outdir_parameter" value="" type="output-dir" description="This is a outdir parameter." required="false" advanced="false" /> | ||
<ITEM name="advanced_parameter" value="" type="string" description="This is an advanced parameter." required="false" advanced="true" /> | ||
<ITEM name="flag" value="false" type="bool" description="This is a flag i.e. in a command line input it does not need a value." required="false" advanced="false" /> | ||
<ITEM name="noflagJustTrueFalse" value="true" type="string" description="This is not a flag but has a boolean meaning." required="false" advanced="false" restrictions="true,false" /> | ||
</PARAMETERS> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters