Skip to content

Commit 2e15f61

Browse files
committed
Allow background to be added in oncoprinter
1 parent 797f1d8 commit 2e15f61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/oncoprinter/preset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def is_match(self, text: str):
125125

126126
MATCH_POOL = {
127127
Alteration.AMP: MatchRule(startswith="amp"),
128+
Alteration.BACKGROUND: MatchRule(
129+
contains=["background", "no", "none", "na", "nan", "bg"], flexible=True
130+
),
128131
Alteration.GAIN: MatchRule(startswith="gain"),
129132
Alteration.HOMDEL: MatchRule(
130133
startswith="homdel", contains=["deep", "deletion"], flexible=True

0 commit comments

Comments
 (0)