From 9fa9a33f43273803734e29691a15eca4d0a5b868 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 5 Sep 2024 17:00:08 -0400 Subject: [PATCH] Re-generate galaxy.xsd with assertion parameters. --- lib/galaxy/tool_util/xsd/galaxy.xsd | 1144 +++++++++++++++++++++++++++ 1 file changed, 1144 insertions(+) diff --git a/lib/galaxy/tool_util/xsd/galaxy.xsd b/lib/galaxy/tool_util/xsd/galaxy.xsd index 378ed55c7456..b8d61030bb05 100644 --- a/lib/galaxy/tool_util/xsd/galaxy.xsd +++ b/lib/galaxy/tool_util/xsd/galaxy.xsd @@ -2171,6 +2171,1150 @@ module. An individual test assertion definition. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``. The assertion tests only the first line. +Number of columns can optionally also be specified with ``delta``. Alternatively the +range of expected occurences can be specified by ``min`` and/or ``max``. + +Optionally a column separator (``sep``, default is `` ``) `and comment character(s) +can be specified (``comment``, default is empty string). The first non-comment +line is used for determining the number of columns. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +The assertion implicitly also asserts that an element matching ``path`` exists. +With ``negate`` the result of the assertion (on the equality) can be inverted (the +implicit assertion on the existence of the path is not affected). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +The assertion implicitly also asserts that an element matching ``path`` exists. +With ``negate`` the result of the assertion (on the matching) can be inverted (the +implicit assertion on the existence of the path is not affected). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +The assertion implicitly also asserts that an element matching ``path`` exists. +With ``negate`` the result of the implicit assertions can be inverted. +The sub-assertions, which have their own ``negate`` attribute, are not affected +by ``negate``. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + +``` + +The assertion implicitly also asserts that an element matching ``path`` exists. +With ``negate`` the result of the assertion (on the equality) can be inverted (the +implicit assertion on the existence of the path is not affected). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + +``` + +The assertion implicitly also asserts that an element matching ``path`` exists. +With ``negate`` the result of the assertion (on the matching) can be inverted (the +implicit assertion on the existence of the path is not affected). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + +``` + +With ``negate`` the result of the assertion can be inverted. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + +``` + +Alternatively to ``n`` and ``delta`` also the ``min`` and ``max`` attributes +can be used to specify the range of the expected number of occurences. +With ``negate`` the result of the assertion can be inverted. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). + +$attribute_list::5]]> + + + + + + + + + + + +``` + +With ``negate="true"`` the outcome of the assertions wrt the precence and number +of ``path`` can be negated. If there are any sub assertions then check them against + +- the content of the attribute ``attribute`` +- the element's text if no attribute is given + +```xml + + + + + +``` + +Sub-assertions are not subject to the ``negate`` attribute of ``xml_element``. +If ``all`` is ``true`` then the sub assertions are checked for all occurences. + +Note that all other XML assertions can be expressed by this assertion (Galaxy +also implements the other assertions by calling this one). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + +``` + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + +``` + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + +With ``n`` and ``delta`` (or ``min`` and ``max``) assertions on the number of +archive members matching ``path`` can be expressed. The following could be used, +e.g., to assert an archive containing n±1 elements out of which at least +4 need to have a ``txt`` extension. + +```xml + + +``` + +In addition the tag can contain additional assertions as child elements about +the first member in the archive matching the regular expression ``path``. For +instance + +```xml + + + +``` + +If the ``all`` attribute is set to ``true`` then all archive members are subject +to the assertions. Note that, archive members matching the ``path`` are sorted +alphabetically. + +The ``negate`` attribute of the ``has_archive_member`` assertion only affects +the asserts on the presence and number of matching archive members, but not any +sub-assertions (which can offer the ``negate`` attribute on their own). The +check if the file is an archive at all, which is also done by the function, is +not affected. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + ``). + +Alternatively the range of the expected number of channels can be specified by ``min`` and/or ``max``. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). +Alternatively the range of the expected height can be specified by ``min`` and/or ``max``. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). +Alternatively the range of the expected mean intensity value can be specified by ``min`` and/or ``max``. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). + +The labels must be unique. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). + +The primary usage of this assertion is to verify the number of objects in images with uniquely labeled objects. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``). +Alternatively the range of the expected width can be specified by ``min`` and/or ``max``. + +$attribute_list::5]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +