Thanks. Here is the stack for an error that refers to aIndex. This is when I am trying to translate ves to elastic_search.
Traceback (most recent call last):
File “/nethome/juarezespinosoh/pipelines_hail/hail-elasticsearch-pipelines/test_hail/example3.py”, line 27, in
verbose=True,
File “/nethome/juarezespinosoh/pipelines_hail/hail-elasticsearch-pipelines/hail_scripts/utils/elasticsearch_client.py”, line 297, in export_vds_to_elasticsearch
genotype_fields_to_export,
File “”, line 2, in make_table
File “/nethome/juarezespinosoh/hail/spark/hail_repo_point_one/hail/build/distributions/hail-python.zip/hail/java.py”, line 121, in handle_py4j
hail.java.FatalError: HailException: Struct has no field `aIndex’
Available fields:
rsid: String
qual: Double
filters: Set[String]
info: Struct{NEGATIVE_TRAIN_SITE:Boolean,HWP:Double,AC:Array[Int],culprit:String,MQ0:Int,ReadPosRankSum:Double,AN:Int,InbreedingCoeff:Double,AF:Array[Double],GQ_STDDEV:Double,FS:Double,DP:Int,GQ_MEAN:Double,POSITIVE_TRAIN_SITE:Boolean,VQSLOD:Double,ClippingRankSum:Double,BaseQRankSum:Double,MLEAF:Array[Double],MLEAC:Array[Int],MQ:Double,QD:Double,END:Int,DB:Boolean,HaplotypeScore:Double,MQRankSum:Double,CCC:Int,NCC:Int,DS:Boolean}
:1:filters = va.filters,info_AC = va.info.AC[va.aIndex-1],info_AF = va.info.AF[va.aIndex-1],info_AN = va.info.AN,info_BaseQRankSum = va.info.BaseQRankSum,info_CCC = va.info.CCC,info_ClippingRankSum = va.info.ClippingRankSum,info_DB = va.info.DB,info_DP = va.info.DP,info_DS = va.info.DS,info_END = va.info.END,info_FS = va.info.FS,info_GQ_MEAN = va.info.GQ_MEAN,info_GQ_STDDEV = va.info.GQ_STDDEV,info_HWP = va.info.HWP,info_HaplotypeScore = va.info.HaplotypeScore,info_InbreedingCoeff = va.info.InbreedingCoeff,info_MLEAC = va.info.MLEAC[va.aIndex-1],info_MLEAF = va.info.MLEAF[va.aIndex-1],info_MQ = va.info.MQ,info_MQ0 = va.info.MQ0,info_MQRankSum = va.info.MQRankSum,info_NCC = va.info.NCC,info_NEGATIVE_TRAIN_SITE = va.info.NEGATIVE_TRAIN_SITE,info_POSITIVE_TRAIN_SITE = va.info.POSITIVE_TRAIN_SITE,info_QD = va.info.QD,info_ReadPosRankSum = va.info.ReadPosRankSum,info_VQSLOD = va.info.VQSLOD,info_culprit = va.info.culprit,qual = va.qual,rsid = va.rsid
^
Java stack trace:
is.hail.utils.HailException: Struct has no field `aIndex’
Available fields:
rsid: String
qual: Double
filters: Set[String]
info: Struct{NEGATIVE_TRAIN_SITE:Boolean,HWP:Double,AC:Array[Int],culprit:String,MQ0:Int,ReadPosRankSum:Double,AN:Int,InbreedingCoeff:Double,AF:Array[Double],GQ_STDDEV:Double,FS:Double,DP:Int,GQ_MEAN:Double,POSITIVE_TRAIN_SITE:Boolean,VQSLOD:Double,ClippingRankSum:Double,BaseQRankSum:Double,MLEAF:Array[Double],MLEAC:Array[Int],MQ:Double,QD:Double,END:Int,DB:Boolean,HaplotypeScore:Double,MQRankSum:Double,CCC:Int,NCC:Int,DS:Boolean}
:1:filters = va.filters,info_AC = va.info.AC[va.aIndex-1],info_AF = va.info.AF[va.aIndex-1],info_AN = va.info.AN,info_BaseQRankSum = va.info.BaseQRankSum,info_CCC = va.info.CCC,info_ClippingRankSum = va.info.ClippingRankSum,info_DB = va.info.DB,info_DP = va.info.DP,info_DS = va.info.DS,info_END = va.info.END,info_FS = va.info.FS,info_GQ_MEAN = va.info.GQ_MEAN,info_GQ_STDDEV = va.info.GQ_STDDEV,info_HWP = va.info.HWP,info_HaplotypeScore = va.info.HaplotypeScore,info_InbreedingCoeff = va.info.InbreedingCoeff,info_MLEAC = va.info.MLEAC[va.aIndex-1],info_MLEAF = va.info.MLEAF[va.aIndex-1],info_MQ = va.info.MQ,info_MQ0 = va.info.MQ0,info_MQRankSum = va.info.MQRankSum,info_NCC = va.info.NCC,info_NEGATIVE_TRAIN_SITE = va.info.NEGATIVE_TRAIN_SITE,info_POSITIVE_TRAIN_SITE = va.info.POSITIVE_TRAIN_SITE,info_QD = va.info.QD,info_ReadPosRankSum = va.info.ReadPosRankSum,info_VQSLOD = va.info.VQSLOD,info_culprit = va.info.culprit,qual = va.qual,rsid = va.rsid
^
at is.hail.utils.ErrorHandling$class.fatal(ErrorHandling.scala:6)
at is.hail.utils.package$.fatal(package.scala:27)
at is.hail.expr.ParserUtils$.error(Parser.scala:24)
at is.hail.expr.AST.parseError(AST.scala:238)
at is.hail.expr.Select.typecheckThis(AST.scala:303)
at is.hail.expr.AST.typecheckThis(AST.scala:229)
at is.hail.expr.AST.typecheck(AST.scala:235)
at is.hail.expr.AST$$anonfun$typecheck$1.apply(AST.scala:234)
at is.hail.expr.AST$$anonfun$typecheck$1.apply(AST.scala:234)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at is.hail.expr.AST.typecheck(AST.scala:234)
at is.hail.expr.Apply.typecheck(AST.scala:520)
at is.hail.expr.AST$$anonfun$typecheck$1.apply(AST.scala:234)
at is.hail.expr.AST$$anonfun$typecheck$1.apply(AST.scala:234)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at is.hail.expr.AST.typecheck(AST.scala:234)
at is.hail.expr.ApplyMethod.typecheck(AST.scala:613)
at is.hail.expr.Parser$$anonfun$11.apply(Parser.scala:168)
at is.hail.expr.Parser$$anonfun$11.apply(Parser.scala:167)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.immutable.List.map(List.scala:285)
at is.hail.expr.Parser$.parseNamedExprs(Parser.scala:167)
at is.hail.expr.Parser$.parseNamedExprs(Parser.scala:150)
at is.hail.variant.VariantSampleMatrix.makeKT(VariantSampleMatrix.scala:1547)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:237)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:280)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:214)
at java.lang.Thread.run(Thread.java:748)
Hail version: 0.1-74bf1eb
Error summary: HailException: Struct has no field `aIndex’
Available fields:
rsid: String
qual: Double
filters: Set[String]
info: Struct{NEGATIVE_TRAIN_SITE:Boolean,HWP:Double,AC:Array[Int],culprit:String,MQ0:Int,ReadPosRankSum:Double,AN:Int,InbreedingCoeff:Double,AF:Array[Double],GQ_STDDEV:Double,FS:Double,DP:Int,GQ_MEAN:Double,POSITIVE_TRAIN_SITE:Boolean,VQSLOD:Double,ClippingRankSum:Double,BaseQRankSum:Double,MLEAF:Array[Double],MLEAC:Array[Int],MQ:Double,QD:Double,END:Int,DB:Boolean,HaplotypeScore:Double,MQRankSum:Double,CCC:Int,NCC:Int,DS:Boolean}
:1:filters = va.filters,info_AC = va.info.AC[va.aIndex-1],info_AF = va.info.AF[va.aIndex-1],info_AN = va.info.AN,info_BaseQRankSum = va.info.BaseQRankSum,info_CCC = va.info.CCC,info_ClippingRankSum = va.info.ClippingRankSum,info_DB = va.info.DB,info_DP = va.info.DP,info_DS = va.info.DS,info_END = va.info.END,info_FS = va.info.FS,info_GQ_MEAN = va.info.GQ_MEAN,info_GQ_STDDEV = va.info.GQ_STDDEV,info_HWP = va.info.HWP,info_HaplotypeScore = va.info.HaplotypeScore,info_InbreedingCoeff = va.info.InbreedingCoeff,info_MLEAC = va.info.MLEAC[va.aIndex-1],info_MLEAF = va.info.MLEAF[va.aIndex-1],info_MQ = va.info.MQ,info_MQ0 = va.info.MQ0,info_MQRankSum = va.info.MQRankSum,info_NCC = va.info.NCC,info_NEGATIVE_TRAIN_SITE = va.info.NEGATIVE_TRAIN_SITE,info_POSITIVE_TRAIN_SITE = va.info.POSITIVE_TRAIN_SITE,info_QD = va.info.QD,info_ReadPosRankSum = va.info.ReadPosRankSum,info_VQSLOD = va.info.VQSLOD,info_culprit = va.info.culprit,qual = va.qual,rsid = va.rsid