diff --git a/oncopipe/oncopipe/__init__.py b/oncopipe/oncopipe/__init__.py index 5816dbb2..34d3a1e1 100755 --- a/oncopipe/oncopipe/__init__.py +++ b/oncopipe/oncopipe/__init__.py @@ -420,6 +420,8 @@ def _switch_on_column( sample_id = wildcards.tumour_id elif match_on == "normal": sample_id = wildcards.normal_id + elif match_on == "sample": + sample_id = wildcards.sample_id else: raise ValueError("Invalid value for `match_on`.") subset = samples.loc[samples["seq_type"] == wildcards.seq_type]