Thanks Julien and Bastien for your answers.
I think it's OK with Bastien's solution.
I have an additional question because maybe I didn't understand well how to use the program.
I simply want to group branches according to similar omega and the initial mapping is done with a homogenous model.
However, I though that for the model choice procedure it was important to have the correct rooted tree. Is it correct?
To answer to Julien:
My bppml version is 1.5.0 and the testNH version is the 0.1.0
All the best,
Sylvain