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
            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, detection...
            Today, 06:46 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-28-2026, 09:51 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          67 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          47 views
          0 reactions
          Last Post SEQadmin2  
          Working...