File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ def create_db(args):
171171 else :
172172 clustering_file = args .external_clustering
173173 strains = pd .read_csv (clustering_file , dtype = str ).groupby (args .clustering_col_name )
174-
174+ all_isolates = []
175+
175176 sys .stderr .write ("Extracting properties of database\n " )
176177 # Get rlist
177178 if args .distances is None :
@@ -203,6 +204,7 @@ def create_db(args):
203204 num_isolates = len (isolate_list )
204205 if num_isolates >= args .min_count :
205206 lineage_dbs [strain ] = strain_db_name
207+ all_isolates .extend (isolate_list )
206208 if os .path .isdir (strain_db_name ) and args .overwrite :
207209 sys .stderr .write ("--overwrite means {strain_db_name} will be deleted now\n " )
208210 shutil .rmtree (strain_db_name )
@@ -291,7 +293,7 @@ def create_db(args):
291293 model .save ()
292294
293295 # Print combined strain and lineage clustering
294- print_overall_clustering (overall_lineage ,args .output + '.csv' ,isolate_list )
296+ print_overall_clustering (overall_lineage ,args .output + '.csv' ,all_isolates )
295297
296298 # Write scheme to file
297299 with open (args .db_scheme , 'wb' ) as pickle_file :
You can’t perform that action at this time.
0 commit comments