Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • smra error

    Hi,

    I am getting the following error while using smra.

    Code:
     java -jar /srma/srma-0.1.6/srma-0.1.6.jar I=KLM_sorted.bam O=KLM_sorted_smra.bam R=/Genome/hg18/hg18.fa VALIDATION_STRINGEN
    CY=SILENT
    [Thu Jun 24 16:12:12 SGT 2010] srma.SRMA INPUT=KLM_sorted.bam OUTPUT=KLM_sorted_smra.bam REFERENCE=/Genome/hg18/hg18.fa VALIDATION_STRINGENCY=SILENT    OFFSET=20 MIN_MAPQ=0 MINIMUM_ALLELE_PROBABILITY=0.1 MINIMUM_ALLELE_COVERAGE=3 MAXIMUM_TOTAL_COVERAGE=100 CORRECT_BASES=false USE_SEQUENCE_QUALITIES=true QUIET_STDERR=false MAX_HEAP_SIZE=8192 MAX_QUEUE_SIZE=65536 NUM_THREADS=1 TMP_DIR=/tmp/userrig VERBOSITY=INFO QUIET=false COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000
    Allele coverage cutoffs:
    coverage:  1    minimum allele coverage: 0
    coverage:  2    minimum allele coverage: 0
    coverage:  3    minimum allele coverage: 0
    coverage:  4    minimum allele coverage: 1
    coverage:  5    minimum allele coverage: 1
    coverage:  6    minimum allele coverage: 1
    coverage:  7    minimum allele coverage: 2
    coverage:  8    minimum allele coverage: 2
    coverage:  9    minimum allele coverage: 3
    coverage: >9    minimum allele coverage: 3
    Records processsed: 65534 (last chr10:1904158-1904236)                                                      Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
    [Thu Jun 24 16:16:07 SGT 2010] srma.SRMA done.
    Runtime.totalMemory()=954466304
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
            at java.util.LinkedList.addBefore(LinkedList.java:795)
            at java.util.LinkedList.add(LinkedList.java:215)
            at srma.ThreadPoolLinkedList.add(ThreadPoolLinkedList.java:19)
            at srma.SRMA.processToAddToGraphList(SRMA.java:485)
            at srma.SRMA.doWork(SRMA.java:272)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:150)
            at srma.SRMA.main(SRMA.java:94)
    How much should I specify for MAX_HEAP_SIZE?

  • #2
    I usually set my java memory heap quite high for this task e.g.

    #!/bin/sh
    # filename = srma & is executable

    java -Xmx4000m -jar /export/opt/srma/build/jar/srma-0.1.6.jar $*
    That gives it about 4Gb of RAM to work with. Perhaps bump yours up to 4/8Gb.

    Comment


    • #3
      Originally posted by seq_GA View Post
      How much should I specify for MAX_HEAP_SIZE?
      Originally posted by zee View Post
      I usually set my java memory heap quite high for this task e.g.

      That gives it about 4Gb of RAM to work with. Perhaps bump yours up to 4/8Gb.
      This is an interesting question. I usually set it to ~1.25GB for 30x coverage, but it could require more if there is significantly more coverage. Let me know your mean coverage and heap size that works so I can enlighten myself.

      Comment


      • #4
        Hi,
        The mean coverage is about 110. I am yet to try the heap size adn ranges file which is giving trouble.

        Comment


        • #5
          Originally posted by seq_GA View Post
          Hi,
          The mean coverage is about 110. I am yet to try the heap size adn ranges file which is giving trouble.
          You don't need to adjust the heap size of SRMA, though add more memory with java ("java -Xmx2G -jar srma-0.1.6.jar"). The ranges must be in sorted order. Check the line at which it complains.

          Comment


          • #6
            Hi,
            Thx for the suggestion. I tried using java -Xmx2G -jar and it crashed again. Now I am trying with 10G. Let me see whether it gets completed

            Regarding my range file, its line 272 is as in the bold line. And it is tab delimited data.

            chr10 102296881 102297001
            chr10 102297801 102297921
            chr10 1024383 1024503
            chr10 102495968 102496088
            chr10 102499456 102499696

            I sorted my region of interest as
            sort range.txt > range_sorted.txt
            If I remove that line and move ahead it it works. This looks like sorting problem. Any suggestions. Thanks. If I fix this may be I will gain some running time. Thanks.

            Comment


            • #7
              I think you should change your sort to


              sort -k 1,1 -k 2n,2 range.txt -o range.txt

              Comment


              • #8
                Hi Zee,
                I tried that also.
                Its always breaking down when there is a trend in change of nimbers as below: When the nums change from 9 digit number to 5 digit number..

                Code:
                chr1    247118921       247119161
                chr1    247174632       247174752
                [B]chr1    247177404       247179204
                chr10   82880   83000[/B]
                chr10   83041   84088
                chr10   84549   84669

                Comment


                • #9
                  Originally posted by nilshomer View Post
                  You don't need to adjust the heap size of SRMA, though add more memory with java ("java -Xmx2G -jar srma-0.1.6.jar"). The ranges must be in sorted order. Check the line at which it complains.
                  Hi
                  I tried using 10G without using any RANGE file (as it gives me different kind of problem), after a while smra crashes...

                  Comment


                  • #10
                    I think you should mail the author your version number, STDERR report, etc.

                    What would happen if you tried it with
                    1) only chr1 ranges ?
                    2) only chr10 ranges ?

                    Comment


                    • #11
                      Originally posted by seq_GA View Post
                      Hi
                      I tried using 10G without using any RANGE file (as it gives me different kind of problem), after a while smra crashes...
                      The ranges are still not sorted. You could write a quick perl script to sort them by coordinate. What is the stacktrace when it crashes? I would be very interested in trying to help you with this problem. Feel free to PM or email me (or the help list).

                      Comment


                      • #12
                        I'm having a similar problem. I tried 4G, my average coverage is 30X and it dies whether I provide a region list or not. Any ideas? Did you guys figure out the problem above?

                        Comment


                        • #13
                          Originally posted by genericforms View Post
                          I'm having a similar problem. I tried 4G, my average coverage is 30X and it dies whether I provide a region list or not. Any ideas? Did you guys figure out the problem above?
                          Java, java, java... that is why I am re-writing it in C. PM me if you are interested in a C-version, otherwise I would be happy to help at [email protected] or within a PM.

                          Comment


                          • #14
                            I sent you an email. Thank you so much for replying! I am very excited to try the C version.

                            Comment

                            Latest Articles

                            Collapse

                            • seqadmin
                              Addressing Off-Target Effects in CRISPR Technologies
                              by seqadmin






                              The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
                              08-27-2024, 04:44 AM
                            • seqadmin
                              Selecting and Optimizing mRNA Library Preparations
                              by seqadmin



                              Sequencing mRNA provides a snapshot of cellular activity, allowing researchers to study the dynamics of cellular processes, compare gene expression across different tissue types, and gain insights into the mechanisms of complex diseases. “mRNA’s central role in the dogma of molecular biology makes it a logical and relevant focus for transcriptomic studies,” stated Sebastian Aguilar Pierlé, Ph.D., Application Development Lead at Inorevia. “One of the major hurdles for...
                              08-07-2024, 12:11 PM

                            ad_right_rmr

                            Collapse

                            News

                            Collapse

                            Topics Statistics Last Post
                            Started by seqadmin, 08-27-2024, 04:40 AM
                            0 responses
                            16 views
                            0 likes
                            Last Post seqadmin  
                            Started by seqadmin, 08-22-2024, 05:00 AM
                            0 responses
                            293 views
                            0 likes
                            Last Post seqadmin  
                            Started by seqadmin, 08-21-2024, 10:49 AM
                            0 responses
                            135 views
                            0 likes
                            Last Post seqadmin  
                            Started by seqadmin, 08-19-2024, 05:12 AM
                            0 responses
                            124 views
                            0 likes
                            Last Post seqadmin  
                            Working...
                            X