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

      • 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, Yesterday, 11:13 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 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...