Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tatumdmortimer
    Junior Member
    • Jan 2013
    • 4

    #1

    Converting Mugsy output (MAF) to other formats, problems with +/- strand, overlaps

    I am aligning bacterial draft genomes to a reference genomes using mugsy v1.2.3, and I'm using the branch of Biopython that supports MAF files to parse the output and convert to other alignment formats (fasta, nexus).

    I've run into a couple problems:
    1) In some of the blocks the alignment is to the negative strand of the reference sequence. I think I've solved this problem by identifying those blocks and using Biopython's reverse complement feature to change all the sequence records in that block.
    2) It appears that some of the blocks overlap each other in reference to the positions in the reference sequence. This becomes a problem when I try to create a MAF index to help convert to other formats.

    Is there any way to specify a particular sequence as reference with mugsy? Anyone have any tools they would recommend to deal with the overlapping blocks?

    Thanks!

    Updated to add example of overlap:

    Here are the descriptions of the reference sequence for the first few alignment blocks (Sequence Name, Start Position, Length, Strand):

    MC2155.NC_008596 0 5508 +
    MC2155.NC_008596 5508 5 +
    MC2155.NC_008596 5513 54 +
    MC2155.NC_008596 5567 1 +
    MC2155.NC_008596 5568 431 +
    MC2155.NC_008596 5999 61 +
    MC2155.NC_008596 6060 96 +
    MC2155.NC_008596 6156 335 +
    MC2155.NC_008596 6491 1 +
    MC2155.NC_008596 6492 3835 +
    MC2155.NC_008596 10327 31344 +
    MC2155.NC_008596 46654 4517 -
    MC2155.NC_008596 50516 3967 +

    MC2155.NC_008596 52436 49969 -
    MC2155.NC_008596 54483 4 +
    Last edited by tatumdmortimer; 01-29-2014, 10:35 AM. Reason: Example Data
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    Can you share some sample data illustrating the overlapping blocks problem? e.g. Use a public E. coli dataset to create something similar?

    Comment

    • tatumdmortimer
      Junior Member
      • Jan 2013
      • 4

      #3
      I will try to reproduce this problem with some publicly available data. I have edited my post to show an example of the overlap in my own data. I find that if I just ignore the alignments to the negative strand of the reference, I do not have any problems. However, I am losing quite a bit of the alignment that way.

      Comment

      • tatumdmortimer
        Junior Member
        • Jan 2013
        • 4

        #4
        I believe I have solved the problem. I did not realize that the start positions for the negative strand were in reference to the reverse complement of the entire input sequence, so my correction for the start positions when reverse complementing was incorrect and did not originally fix the overlaps as I thought it should.

        Comment

        • maubp
          Peter (Biopython etc)
          • Jul 2009
          • 1544

          #5
          Oh good - well done

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            The Factors Reshaping Genome Assembly
            by SEQadmin2



            When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
            Today, 07:04 AM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 11:11 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-17-2026, 06:27 AM
          0 responses
          39 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          55 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          61 views
          0 reactions
          Last Post SEQadmin2  
          Working...