GATK -Xmx4G and -Xmx8G
1
0
Entering edit mode
5.4 years ago
lovegenetics ▴ 70

Dear all,

I would like to know what the difference is between the "-Xmx4G" and "-Xmx8G" switches on GATK. All I know is, both of these switches are used for specifying memory allocation (which I'm still not quite sure I understand the meaning of it) from https://software.broadinstitute.org/gatk/documentation/article?id=11050.

I want to use the HaplotypeCaller tool on my bam files, and I'd like to know the difference between switches before I proceed.

Many thanks

Reem.

GATK HaplotypeCaller • 9.7k views
ADD COMMENT
2
Entering edit mode
5.4 years ago

These aren't GATK specific switches, but a java JVM (java virtual machine) parameter. Since GATK4, these parameters have been absorbed into the main binary to integrate well with the WDL notation and Cromwell orchestration.

-Xmx is the switch to tell Java how much memory it's allowed to work with (heap size). This is akin to the amount of RAM on your machine. -Xmx8G means that you're telling Java it can work with 8GB of memory (or RAM) on your machine. It's important not to allocate more than your machine has available.

ADD COMMENT
0
Entering edit mode

Thanks alot, Andrew.

ADD REPLY

Login before adding your answer.

Traffic: 2441 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6