Protocol for the alignment, tree building, and ancestral sequence reconstruction of metagenomic protein coding sequences.