Skip to content
Snippets Groups Projects
Commit 28faa675 authored by nfontrod's avatar nfontrod
Browse files

src/db_utils/frequency_scripts/create_n_fill_exon_frequency_file.py: modification of get_freq_table

parent 219084ce
No related branches found
No related tags found
No related merge requests found
......@@ -99,10 +99,10 @@ def get_freq_table(ps: int, bed_file: Path, mutli_fnc: Callable,
for line in inbed:
arg = [line]
processes.append(pool.apply_async(mutli_fnc, arg))
my_res = []
pbar = tqdm(processes, desc=f'Processing {bed_file.name}')
for proc in pbar:
my_res.append(proc.get(timeout=None))
my_res = [proc.get(timeout=None) for proc in pbar]
pool.close()
pool.join()
df = pd.DataFrame(my_res)
df = df.melt(id_vars=["id", 'length'], var_name="ft",
value_name='frequency')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment