Skip to content

Commit

Permalink
add sample to match_on option in op.switch_on_column
Browse files Browse the repository at this point in the history
  • Loading branch information
whelena committed Jul 7, 2020
1 parent 2c251b5 commit 7a34b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oncopipe/oncopipe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7a34b04

Please sign in to comment.