4
$\begingroup$

I would like to create a phylogenetic tree for the most species in my dataset.

I'm starting with around 1200 species, but since it's not good practice to align short and long sequences I tried filtering only for the species with the [15k-18k bp] range in length, but this leaves me with around 350 species in total.

Those sequences vary a lot in size, here's an histogram of the number of species I have data for enter image description here As you can see I have a lot of sequences with length [12k-15k bp] and [15k-18k bp] (values on the x axis are scaled by a factor of 3000 and then rounded). I would like maximise the species genetic information.
To do so I would like to extract the part of genome that is shared the most among all the species.

Is this achievable by using a regex?
I am not sure on the length and type of the query to be sure of not extracting non-homologous regions as it would create a big problem later on for the phylogenetic tree creation.

I can't make an alignment for all species because of the lack of computational power. That is why I'm trying to subset a piece of DNA that is the most shared (prior to the alignment, but I don't know if that is doable or logic)

My question is: how would you proceed to get the most phylogenetic data out of this dataset?

If you would use a regex, what type of query would you use?

More Info

Alignment

When I try to align 10 sequences drawn from the [15k-18k bp] range I get this result (the numbers on the right are the TaxID of the species).
enter image description here We can't see much here so I used an online MSA viewer [https://alignmentviewer.org/] enter image description here

Data

My data is one Fasta file containing mitochondrial genomes for all the species.

To do this preliminary analysis I only used 10 randomly chosen species with a sequence of length in the range [15k-18k bp].

$\endgroup$
2
  • 1
    $\begingroup$ Have you considered using only genes for the alignment instead of the entire sequence? $\endgroup$
    – terdon
    Commented Oct 23, 2023 at 13:47
  • 1
    $\begingroup$ Is there a way for you to find an existing vertebrate phylogeny (this seems to be your group of interest) based on a larger set of sequences and to prune it to the set you care about? e.g. idk here, see .newick and .tre dowloads. iTOL makes interactive tree exploration/pruning pretty easy. $\endgroup$ Commented Oct 24, 2023 at 1:55

2 Answers 2

2
$\begingroup$

Your overall approach is cool, given caveats (below) to adapt the method. I can fairly authoritatively say your specific methodological approach will not work regarding its phylogenetic strategy without changing it. This is due to a phenomenon where the number of mutations becomes so great it is impossible to recover the ancestral state, basically it randomises the phylogenetic signal, this especially occurs at the 3rd codon nucleotide positions, i.e. 1 in every 3 nucleotides, 33.3% of the entire data set. This violates a central tenant of phylogenetic theory, therefore I am afraid that you cannot build a tree using this approach, but again you can adapt it to work (below).

If you want only to use nucleotides then 16S is the only target available. However, 16S has been a good target for amphibians, therefore just aligning that gene and building a tree is cool. Its perfectly solid given prior work in vertebrates ...

Chan, K.O., Hertwig, S.T., Neokleous, D.N. et al. Widely used, short 16S rRNA mitochondrial gene fragments yield poor and erratic results in phylogenetic estimation and species delimitation of amphibians. BMC Ecol Evo 22, 37 (2022).

If you wish to use protein coding genes you need to switch amino acids and align those. In terms of conservation there alot of established tools rather than "reinvent the wheel". One program you could consider is AAcon, available here. This would give you can empirical basis for deducing which gene is

  • the most conserved
  • the most represented, i.e. "read-depth", or species representation.

... after its aligned, thereby yielding a genetic marker for phylogenetics. It uses a large number of metrics therefore most scenarios would be accommodated.

COX1 is good target and likely gene to emerge from AAcon analysis.

Building protein phylogenetic trees is a separate question.


Lacking computational power to align. That is solvable, even on small computers, and you can place that as a separate question stating your computer capacity (RAM and CPUs). It's not difficult to align 1000s even on a small machine, it's simply the strategy to do this. Algorithm performance and accuracy change rapidly.

$\endgroup$
2
$\begingroup$

It looks like these are random mitochondrial sequences pulled from NCBI, which is probably why the alignments aren't working well.

As a starting point, I recommend you make sure that all the mitochondrial DNA sequences are rotated and reverse-complemented as necessary to make sure that the same gene matches position 1 of the sequence. I prefer doing this for COX1, because it's a well-conserved gene. After doing that, it'll be much easier to look at the alignment of that gene alone, which will give you an idea of the complexity of extending the task to the full length of the mitochondrial genome.

I don't expect you'll find a long exact-match sequence that is consistently conserved across all species, even within COX1. It wouldn't surprise me if the longest conserved sequence were less than 16bp, with a few repeats of that sequence throughout the genome. If that is the case, you need to think about what to do with that information. Given the complexity of this intermediate problem you've asked about, it would be a good idea to think first about what you would do after you discovered there were no such sequence.

$\endgroup$

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.