diff --git a/pplacer_src/guppy_to_csv.ml b/pplacer_src/guppy_to_csv.ml index aaebb4fb..0ff35cbf 100644 --- a/pplacer_src/guppy_to_csv.ml +++ b/pplacer_src/guppy_to_csv.ml @@ -35,7 +35,8 @@ object (self) |> List.cons ["origin"; "name"; "multiplicity"; "edge_num"; "like_weight_ratio"; "post_prob"; "likelihood"; "marginal_like"; "distal_length"; - "pendant_length"; "classification"; "map_ratio"; "map_overlap"] + "pendant_length"; "classification"; "map_ratio"; "map_overlap"; + "map_identity"] |> self#write_ll_tab end diff --git a/pplacer_src/placement.ml b/pplacer_src/placement.ml index 2e2fb488..ff5ed09a 100644 --- a/pplacer_src/placement.ml +++ b/pplacer_src/placement.ml @@ -141,7 +141,8 @@ let to_strl_gen fint ffloat ftaxid default place = let map_ratio, map_overlap = Option.map_default (Tuple2.map some some) (None, None) place.map_identity (* eta expansion !! *) - and fopt f xo = Option.map_default f default xo in + and fopt f xo = Option.map_default f default xo + and fidentity x = ffloat (fst x) in [ fint place.location; ffloat place.ml_ratio; @@ -153,6 +154,7 @@ let to_strl_gen fint ffloat ftaxid default place = fopt ftaxid place.classif; fopt ffloat map_ratio; fopt fint map_overlap; + fopt fidentity place.map_identity; ] let to_strl =