Skip to content

Commit 699fe6d

Browse files
jbrelsf2-nmdppbashyal-nmdp
authored andcommitted
Updated fix for the isvalid gl into pyard.py (#28)
1 parent d46fd47 commit 699fe6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyard/pyard.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ def isvalid(self, allele: str) -> str:
442442
:return: allele or empty
443443
:rtype: boolean
444444
"""
445-
v = lambda a: a in self.valid
446-
return v(allele)
445+
if not ismac(allele):
446+
return allele in self.valid
447+
return True
447448

448449
def isvalid_gl(self, glstring: str) -> str:
449450
"""

0 commit comments

Comments
 (0)