Skip to content

Commit af0d089

Browse files
committed
Merge branch 'release_25.1' into release_26.0
2 parents 31a73e5 + 13558b8 commit af0d089

File tree

4 files changed

+76
-2
lines changed

4 files changed

+76
-2
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.k8s_ci.Dockerfile
22
.venv
33
database
4-
node_modules
4+
**/node_modules

lib/galaxy/config/sample/tool_conf.xml.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<tool file="${model_tools_path}/merge_collection.xml" />
4545
<tool file="${model_tools_path}/relabel_from_file.xml" />
4646
<tool file="${model_tools_path}/filter_from_file.xml" />
47+
<tool file="${model_tools_path}/filter_from_file_1.1.0.xml" />
4748
<tool file="${model_tools_path}/sort_collection_list.xml" />
4849
<tool file="${model_tools_path}/harmonize_two_collections_list.xml" />
4950
<tool file="${model_tools_path}/cross_product_flat.xml" />

lib/galaxy/dependencies/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import os
6+
import re
67
import sys
78
from os.path import (
89
dirname,
@@ -350,6 +351,12 @@ def check_omero_py(self):
350351
return "omero" in self.file_sources
351352

352353

354+
def strip_comment(line):
355+
# lifted from https://github.com/tox-dev/tox/commit/3c6b4f204e89852c4b7536b246a66d20be6d39ec
356+
# xref https://github.com/pyupio/dparse/issues/34
357+
return re.sub(r"\s+#.*", "", line).strip()
358+
359+
353360
def optional(config_file=None):
354361
if not config_file:
355362
config_file = find_config_file(["galaxy", "universe_wsgi"], include_samples=True)
@@ -360,5 +367,5 @@ def optional(config_file=None):
360367
conditional = ConditionalDependencies(config_file)
361368
for dependency in conditional.conditional_reqs:
362369
if conditional.check(dependency.name):
363-
rval.append(dependency.line)
370+
rval.append(strip_comment(dependency.line))
364371
return rval
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<tool id="__FILTER_FAILED_DATASETS__"
2+
name="Filter failed datasets"
3+
version="1.1.0"
4+
tool_type="filter_failed_datasets_collection">
5+
<description></description>
6+
<type class="FilterFailedDatasetsTool" module="galaxy.tools" />
7+
<action module="galaxy.tools.actions.model_operations"
8+
class="ModelOperationToolAction"/>
9+
<edam_operations>
10+
<edam_operation>operation_3695</edam_operation>
11+
</edam_operations>
12+
<inputs>
13+
<param type="data_collection" collection_type="list,list:paired" name="input" label="Input Collection" />
14+
<param type="data" name="replacement" optional="true" label="Replace failed elements with this dataset" help="If provided, failed elements will be replaced with this dataset"/>
15+
</inputs>
16+
<outputs>
17+
<collection name="output" format_source="input" type_source="input" label="${on_string} (filtered failed datasets)" >
18+
</collection>
19+
</outputs>
20+
<tests>
21+
<!-- Test framework has no way of creating a collection with
22+
failed elements, so best we can do is verify identity on
23+
an okay collection. API tests verify this tool works
24+
though.
25+
-->
26+
<test>
27+
<param name="input">
28+
<collection type="list">
29+
<element name="e1" value="simple_line.txt" />
30+
</collection>
31+
</param>
32+
<output_collection name="output" type="list">
33+
<element name="e1">
34+
<assert_contents>
35+
<has_text_matching expression="^This is a line of text.\n$" />
36+
</assert_contents>
37+
</element>
38+
</output_collection>
39+
</test>
40+
</tests>
41+
<help><![CDATA[
42+
43+
========
44+
Synopsis
45+
========
46+
47+
Removes datasets in error (red) from a collection.
48+
49+
===========
50+
Description
51+
===========
52+
53+
This tool takes a dataset collection and filters out (removes) datasets in the failed (red) state. This is useful for continuing a multi-sample analysis when one or more of the samples fails at some point.
54+
55+
.. image:: ${static_path}/images/tools/collection_ops/filter_error.svg
56+
:width: 500
57+
:alt: Filter failed datasets
58+
59+
-----
60+
61+
.. class:: infomark
62+
63+
This tool will create new history datasets from your collection but your quota usage will not increase.
64+
65+
]]></help>
66+
</tool>

0 commit comments

Comments
 (0)