text: user1194: I am using GATK version 4.0, I tried to use multiple threads for calling variants using HaplotypeCaller using following command 
  gatk --java-options -Xmx90G  -nt 28 HaplotypeCaller -I output.bam -R wheat_ref.fa -O final.vcf
  
  and the error is
  '-nt' is not a valid command
  
  I have also used --num_threads but again the error was the same, as written here this parameter is available in previous versions of GATK but I don't know what's its status in current version of GATK i.e GATK 4.0. Whether it is deprecated or replaced by some other parameter? 
  Is there any way of calling multiple threads for variant calling with GATK 4.0?
  
  user181: I am assuming you are using the non-SPARK version of the method. To specify the number of threads you wish to use with HaplotypeCaller, include --native-pair-hmm-threads (documentation). This will only parallelize the pair hidden Markov models (pair HMM) process. This is an argument for the method HaplotypeCaller itself, so it should be located after the method is called as opposed to one of the --java-options.
  I do recommend trying out the SPARK implementations of the GATK tools. The whole method will take advantage of the threads you specify. I've been running SPARK locally (i.e. not on Firecloud) on computational servers. I've been impressed with the enhanced performance.
  
original_text: 1194: <p>I am using GATK version 4.0, I tried to use multiple threads for calling variants using HaplotypeCaller using following command </p>
  
  <pre><code>gatk --java-options -Xmx90G  -nt 28 HaplotypeCaller -I output.bam -R wheat_ref.fa -O final.vcf
  </code></pre>
  
  <p>and the error is</p>
  
  <pre><code>'-nt' is not a valid command
  </code></pre>
  
  <p>I have also used <strong>--num_threads</strong> but again the error was the same, as written <a href="https://gatkforums.broadinstitute.org/gatk/discussion/1975/how-can-i-use-parallelism-to-make-gatk-tools-run-faster" rel="nofollow noreferrer">here</a> this parameter is available in previous versions of GATK but I don't know what's its status in current version of GATK i.e GATK 4.0. Whether it is deprecated or replaced by some other parameter? </p>
  
  <p>Is there any way of calling multiple threads for variant calling with GATK 4.0?</p>
   181: <p>I am assuming you are using the non-SPARK version of the method. To specify the number of threads you wish to use with HaplotypeCaller, include <code>--native-pair-hmm-threads</code> (<a href="https://software.broadinstitute.org/gatk/documentation/tooldocs/current/org_broadinstitute_hellbender_tools_walkers_haplotypecaller_HaplotypeCaller.php" rel="nofollow noreferrer">documentation</a>). This will only parallelize the pair hidden Markov models (pair HMM) process. This is an argument for the method HaplotypeCaller itself, so it should be located after the method is called as opposed to one of the <code>--java-options</code>.</p>
  
  <p>I do recommend trying out the SPARK implementations of the GATK tools. The whole method will take advantage of the threads you specify. I've been running SPARK locally (i.e. not on Firecloud) on computational servers. I've been impressed with the enhanced performance.</p>
  