@@ -13,6 +13,7 @@ class AnophelesPhenotypeData:
1313 Inherited by AnophelesDataResource subclasses (e.g., Ag3).
1414 """
1515
16+ # Type annotations for MyPy
1617 _url : str
1718 _fs : fsspec .AbstractFileSystem
1819 sample_metadata : Callable [..., pd .DataFrame ]
@@ -21,43 +22,8 @@ class AnophelesPhenotypeData:
2122 _prep_sample_sets_param : Callable [..., Any ]
2223 haplotypes : Callable [..., Any ]
2324
24- def __init__ (
25- self ,
26- url : str ,
27- fs : fsspec .AbstractFileSystem ,
28- sample_metadata : Callable [..., pd .DataFrame ],
29- sample_sets : list [str ],
30- snp_calls : Callable [..., Any ],
31- prep_sample_sets_param : Callable [..., Any ],
32- haplotypes : Callable [..., Any ],
33- ):
34- """
35- Initialize the AnophelesPhenotypeData class.
36-
37- Parameters
38- ----------
39- url : str
40- Base URL for accessing phenotype data.
41- fs : fsspec.AbstractFileSystem
42- File system interface for accessing remote data.
43- sample_metadata : callable
44- Function to retrieve sample metadata.
45- sample_sets : list of str
46- List of available sample sets.
47- snp_calls : callable
48- Function to retrieve SNP calls.
49- prep_sample_sets_param : callable
50- Function to prepare sample sets parameter.
51- haplotypes : callable
52- Function to retrieve haplotype data.
53- """
54- self ._url = url
55- self ._fs = fs
56- self .sample_metadata = sample_metadata
57- self .sample_sets = sample_sets
58- self .snp_calls = snp_calls
59- self ._prep_sample_sets_param = prep_sample_sets_param
60- self .haplotypes = haplotypes
25+ def __init__ (self , ** kwargs ):
26+ super ().__init__ (** kwargs )
6127
6228 def _load_phenotype_data (
6329 self ,
0 commit comments