Hi @danking danking
Thanks for suggestions. I have tried yours script with minor modifications
EUR_for_pca = EUR_mt_full
EUR_for_pca = hl.variant_qc(EUR_for_pca)
filter to variants with minor allele frequency >5%
EUR_for_pca = EUR_for_pca.filter_rows(
(EUR_for_pca.variant_qc.AF[0] > 0.05) & (EUR_for_pca.variant_qc.AF[0] < 0.95)
)
n_common_variants = EUR_for_pca.count_rows()
keep a random ~10k subset of common variants
EUR_for_pca = EUR_for_pca.sample_rows(10_000 / n_common_variants)
#EUR_pca_variants = hl.read_table(‘Haill_mt/variants_for_pca.ht’)
filter the matrix table to just the PCA variants
EUR_for_pca2 = EUR_mt_full.semi_join_rows(EUR_for_pca.rows())
PCA
EUR_eigenvalues, EUR_pcs, _ = hl.hwe_normalized_pca(EUR_for_pca2.GT)
On the last step i get unexpected error. I have no idea how to deal with that.
FatalError Traceback (most recent call last)
Input In [32], in <cell line: 4>()
1 #EUR_pca_variants = hl.read_table(‘Haill_mt/variants_for_pca.ht’)
2 # filter the matrix table to just the PCA variants
3 #EUR_for_pca2 = EUR_mt_full.semi_join_rows(EUR_for_pca.rows())
----> 4 EUR_eigenvalues, EUR_pcs, _ = hl.hwe_normalized_pca(EUR_for_pca2.GT)
File :2, in hwe_normalized_pca(call_expr, k, compute_loadings)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/typecheck/check.py:577, in _make_dec..wrapper(__original_func, *args, **kwargs)
574 @decorator
575 def wrapper(original_func, *args, **kwargs):
576 args, kwargs = check_all(__original_func, args, kwargs, checkers, is_method=is_method)
→ 577 return original_func(*args, **kwargs)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/methods/pca.py:96, in hwe_normalized_pca(call_expr, k, compute_loadings)
36 @typecheck(call_expr=expr_call,
37 k=int,
38 compute_loadings=bool)
39 def hwe_normalized_pca(call_expr, k=10, compute_loadings=False) → Tuple[List[float], Table, Table]:
40 r""“Run principal component analysis (PCA) on the Hardy-Weinberg-normalized
41 genotype call matrix.
42
(…)
93 List of eigenvalues, table with column scores, table with row loadings.
94 “””
—> 96 return pca(hwe_normalize(call_expr),
97 k,
98 compute_loadings)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/methods/pca.py:22, in hwe_normalize(call_expr)
18 mt = mt.annotate_rows(__AC=agg.sum(mt.__gt),
19 __n_called=agg.count_where(hl.is_defined(mt.__gt)))
20 mt = mt.filter_rows((mt.__AC > 0) & (mt.__AC < 2 * mt.__n_called))
—> 22 n_variants = mt.count_rows()
23 if n_variants == 0:
24 raise FatalError(“hwe_normalize: found 0 variants after filtering out monomorphic sites.”)
File :2, in count_rows(self, _localize)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/typecheck/check.py:577, in _make_dec..wrapper(__original_func, *args, **kwargs)
574 @decorator
575 def wrapper(original_func, *args, **kwargs):
576 args, kwargs = check_all(__original_func, args, kwargs, checkers, is_method=is_method)
→ 577 return original_func(*args, **kwargs)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/matrixtable.py:2397, in MatrixTable.count_rows(self, _localize)
2395 count_ir = ir.TableCount(ir.MatrixRowsTable(self._mir))
2396 if _localize:
→ 2397 return Env.backend().execute(count_ir)
2398 else:
2399 return construct_expr(ir.LiftMeOut(count_ir), hl.tint64)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/backend/py4j_backend.py:104, in Py4JBackend.execute(self, ir, timed)
102 return (value, timings) if timed else value
103 except FatalError as e:
→ 104 self._handle_fatal_error_from_backend(e, ir)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/backend/backend.py:181, in Backend._handle_fatal_error_from_backend(self, err, ir)
179 error_sources = ir.base_search(lambda x: x._error_id == err._error_id)
180 if len(error_sources) == 0:
→ 181 raise err
183 better_stack_trace = error_sources[0]._stack_trace
184 error_message = str(err)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/backend/py4j_backend.py:98, in Py4JBackend.execute(self, ir, timed)
96 # print(self._hail_package.expr.ir.Pretty.apply(jir, True, -1))
97 try:
—> 98 result_tuple = self._jbackend.executeEncode(jir, stream_codec)
99 (result, timings) = (result_tuple._1(), result_tuple._2())
100 value = ir.typ._from_encoding(result)
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/py4j/java_gateway.py:1304, in JavaMember.call(self, *args)
1298 command = proto.CALL_COMMAND_NAME +
1299 self.command_header +
1300 args_command +
1301 proto.END_COMMAND_PART
1303 answer = self.gateway_client.send_command(command)
→ 1304 return_value = get_return_value(
1305 answer, self.gateway_client, self.target_id, self.name)
1307 for temp_arg in temp_args:
1308 temp_arg._detach()
File ~/anaconda3/envs/ven_novoselov/lib/python3.10/site-packages/hail/backend/py4j_backend.py:31, in handle_java_exception..deco(*args, **kwargs)
29 tpl = Env.jutils().handleForPython(e.java_exception)
30 deepest, full, error_id = tpl._1(), tpl._2(), tpl._3()
—> 31 raise fatal_error_from_java_error_triplet(deepest, full, error_id) from None
32 except pyspark.sql.utils.CapturedException as e:
33 raise FatalError(‘%s\n\nJava stack trace:\n%s\n’
34 ‘Hail version: %s\n’
35 ‘Error summary: %s’ % (e.desc, e.stackTrace, hail.version, e.desc)) from None
FatalError: NoSuchElementException: Ref with name __iruid_17776 could not be resolved in env BindingEnv((),None,None,())
Java stack trace:
is.hail.utils.HailException: error after applying LowerArrayAggsToRunAggs
at is.hail.utils.ErrorHandling.fatal(ErrorHandling.scala:21)
at is.hail.utils.ErrorHandling.fatal$(ErrorHandling.scala:21)
at is.hail.utils.package$.fatal(package.scala:78)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:25)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.Compile$.apply(Compile.scala:50)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2012)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableLeftJoinRightDistinct.execute(TableIR.scala:1925)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableKeyBy.execute(TableIR.scala:1362)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableIR.analyzeAndExecute(TableIR.scala:57)
at is.hail.expr.ir.Interpret$.$anonfun$run$71(Interpret.scala:846)
at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.java:23)
at scala.Option.getOrElse(Option.scala:189)
at is.hail.expr.ir.Interpret$.run(Interpret.scala:846)
at is.hail.expr.ir.Interpret$.alreadyLowered(Interpret.scala:57)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.evaluate$1(LowerOrInterpretNonCompilable.scala:20)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:67)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:53)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.apply(LowerOrInterpretNonCompilable.scala:72)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.transform(LoweringPass.scala:69)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$3(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$1(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.apply(LoweringPass.scala:14)
at is.hail.expr.ir.lowering.LoweringPass.apply$(LoweringPass.scala:13)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.apply(LoweringPass.scala:64)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:15)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.CompileAndEvaluate$._apply(CompileAndEvaluate.scala:47)
at is.hail.backend.spark.SparkBackend._execute(SparkBackend.scala:416)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$2(SparkBackend.scala:452)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$3(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$2(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.annotations.RegionPool$.scoped(RegionPool.scala:17)
at is.hail.backend.ExecuteContext$.scoped(ExecuteContext.scala:59)
at is.hail.backend.spark.SparkBackend.withExecuteContext(SparkBackend.scala:310)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$1(SparkBackend.scala:449)
at is.hail.utils.ExecutionTimer$.time(ExecutionTimer.scala:52)
at is.hail.backend.spark.SparkBackend.executeEncode(SparkBackend.scala:448)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:829)
is.hail.utils.HailException: Error while typechecking IR:
(Coalesce
(Let __iruid_17778
(RunAgg ((CallStatsStateSig))
(Begin
(Begin
(InitOp 0 (CallStats (CallStatsStateSig))
((ArrayLen
(GetField alleles (Ref __iruid_17776))))))
(StreamFor __iruid_17774
(StreamFilter __iruid_17775
(StreamRange -1 False
(I32 0)
(ArrayLen
(GetField
the entries! [877f12a8827e18f61222c6c8c5fb04a8]
(In
SingleCodeEmitParamType(true, PTypeReferenceSingleCodeType(+PCStruct{locus:+PCLocus(GRCh37),alleles:+PCArray[+PCString],__row_uid:PInt64,the entries! [877f12a8827e18f61222c6c8c5fb04a8]
:+PCArray[+PCStruct{GT:PCCall}]}))
1)))
(I32 1))
(ApplyUnaryPrimOp Bang
(IsNA
(ArrayRef -1
(GetField
the entries! [877f12a8827e18f61222c6c8c5fb04a8]
(In
SingleCodeEmitParamType(true, PTypeReferenceSingleCodeType(+PCStruct{locus:+PCLocus(GRCh37),alleles:+PCArray[+PCString],__row_uid:PInt64,the entries! [877f12a8827e18f61222c6c8c5fb04a8]
:+PCArray[+PCStruct{GT:PCCall}]}))
1))
(Ref __iruid_17775)))))
(Begin
(SeqOp 0 (CallStats (CallStatsStateSig))
((GetField GT
(ArrayRef -1
(GetField
the entries! [877f12a8827e18f61222c6c8c5fb04a8]
(In
SingleCodeEmitParamType(true, PTypeReferenceSingleCodeType(+PCStruct{locus:+PCLocus(GRCh37),alleles:+PCArray[+PCString],__row_uid:PInt64,the entries! [877f12a8827e18f61222c6c8c5fb04a8]
:+PCArray[+PCStruct{GT:PCCall}]}))
1))
(Ref __iruid_17774))))))))
(MakeTuple (0)
(ResultOp 0 (CallStats (CallStatsStateSig)))))
(InsertFields
(Let __iruid_17776
(SelectFields (locus alleles)
(In
SingleCodeEmitParamType(true, PTypeReferenceSingleCodeType(+PCStruct{locus:+PCLocus(GRCh37),alleles:+PCArray[+PCString],__row_uid:PInt64,the entries! [877f12a8827e18f61222c6c8c5fb04a8]
:+PCArray[+PCStruct{GT:PCCall}]}))
1))
(InsertFields
(Ref __iruid_17776)
None
(variant_qc
(Let __iruid_17777
(MakeStruct
(call_stats
(GetTupleElement 0 (Ref __iruid_17778))))
(MakeStruct
(AF
(GetField AF
(GetField call_stats (Ref __iruid_17777)))))))))
None
(__row_uid
(GetField __row_uid
(In
SingleCodeEmitParamType(true, PTypeReferenceSingleCodeType(+PCStruct{locus:+PCLocus(GRCh37),alleles:+PCArray[+PCString],__row_uid:PInt64,the entries! [877f12a8827e18f61222c6c8c5fb04a8]
:+PCArray[+PCStruct{GT:PCCall}]}))
1)))))
(Die
Struct{locus:Locus(GRCh37),alleles:Array[String],variant_qc:Struct{AF:Array[Float64]},__row_uid:Int64}
-1
(Str “Internal e…”)))
at is.hail.utils.ErrorHandling.fatal(ErrorHandling.scala:21)
at is.hail.utils.ErrorHandling.fatal$(ErrorHandling.scala:21)
at is.hail.utils.package$.fatal(package.scala:78)
at is.hail.expr.ir.TypeCheck$.apply(TypeCheck.scala:15)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:22)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.Compile$.apply(Compile.scala:50)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2012)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableLeftJoinRightDistinct.execute(TableIR.scala:1925)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableKeyBy.execute(TableIR.scala:1362)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableIR.analyzeAndExecute(TableIR.scala:57)
at is.hail.expr.ir.Interpret$.$anonfun$run$71(Interpret.scala:846)
at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.java:23)
at scala.Option.getOrElse(Option.scala:189)
at is.hail.expr.ir.Interpret$.run(Interpret.scala:846)
at is.hail.expr.ir.Interpret$.alreadyLowered(Interpret.scala:57)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.evaluate$1(LowerOrInterpretNonCompilable.scala:20)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:67)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:53)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.apply(LowerOrInterpretNonCompilable.scala:72)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.transform(LoweringPass.scala:69)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$3(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$1(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.apply(LoweringPass.scala:14)
at is.hail.expr.ir.lowering.LoweringPass.apply$(LoweringPass.scala:13)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.apply(LoweringPass.scala:64)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:15)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.CompileAndEvaluate$._apply(CompileAndEvaluate.scala:47)
at is.hail.backend.spark.SparkBackend._execute(SparkBackend.scala:416)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$2(SparkBackend.scala:452)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$3(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$2(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.annotations.RegionPool$.scoped(RegionPool.scala:17)
at is.hail.backend.ExecuteContext$.scoped(ExecuteContext.scala:59)
at is.hail.backend.spark.SparkBackend.withExecuteContext(SparkBackend.scala:310)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$1(SparkBackend.scala:449)
at is.hail.utils.ExecutionTimer$.time(ExecutionTimer.scala:52)
at is.hail.backend.spark.SparkBackend.executeEncode(SparkBackend.scala:448)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:829)
java.util.NoSuchElementException: Ref with name __iruid_17776 could not be resolved in env BindingEnv((),None,None,())
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:98)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1(TypeCheck.scala:33)
at is.hail.expr.ir.TypeCheck$.$anonfun$check$1$adapted(TypeCheck.scala:31)
at scala.collection.Iterator.foreach(Iterator.scala:941)
at scala.collection.Iterator.foreach$(Iterator.scala:941)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
at is.hail.expr.ir.TypeCheck$.check(TypeCheck.scala:31)
at is.hail.expr.ir.TypeCheck$.apply(TypeCheck.scala:13)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:22)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.Compile$.apply(Compile.scala:50)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2012)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableLeftJoinRightDistinct.execute(TableIR.scala:1925)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableKeyBy.execute(TableIR.scala:1362)
at is.hail.expr.ir.TableMapRows.execute(TableIR.scala:2006)
at is.hail.expr.ir.TableFilter.execute(TableIR.scala:1432)
at is.hail.expr.ir.TableIR.analyzeAndExecute(TableIR.scala:57)
at is.hail.expr.ir.Interpret$.$anonfun$run$71(Interpret.scala:846)
at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.java:23)
at scala.Option.getOrElse(Option.scala:189)
at is.hail.expr.ir.Interpret$.run(Interpret.scala:846)
at is.hail.expr.ir.Interpret$.alreadyLowered(Interpret.scala:57)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.evaluate$1(LowerOrInterpretNonCompilable.scala:20)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:67)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.rewrite$1(LowerOrInterpretNonCompilable.scala:53)
at is.hail.expr.ir.LowerOrInterpretNonCompilable$.apply(LowerOrInterpretNonCompilable.scala:72)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.transform(LoweringPass.scala:69)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$3(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$1(LoweringPass.scala:16)
at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81)
at is.hail.expr.ir.lowering.LoweringPass.apply(LoweringPass.scala:14)
at is.hail.expr.ir.lowering.LoweringPass.apply$(LoweringPass.scala:13)
at is.hail.expr.ir.lowering.LowerOrInterpretNonCompilablePass$.apply(LoweringPass.scala:64)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:15)
at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:13)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:13)
at is.hail.expr.ir.CompileAndEvaluate$._apply(CompileAndEvaluate.scala:47)
at is.hail.backend.spark.SparkBackend._execute(SparkBackend.scala:416)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$2(SparkBackend.scala:452)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$3(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.backend.ExecuteContext$.$anonfun$scoped$2(ExecuteContext.scala:70)
at is.hail.utils.package$.using(package.scala:640)
at is.hail.annotations.RegionPool$.scoped(RegionPool.scala:17)
at is.hail.backend.ExecuteContext$.scoped(ExecuteContext.scala:59)
at is.hail.backend.spark.SparkBackend.withExecuteContext(SparkBackend.scala:310)
at is.hail.backend.spark.SparkBackend.$anonfun$executeEncode$1(SparkBackend.scala:449)
at is.hail.utils.ExecutionTimer$.time(ExecutionTimer.scala:52)
at is.hail.backend.spark.SparkBackend.executeEncode(SparkBackend.scala:448)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:829)
Hail version: 0.2.97-937922d7f46c
Error summary: NoSuchElementException: Ref with name __iruid_17776 could not be resolved in env BindingEnv((),None,None,())
Haw you got any clue how to resolve the error?