Your strategy is fine but the order is wrong.
What I would do is:
Run usearch and check the output of that in HMMER3. You can then use this to kick out stuff from usearch, that are not real homologues. Thats what HMMER3, hmmeralign (I dunno hmmersearch), are doing (below). It's also possible the HMMER approaches could replace usearch.
Once you have identified your homologues with confidence you can then align each separate group via muscle5
Your way
What you are doing is using HMMER3 to assess the quality of the alignment. What could be a problem is feeding usearch straight into muscle5 ... a non-homologous protein will get you a bad alignment. The bad alignment will not give you a good tree. Both aligners and trees need nice homologues, otherwise they don't work. The errors between aligner (muscle5) and tree are also synergistic. Thus if that bad sequences isn't removed by hmmer stuff then alignment errors compound onto sequence errors in the bad sequence giving a really bad tree.
You could of course align, HMMER3, filter stuff then align again (thats much better a bit complicated).
I don't know how good usearch is - but you are relying on it alot, supposing it gives you orthologues at <25% identity that could be any protein. Basically you are feeding that stuff straight into muscle5 and if HMMER3 doesn't trap it that will go straight onto a tree. That could be a bad alignment and that would be a bad tree.
Summary
What you have to understand is phylogenetic trees are very sensitive to bad sequences, i.e. stuff that is not true homologues. The aligner will also be sensitive. There will also be bad synergistic relationships between the two.
HMMER3 and is associated methods (hmmeralign) are trying to clean stuff up before that stage, rather than simply relying on usearch. Prof Eddie (HMMER and pfam[?] author) has an excellent reputation in this area - not in tree building but identifying protein families and thats what you are doing here.
hmmeralign doesn't replace muscle5, but it will provide a very good assessment of the protein families around a given seed. It's going to give you the homologues. That output would then go to muscle5 to get homologous sites.
The tree needs both homologues and homologous sites.
The whole hmmer project has a really good reputation in the area of protein family identification and thats why its been recommended.
Probable simple answer I think the answer to the question is you're are confusing hmmeralign with muscle5. They are complimentary but distinct. Again hmmeralign identifies homologues and the muscle5 designates homologous sites.
Answering the comments
50% cut-off
It looks like usearch clusters according to a %age identity threshold.
There are three weaknesses:
- Gene duplication can take place about 50% ... it depends whether thats cool, usually it isn't, but it's your call.
- There can be complete change of function >50% identity and this is about the definition of a homologue. If you are using a functional definition its not a homologue
- Homologues can have <<50% identity and thats very common certainly in viruses I don't know about bacteria.
hmmersearch is going to rank your data according to the hmmer algorithms. It's going to be like blast,but all hmmer algorithms are focused around defining protein families (it's a better approach than blast for this application). So it provides another option to assess the output of usearch. Thus if there a gene duplication for example you should be able to spot it (it will be a sharp break in the continuous output). This will help you assess you 50% cut-off.
hmmeralign would be quite cool, because you can take a representation of usearch and then search that via hmmeralign and see if you get a similar output. It is extremely important for assessing 50% cut-off, does the homology drop below 50%? hmmeralign will tell you, but it must see the complete original database (not the stuff extracted from usearch. You can cross check that with hmmersearch to assess where hmmeralign is making the cut-off. So hmmeralign will independently (or usearch) will find you homologues and hmmersearch will give you an insight about how it's done it.