Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PryceMichener
    Junior Member
    • Sep 2015
    • 2

    #1

    Problems with the nexus format and generating a phylogeny

    I have 5 nuclear de novos and I was attempting to build a phylogeny out of them, but I'm running into a brick wall. I was initially trying to use MrBayes, but I can't figure out how to format the nexus file. My .fasta files are set up like this:

    >scaffold3 Locus_16_0 16.4 COMPLEX
    GAGTTTGCAAGGAAGCCTCCCAAACAGGATGTAAGCACAAAGAAGCAGAAACAGAAGAATGTGAACTTGGTGGATGAGCAGAGGGCAAAGAGATTGAAGT
    TAGGACCTGGTATGAAGGTGAAATATGATCAGGTCAAAGGAGGTTATTACATAGAGGTTGGTTTCTGTTATATAATATGTGTTGTTGATTAATAACAAGT
    TAAGTATGANNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGTAGGATAAACATGGGAATGGGAATCCAGTGGGTATTGCAGGCACTTCATCCTCAATGC
    CCCATACTGAAGTTGAAACATCAAATGATCATGAGGTTAGTATATACAATATAATCTGGTTAGACTATATTTAAATAAAATGTTGCTTCTTGCACTGATA
    TACATCATCTTGTTATCATTTGTAGGATGAATCTGTGAAAGCAATNTAACAATGTAGGAACATCATCATCACTTAAAATACCAGGGCTGCAACTTAGGAG
    AAGTAGGAGACTGTTAGTTCAGCCTACAAATCTATCAGATCCTGCTCCTTCACAGGTCCCAGAGCCTGTTATTTCTAAATGCCCAAATCCTGTTTTTTCA
    AAGCTAGCAGAACCAGTGTCCTTATCACATCATGTGGAAATACCAGCACCAAAAGTGGATCCTACAAGGAAGTTAAAGTCCTCTACACAGGCACAACCAG
    TGTTGCAACCCAGGAGAAGTAGCAGACTNNNNNNNNNNNNNNNNNNNNNNNNNNTAGAAAACAATCTTTTGGTGAAGGTTGTGTTGGGATGTTTATGACC
    TTGGTACTTTGTTTGGTTAACTGTGTATAACAAACCTATCAAACTTTTGTACTTNNNNNNNNNNNNNNNNNNATGGTTCAAAGTACAGTATATGAAAAAT
    TTGTCTTGGTGCACAAAAATTGGATTGTTTCATAATGTGCAGATATGTAACAAGTGTAGATGATCCAAAACTTTCATCATTGACATCAATTGTACATTTA
    CCATACATAAACAAGTGCATATTTCTATATTTTGTTGGTCATTATCATTTTAGGGAATATTACAATACCAACTAAATCCAAAG
    It's just a list of different loci and scaffolds that I got from a SOAPdenovo assembly. The nexus file seems to require a single fasta file where every species is represented, and I'm not sure how to go about doing that.

    Do I need to figure out which scaffolds are from the same location on each species so I can compare them, or can I compare them with what I have here? Will MrBayes work for this, or do I need to work with something else?
  • ATϟGC
    Member
    • Jun 2013
    • 56

    #2
    Hi,

    Yes will need to first identify which regions (scaffolds) are homologs (i.e. the same gene or comparable genomic regions). Some reciprocal blast algorithms might help you out with this.
    Once you have homologous scaffolds will need to align them for each of your 5 nuclear loci. I typically use the clustalW algorithm with Bioedit and them manually adjust the alignment. Your fasta file of scaffolds can be opened in bioedit and then you can select homologous scaffolds by highlighting them and then go to the "Accessory Application: tab and select "ClustalW multiple alignment". The manual adjustment can be a bit of an art. For example, if your loci code for protein it is good to keep codon frames in mind. Other mutational events like small inversions occur during DNA replication and might create stretches of apparently high levels of sequence divergence that are no more than areas that were reverse-complemented by stem-loop switching during replication.

    You will also need to remove all spaces from the sequence names before creating your nexus file. You can do this with find/replace in bioedit:

    To find/replace in titles go to "Edit" then "search" then "find/replace in titles"

    find: " "
    replace with: "_" (quotes are not included)

    here is an example of a nexus file format suitable for phylogenetic analysis with MrBayes:

    begin data;
    dimensions ntax=4 nchar=10;
    format datatype=DNA interleave=yes gap=-;
    matrix
    taxon_1 AACGATTCGT
    taxon_2 AAGGAT--CA
    taxon_3 AACGACTCCT
    taxon_4 AAGGATTCCT
    ;
    end;



    Keep in mind that you should also test for an appropriate substitution model with a program like MrModeltest2 since MrBayes is model based.

    Another thing to keep in mind is that you may have allellic variation since you have data from two homologous chromosomes (or more if your species are polyploid). If you are most interested in the evolutionary history of each locus individually you can do a MrBayes analysis for each locus individually from an alignment of all alleles. If you want to generate a species tree from all loci, a coalescent approach, such as *BEAST, will be more appropriate.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    20 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...