1
$\begingroup$

I have two new amino acid gene sequences that I want to align to a reference genome. Is it a good idea to have a combined phylogenetic tree? what will this type phylogenetic analysis called?

$\endgroup$
2
  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Commented Oct 25, 2022 at 19:08
  • 1
    $\begingroup$ What is the actual question you are trying to answer here? Are you trying to identify the gene coding for these proteins? Is the genome annotated? Are you working on a species that has introns? Alternative splicing? $\endgroup$
    – terdon
    Commented Oct 26, 2022 at 8:55

2 Answers 2

2
$\begingroup$

Edit: just to point out a tree needs 4 taxa (sequences), so rather than one reference genome, 3 reference genomes. Thus for Blast you might need to produce a database (using 3 reference genomes) before Blasting. There are other Blast approaches to obtaining a large meaningful sample size ... thats a separate question


It called a combined alignment, or concatenated genes.

The theory is simply that if two genes evolve at noticeably different rates they can't be combined into a single alignment and make a tree from them. The theory goes back a long but the modern test is in IQTREE.

You take your two alignments and test them for equal rates via IQTREE

iqtree2 -s example.phy -p example.nex --symtest-only

Testing for a combined alignment is also described in my past answer here: The previous question was can you combined an rRNA gene with a protein gene and the answer is ...

Okay, you can't concatenate genes into a singular matrix particularly if these are rRNA genes versus protein genes, except in rare situations where the tests say 'thats okay' (below). This is simply because they evolve at very different rates rRNA genes have loci which evolve very slowly and are highly conserved.


The first part of the question was mapping the gene to a reference genome. Anything will do that ... local Blast works and using that is described in my answer to this question here:

If you loads of fasta seqs you'll need to make a database...

makeblastdb -in example700-1000.fa -parse_seqids -blastdb_version 5  -out laura700-1000.db -title "Laura 700 - 1000" -dbtype nucl

Then do this ...

blastn -query laura.fas -db laura700-1000.db -evalue 1e-6 -num_threads 4 -out blasthits.txt

However if its just reference vs. query then you can just use the above command.


The alignment is best done via a specialist alignment package Muscle Super5 and that is described in my answer here. This is done after your obtained the homologous regions in your reference genomes.

HMM Super5 is a hidden Markov model (HMM) where gap penalties and the substitution matrix are the parameters at the centre of the model. That is the answer, thats why you can't change it - it does it itself and thats its purpose. Thus one algorithm (super5) is HMM for the gap-penalty and the other one I suspect isn't.

$\endgroup$
6
  • $\begingroup$ Can you really get meaningful results using just two proteins, each aligned to its own reference genome, as input? Surely any tree built from such limited data will be unreliable, right? Why would you even build a tree if all you have are two proteins? Also, blast really isn't a good tool for this unless we know the OP is working on species with no introns, and in any case, they would need tblastn if they start from proteins. $\endgroup$
    – terdon
    Commented Oct 26, 2022 at 8:53
  • $\begingroup$ @terdon a tree needs 4-taxa ... so 3 reference genomes and the sequence of interest. Low reliability ... no ancient history, most tree methods moved on, its not affected by the sample size - absolutely not. Blast, despite being slow, is the work behind most published phylogenies. .. introns .. it doesn't matter most quality tree building methods (IQTREE for example), ignore indels (introns are excluded) - why is a separate question -- thats a long explanation -- but based on their mutation matrix (indels are absent). $\endgroup$
    – M__
    Commented Oct 26, 2022 at 10:49
  • $\begingroup$ Edit comment above ... introns are excluded as phylogenetic information if they result in indels, things like Beast, IQTREE, RAxML all ignore indels. Thus even if they is a single indel for 10000 sequences that entire column is excluded for that particular nucleotide/amino acid. $\endgroup$
    – M__
    Commented Oct 26, 2022 at 11:07
  • $\begingroup$ OK, but how would you even build a tree using just two alignments, of two sequences each? As you said you need at least 4 taxa, and if (big if) I understand the question correctly, the OP has at best 2 species (no idea if they're the same taxon or not) and at worse just two genes from the same species. $\endgroup$
    – terdon
    Commented Oct 26, 2022 at 11:38
  • 1
    $\begingroup$ Brilliant, thanks! $\endgroup$
    – terdon
    Commented Oct 26, 2022 at 11:47
0
$\begingroup$

I would strongly recommend to find an outgroup or at least a fourth sequence. Building a phylogenetic tree with 3 sequences is doable but is tricky and error prone.

If you still want to do a 3-sequence analysis, you can align the two homologous proteins to the reference genome with exonerate, spaln or miniprot, extract the reference subsequence in the alignment, do a proper multiple-sequence alignment (MSA) with muscle or MAFFT, build a tree and put the root at the middle point of the longest branch (this assumes a molecular clock). After that, you can do typical phylogenetic analysis.

Whether the above works depends on the divergence of your sequences. If they are closely related and one sequence is a clear outgroup to the other two, the procedure could give you something, though having more sequences is still recommended.

EDIT in response to the comments: midpoint rooting assumes an approximate molecular clock across the whole tree. Severe violation of the assumption may lead to a wrong root. This approach is not very reliable due to the clock assumption.

$\endgroup$
3
  • $\begingroup$ Definitely agreed on 4 sequences. IMO an unrooted tree obviates the need to assign an outgroup. BTW mid-point rooting doesn't assume a global molecular clock, most tree building produce phylograms - non-clocks (Beast is an exception, options depending). UPGMA method assumes a clock. $\endgroup$
    – M__
    Commented Oct 26, 2022 at 17:14
  • $\begingroup$ @M__ I am repeating myself, so I don't think this discussion goes anywhere. I have deleted my comments and summarized them in the answer. Feel free to disagree but I am confident in my knowledge as well. $\endgroup$
    – user172818
    Commented Oct 27, 2022 at 4:03
  • $\begingroup$ Thanks @user172818 I've done likewise. $\endgroup$
    – M__
    Commented Oct 27, 2022 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.