Louis BECQUEY

names in the progress bars

...@@ -845,7 +845,6 @@ def alignment_nt_stats(f, list_of_chains) : ...@@ -845,7 +845,6 @@ def alignment_nt_stats(f, list_of_chains) :
845 #print("\t>",f,"... ", flush=True) 845 #print("\t>",f,"... ", flush=True)
846 chains_ids = [ str(c) for c in list_of_chains ] 846 chains_ids = [ str(c) for c in list_of_chains ]
847 thr_idx = idxQueue.get() 847 thr_idx = idxQueue.get()
848 - print(thr_idx, flush=True)
849 848
850 # Open the alignment 849 # Open the alignment
851 align = AlignIO.read(path_to_seq_data + f"realigned/{f}++.afa", "fasta") 850 align = AlignIO.read(path_to_seq_data + f"realigned/{f}++.afa", "fasta")
...@@ -853,7 +852,8 @@ def alignment_nt_stats(f, list_of_chains) : ...@@ -853,7 +852,8 @@ def alignment_nt_stats(f, list_of_chains) :
853 #print("\t>",f,"... loaded", flush=True) 852 #print("\t>",f,"... loaded", flush=True)
854 853
855 # Compute statistics per column 854 # Compute statistics per column
856 - results = [ summarize_position(align[:,i]) for i in tqdm(range(alilen), position=thr_idx) ] 855 + pbar = tqdm(total=alilen, position=thr_idx, desc=f"Worker { thr_idx}: {f}", leave=False, )
856 + results = [ summarize_position(align[:,i]) for i in pbar ]
857 frequencies = np.array(results).T 857 frequencies = np.array(results).T
858 #print("\t>",f,"... loaded, computed", flush=True) 858 #print("\t>",f,"... loaded, computed", flush=True)
859 859
......