Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Julian1988
    Junior Member
    • May 2015
    • 3

    Importing SAM Files in Megan

    Hello there,

    to the most of you my problem is maybe trivial but somehow I'am still struggeling with this one. So here is the problem.

    I' have the data from some Illumina sequencing runs. Somewhat like 7 or 8 samples which contain between 20 - 30 million reads. I want to blastX these raw reads after clip and merge against viral nr becouse Im mainly interested in viruses. In a perfect world I want to work with diamond becouse it is so much faster than blast for aligning short reads against a reference sequence. But Diamond is also my worst nightmare when trying to import the output into MEGAN. When I try to import the output from a normal blastX it works perfectly. I import the blast output, the reads and the gi mapping file and get a nice tree. But with the Diamond output none of the reads could be assigned to at least one taxa.

    Here is my Diamond comand:

    ./diamond blastx -d viralprot -q ~/D4439_megan_analyse/D4439merged.fa --sam ~/diamond_output/diamondout.sam

    As an output I get a SAM file and when I try to import this into MEGAN the terror begins (it's also not working with the blast output from diamond).

    Quote from the manual:

    MEGAN can now parse files in SAM format [10]. Note, however, that SAM files usually do not contain the names of the taxa associated with the reference sequences and so one must supply suitable mapping files that map identifiers used for the reference sequences to NCBI taxa, KEGG, COG and/or SEED identifiers, see below.

    I get that I must provide a mapping file which tells MEGAN which identifiers belong to which NCBI taxa. But I hve no idea what file I hava to load. Am I just not getting the point here? Where can I find a suitable file? It would be very nice if someone clould help me with this. Im struggeling for a long time with this one. And working with Diamond would be such an improvement.

    With kind regards and thanks in advance,
    Julian
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    MEGAN manual says

    At startup, MEGAN automatically loads a copy of the complete NCBI and then displays the taxonomy as a rooted tree. The taxonomy is stored in an NCBI tree file and an NCBI mapping file, which are supplied with the program.
    Mapping files are available on the download page: http://ab.inf.uni-tuebingen.de/data/...d/welcome.html

    Have you tried the files there?

    Comment

    • Julian1988
      Junior Member
      • May 2015
      • 3

      #3
      Until now I think i tried all combinations without success.
      When you choose to import something from blast the porgram asks you for the file which in my case ist the SAM output from Diamond. A file containing the reads with which I did the blast. When you click on the taxonomy rider you have to choose as you can see in the picture.

      When I use the Blast output it works very well when I select the GI Map and load the GI mapping file from the website you mentioned. But for the other two options, synonyms and RefSeq mapping file I'am not shure what to use. And if I use the ncbi.map file for either of these it is also not working.

      From the Diamond manual it states:

      Reads imported into MEGAN lack taxo
      nomic or functional assignment. MEGAN requires mapping files which need to be downloaded separately at the MEGAN website and configured to be used.

      But the only mapping file for taxonomy that I see there is the GI file which Im allready using. So there must be something else.
      Attached Files

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Working...