I tried to run this pipeline and get the error of index out of bounds
data=hl.import_vcf(myFolder+"/"+myFile,force_bgz=True,reference_genome=‘GRCh38’,array_elements_required=False)
data2=hl.split_multi_hts(data, permit_shuffle=True)
data2=data2.cache()
mycount=data2.count()[0]
File “/usr/local/lib/python3.7/site-packages/hail/matrixtable.py”, line 2426, in count
return Env.backend().execute(count_ir)
File “/usr/local/lib/python3.7/site-packages/hail/backend/spark_backend.py”, line 297, in execute
result = json.loads(self._jhc.backend().executeJSON(jir))
File “/usr/local/lib/python3.7/site-packages/py4j/java_gateway.py”, line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File “/usr/local/lib/python3.7/site-packages/hail/backend/spark_backend.py”, line 42, in deco
‘Error summary: %s’ % (deepest, full, hail.version, deepest)) from None
hail.utils.java.FatalError: HailException: array index out of bounds: index=2, length=2
Python traceback:
File “indexingES.py”, line 43, in
main(sys.argv[1:])
File “indexingES.py”, line 19, in main
data2=hl.split_multi_hts(data, permit_shuffle=True)
File “”, line 2, in split_multi_hts
File “/usr/local/lib/python3.7/site-packages/hail/methods/statgen.py”, line 1786, in split_multi_hts
(hl.range(0, 3).map(lambda i:
File “”, line 2, in map
File “/usr/local/lib/python3.7/site-packages/hail/methods/statgen.py”, line 1790, in
).map(lambda j: split.PL[j]))))))
File “”, line 2, in map
File “/usr/local/lib/python3.7/site-packages/hail/methods/statgen.py”, line 1790, in
).map(lambda j: split.PL[j]))))))
Java stack trace:
org.apache.spark.SparkException: Job aborted due to stage failure: Task 50 in stage 4.0 failed 1 times, most recent failure: Lost task 50.0 in stage 4.0 (TID 4142, localhost, executor driver): is.hail.utils.HailException: array index out of bounds: index=2, length=2