Commit fedcd435 authored by Carine Rey's avatar Carine Rey
Browse files

end of multinomial meth adding

parent 0b0fd946
......@@ -95,8 +95,8 @@ let plot_merge_results ~plot_all_sites ~(res_by_tools:result list) ~tree ~faa ~t
| `Identical_WAG _ -> "Identical_WAG01"
| `Topological_LG _ -> "Topological_LG08"
| `Topological_WAG _ -> "Topological_WAG01"
| `Tdg09 _ -> "Tdg09_1-FDR,Tdg09_prob_post"
| `Multinomial _ -> "Mutinomial_LRT"
| `Tdg09 _ -> "Tdg09_1MinusFDR,Tdg09_prob_post"
| `Multinomial _ -> "Mutinomial_1MinusLRT"
in
string opt
) |> seq ~sep:","
......@@ -112,8 +112,8 @@ let plot_merge_results ~plot_all_sites ~(res_by_tools:result list) ~tree ~faa ~t
| `Identical_WAG _ -> "Identical_WAG01:0.9"
| `Topological_LG _ -> "Topological_LG08:0.9"
| `Topological_WAG _ -> "Topological_WAG01:0.9"
| `Tdg09 _ -> "Tdg09_1-FDR:0.9,Tdg09_prob_post:0.9"
| `Multinomial _ -> "Mutinomial_LRT:0.9"
| `Tdg09 _ -> "Tdg09_1MinusFDR:0.99,Tdg09_prob_post:0.99"
| `Multinomial _ -> "Mutinomial_1MinusLRT:0.95"
in
string opt
) |> seq ~sep:","
......
......@@ -330,6 +330,7 @@ for i in range(1, df_leaves_grouped.shape[0]+1):
LRTs.append(1-df_leaves_grouped[i][1])
df_final = pd.DataFrame({'Sites':sites, 'LikelihoodRatio':LRs, '1MinusLRT':LRTs})
df_final = df_final[["Sites","1MinusLRT","LikelihoodRatio"]]
logger.info("Final dataframe built")
......
......@@ -138,7 +138,7 @@ if args.tdg09 :
if args.multinomial :
df_multinomial = pd.read_csv(args.multinomial, sep="\t")
df_multinomial.rename(columns={'LRT': 'Mutinomial_LRT',
df_multinomial.rename(columns={'1MinusLRT': 'Mutinomial_1MinusLRT',
'LikelihoodRatio' :"Multinomial_LikelihoodRatio"}, inplace=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment