Skip to content

Commit

Permalink
增加类构造函数的参数类型
Browse files Browse the repository at this point in the history
  • Loading branch information
mahui-cn committed Dec 10, 2024
1 parent eb09cf2 commit f605f22
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions haplotyping.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@ def HaplogroupList(self):

def __init__(
self,
haploTreeFileName=None,
source=None,
isYorMt=None,
confirmedPositiveHaplo=3,
allowedNegativeHaplo=2,
maxHaploCount=5,
haploKey="n",
childrenKey="c",
snpListKey="m",
snpKey="v",
pos19Key="p19",
pos38Key="p38",
posKey="p",
ancestralKey="a",
derivedKey="d",
haploTreeFileName: str = None,
source: str = None,
isYorMt: str = None,
confirmedPositiveHaplo: int = 3,
allowedNegativeHaplo: int = 2,
maxHaploCount: int = 5,
haploKey: str = "n",
childrenKey: str = "c",
snpListKey: str = "m",
snpKey: str = "v",
pos19Key: str = "p19",
pos38Key: str = "p38",
posKey: str = "p",
ancestralKey: str = "a",
derivedKey: str = "d",
):
self.__source = source
self.__is_y_mt = isYorMt
Expand Down

0 comments on commit f605f22

Please sign in to comment.