Skip to content
Snippets Groups Projects
Commit b6b60fab authored by Le, Mia's avatar Le, Mia
Browse files

added digest save results

parent c988021b
No related branches found
No related tags found
No related merge requests found
...@@ -52,13 +52,13 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal ...@@ -52,13 +52,13 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal
for tool in prediction_tools: for tool in prediction_tools:
res_table.write(f'\t{tool}_msr_ks_pvalue') res_table.write(f'\t{tool}_msr_ks_pvalue')
# with open(os.path.join(cami.tmp_dir, f'{used_tools[0]}_{cami.uid}_relevance_scores.tsv'), 'r') as f: with open(os.path.join(cami.tmp_dir, f'{used_tools[0]}_{cami.uid}_relevance_scores.tsv'), 'r') as f:
# for line in f: for line in f:
# val_name = line.split('\t')[0] val_name = line.split('\t')[0]
# redisc_table.write(f'\t{val_name}') redisc_table.write(f'\t{val_name}')
# res_table.write('\n') res_table.write('\n')
# result dictionaries of the form {tool:list(value for each iteration)}
#result dictionaries of the form {tool:list(value for each iteration)}
tp_rate_dict = {k:list() for k in used_tools} tp_rate_dict = {k:list() for k in used_tools}
redisc_rate_dict = {k:list() for k in used_tools} redisc_rate_dict = {k:list() for k in used_tools}
module_size_dict = {k:list() for k in used_tools} module_size_dict = {k:list() for k in used_tools}
...@@ -142,10 +142,10 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal ...@@ -142,10 +142,10 @@ def make_seedvariation(cami, n_iterations, removal_frac=0.2, vis=False, plot=Fal
list(module_size_dict[pred_tool])) list(module_size_dict[pred_tool]))
res_table.write(f'\t{p_val}') res_table.write(f'\t{p_val}')
# with open(os.path.join(cami.tmp_dir, f'{tool}_{identifier}_relevance_scores.tsv'), 'r') as f: with open(os.path.join(cami.tmp_dir, f'{tool}_{identifier}_relevance_scores.tsv'), 'r') as f:
# for line in f: for line in f:
# rel_score = line.split('\t')[1].strip() rel_score = line.split('\t')[1].strip()
# res_table.write(f'\t{rel_score}') res_table.write(f'\t{rel_score}')
res_table.write('\n') res_table.write('\n')
print(f'Result tables are saved in the following locations:') print(f'Result tables are saved in the following locations:')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment