Skip to content

Commit

Permalink
Merge branch 'master' into 48-join-samples-by-custom-field
Browse files Browse the repository at this point in the history
  • Loading branch information
eudesbarbosa committed Apr 23, 2021
2 parents a6e5d8e + 7718baa commit 042ae76
Show file tree
Hide file tree
Showing 15 changed files with 1,436 additions and 161 deletions.
4 changes: 4 additions & 0 deletions snappy_pipeline/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class UnsupportedActionException(Exception):
"""Raised when user try to call action that isn't supported."""


class UnknownFiltrationSourceException(Exception):
"""Raised when user try to request an unknown filtration source."""


def expand_ref(config_path, dict_data, lookup_paths=None, dict_class=OrderedDict):
"""Expand "$ref" in JSON-like data ``dict_data``
Expand Down
2 changes: 1 addition & 1 deletion snappy_pipeline/workflows/abstract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def input_function(wildcards):
yield "ped", os.path.realpath(
"work/write_pedigree.{index_library}/out/{index_library}.ped"
).format(**wildcards)
name_pattern = self.prev_class.name_token.replace(r",[^\.]+", "")
name_pattern = self.prev_class.name_pattern.replace(r",[^\.]+", "")
tpl_path_out = os.path.join("work", name_pattern, "out", name_pattern)
for key, ext in zip(self.ext_names, self.ext_values):
yield key, tpl_path_out.format(ext=ext, **wildcards) + ext
Expand Down

0 comments on commit 042ae76

Please sign in to comment.