@@ -119,10 +119,31 @@ def clean_up_gl(gl):
119119
120120
121121class Imputation (object ):
122- __slots__ = 'logger' , 'verbose' , 'populations' , 'netGraph' , 'priorMatrix' , 'full_hapl' , 'index_dict' , 'full_loci' , \
123- 'factor' , '_factor_missing_data' , 'cypher' , 'cypher_plan_b' , 'matrix_planb' , 'count_by_prob' , \
124- 'number_of_options_threshold' , 'plan' , 'option_1' , 'option_2' , \
125- 'haplotypes_number_in_phase' , 'save_space_mode' , 'nodes_for_plan_A' , 'unk_priors'
122+ __slots__ = (
123+ "logger" ,
124+ "verbose" ,
125+ "populations" ,
126+ "netGraph" ,
127+ "priorMatrix" ,
128+ "full_hapl" ,
129+ "index_dict" ,
130+ "full_loci" ,
131+ "factor" ,
132+ "_factor_missing_data" ,
133+ "cypher" ,
134+ "cypher_plan_b" ,
135+ "matrix_planb" ,
136+ "count_by_prob" ,
137+ "number_of_options_threshold" ,
138+ "plan" ,
139+ "option_1" ,
140+ "option_2" ,
141+ "haplotypes_number_in_phase" ,
142+ "save_space_mode" ,
143+ "nodes_for_plan_A" ,
144+ "unk_priors" ,
145+ )
146+
126147 def __init__ (self , net = None , config = None , count_by_prob = None , verbose = False ):
127148 """Constructor
128149 Intialize an instance of `Imputation` with a py2neo graph
@@ -394,7 +415,6 @@ def get_haplo_freqs(self, haplos, epsilon, n=25000):
394415 # haplos_joined = ["~".join(sorted(item)) for sublist in haplos for item in sublist]
395416 return self .netGraph .adjs_query (haplos_joined )
396417
397-
398418 # def get_haplo_freqs_miss(self, haplos, epsilon):
399419 # haplo_probs = {}
400420 # haplos_joined = ["~".join(sorted(item)) for sublist in haplos for item in sublist]
0 commit comments