Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • roliwilhelm
    Member
    • Jun 2012
    • 38

    #16
    Hi jtamames,

    I hate to say it, but that is probably the topic of a new thread. If you have exhausted your trouble-shooting, I'd open a new thread and detail the error and what you've attempted. Then, contact Dr. Daniel Huson and include a link to your thread so that Dr. Huson's response may be of benefit to the community.

    Thanks!

    Comment

    • Daniel.Huson
      Junior Member
      • Jul 2014
      • 6

      #17
      How to save functional counts using command line MEGAN

      [QUOTE=jtamames;150694]
      To save functional counts using MEGAN in command line requires that the corresponding functional viewer is opened, using the command
      show window=KeggViewer; (or CogViewer or SeedViewer).

      The following script opens a file, shows the KeggViewer, sets the command "context" to the KeggViewer, uncollapses the tree, selects all the leaves and then exports counts for KEGG paths.

      open file='/Users/huson/tmp/data.rma';
      show window=KeggViewer;
      set context=KeggViewer;
      update;
      uncollapse nodes=all;
      select nodes=leaves;
      export what=CSV format=keggpath_count separator=tab file='/Users/huson/tmp/counts.txt';
      quit;

      Comment

      • felipelira3
        Member
        • Oct 2012
        • 11

        #18
        Can not export KEGG annotations

        Hi Daniel,

        I tried to use example to export but it doesn't work. My command file contains this:

        Code:
        open file='all_samples.CARD.daa.m8.reduced.contigs_names.fasta.daa.m8.with_filename.rma';
        show window=KeggViewer;
        set context=KeggViewer;
        update;
        uncollapse nodes=all;
        select nodes=leaves;
        export what=CSV format=keggpath_count separator=tab file='all_samples.CARD.daa.m8.reduced.contigs_names.fasta.daa.m8.with_filename.rma.out_kegg';
        quit;
        The output was this:

        Code:
        Command: set context=KeggViewer;
        Executing: set context=KeggViewer;
        Context set to: KeggViewer
        Command: update;
        Executing: update;
        updating Kegg viewer
        kegg2data: 0
        Induce KEGG tree, keeping 0 of 30787 nodes for 0 classes
        No KEGG data available
        Command: uncollapse nodes=all;
        Executing: uncollapse nodes=all;
        kegg2data: 0
        Induce KEGG tree, keeping 0 of 30787 nodes for 0 classes
        No KEGG data available
        Command: select nodes=all;
        Executing: select nodes=all;
        Number of nodes selected: 1
        Command: export what=CSV format=keggpath_count separator=tab file='out_kegg';
        Executing: export what=CSV format=keggpath_count separator=tab file='out_kegg';
        Export in CSV format: Initializing
        KEGG to counts
        done 1
        Message - Wrote 1 line(s) to file: out_kegg
        Command: quit;
        Executing: quit;
        And the content of my output file was a single line like this: "KEGG;"

        Comment

        • Daniel.Huson
          Junior Member
          • Jul 2014
          • 6

          #19
          It looks like you are using MEGAN5, please consider using MEGAN6.
          Unfortunately, don't have time to fix MEGAN5 issues, but are you sure that your file has KEGG assignments? That might be the problem.

          Comment

          • felipelira3
            Member
            • Oct 2012
            • 11

            #20
            MEGAN5 instead of MEGAN6

            Hi Daniel,
            I am using MEGAN5 with the most actual mapping file. Using it at the interactive mode I can determine the KEGG annotation. The problem is when I use it by command line. I will try to use MEGAN6 by command line.

            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
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            33 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...