Entering edit mode
9.0 years ago
monstercolorfun
▴
10
Hi, wish to pick 10 species from a tree at random, and rewrite the newick file accordingly. I am programming the code to do that.
How can I do it? can someone clarify the logic?
You can edit the newick tree file using Sed,Awk, grep commands. As long as you are extracting the ten species out with newick defined values it would seem appropriate..
However..
As you are wanting to redo the tree. I really suggest you download the accession sequences of interest ( your ten) , perform an alignment with a program such as MAAFT then use IQtree. In the manual there are nice examples on how to select the best model, and settings. Between MAAFT and iqtree I would maybe also download an alignment program to manually check your alignments for flanking regions with poor coverage and trim them on the consensus length of all ten sequences. It sounds more complicated than it is, but pretty easy.