Unconfigured Ad

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

    #1

    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

      • kinpict.com
        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by kinpict.com
        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
        Today, 06:37 PM
      • 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, 11-12-2026, 07:59 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-05-2026, 09:25 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-03-2026, 11:54 AM
      2 responses
      56 views
      0 reactions
      Last Post kinpict.com  
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      175 views
      0 reactions
      Last Post SEQadmin2  
      Working...