33from typing import Callable , Optional , List , Any
44import warnings
55import fsspec
6- from . import base_params , phenotype_params
6+ from malariagen_data . anoph import base_params , phenotype_params
77
88
99class AnophelesPhenotypeData :
@@ -21,6 +21,44 @@ class AnophelesPhenotypeData:
2121 _prep_sample_sets_param : Callable [..., Any ]
2222 haplotypes : Callable [..., Any ]
2323
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
61+
2462 def _load_phenotype_data (
2563 self ,
2664 sample_sets : base_params .sample_sets ,
0 commit comments