Question: Memory problem with RNA-SeQC jar (v1.1.8)
0
gravatar for Dejian
4.7 years ago by
Dejian1.3k
United States
Dejian1.3k wrote:

When I ran RNA-SeQC jar (v1.1.8) , I encountered a memory problem repeatedly. For a 2.8G bam file, I allocated memory from 4G to 40G without success. The program always threw out error messages like below:

Downsampling before aligning at rate: 0.02664358976545115
INFO    2014-08-01 00:38:37     DownsampleSam   Read 10000000 reads, kept 266113
INFO    2014-08-01 00:39:44     DownsampleSam   Read 20000000 reads, kept 531846
INFO    2014-08-01 00:43:07     DownsampleSam   Read 30000000 reads, kept 798137
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.lang.String.<init>(String.java:340)
        at net.sf.samtools.util.StringUtil.bytesToString(StringUtil.java:261)
        at net.sf.samtools.BAMRecord.decodeReadName(BAMRecord.java:331)
        at net.sf.samtools.BAMRecord.getReadName(BAMRecord.java:220)
        at org.broadinstitute.cga.picardbased.DownsampleSam.doWork(DownsampleSam.java:71)
        at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177)
        at org.broadinstitute.cga.picardbased.CountAlignedExperimental.countBAM(CountAlignedExperimental.java:100)
        at org.broadinstitute.cga.rnaseq.ReadCountMetrics.alignAndCountrRNA(ReadCountMetrics.java:217)
        at org.broadinstitute.cga.rnaseq.ReadCountMetrics.runReadCountMetrics(ReadCountMetrics.java:66)
        at org.broadinstitute.cga.rnaseq.RNASeqMetrics.runMetrics(RNASeqMetrics.java:225)
        at org.broadinstitute.cga.rnaseq.RNASeqMetrics.execute(RNASeqMetrics.java:171)
        at org.broadinstitute.cga.rnaseq.RNASeqMetrics.main(RNASeqMetrics.java:139)


Did anyone else encounter a similar problem? And how was it solved? Many thanks!

 

rna-seq • 1.7k views
ADD COMMENTlink modified 4.7 years ago by Istvan Albert ♦♦ 80k • written 4.7 years ago by Dejian1.3k
2
gravatar for Istvan Albert
4.7 years ago by
Istvan Albert ♦♦ 80k
University Park, USA
Istvan Albert ♦♦ 80k wrote:

Allocate more heap memory to your java process, see the xmx option:

http://stackoverflow.com/questions/5374455/what-does-java-option-xmx-stand-for

ADD COMMENTlink written 4.7 years ago by Istvan Albert ♦♦ 80k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1342 users visited in the last hour