Hi I’m running the tutorial. All well until the actual gwas analysis call:
gwas = hl.linear_regression_rows(y=mt.pheno.CaffeineConsumption, x=mt.GT.n_alt_alleles(), covariates=[1.0])
When I get a stream of error output - I think it may be a memory issue but Im on a HPC and I am very surprised its happening on a small tutorial dataset. Output:
`
2019-12-26 16:20:57 Hail: INFO: linear_regression_rows: running on 250 samples for 1 response variable y,
with input variable x, and 1 additional covariate…
ERROR:root:Exception while sending command.
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 1159, in send_command
raise Py4JNetworkError(“Answer from Java side is empty”)
py4j.protocol.Py4JNetworkError: Answer from Java side is empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 985, in send_command
response = connection.send_command(command)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 1164, in send_command
“Error while receiving”, e, proto.ERROR_ON_RECEIVE)
py4j.protocol.Py4JNetworkError: Error while receiving
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:42828)
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/IPython/core/interactiveshell.py”, line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “”, line 3, in
covariates=[1.0])
File “</fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/decorator.py:decorator-gen-1497>”, line 2, in linear_regression_rows
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/typecheck/check.py”, line 585, in wrapper
return original_func(*args, **kwargs)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/methods/statgen.py”, line 447, in linear_regression_rows
return ht_result.persist()
File “</fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/decorator.py:decorator-gen-1057>”, line 2, in persist
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/typecheck/check.py”, line 585, in wrapper
return original_func(*args, **kwargs)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/table.py”, line 1788, in persist
return Env.backend().persist_table(self, storage_level)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/backend/backend.py”, line 128, in persist_table
return Table._from_java(self._to_java_ir(t._tir).pyPersist(storage_level))
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/hail/utils/java.py”, line 213, in deco
return f(*args, **kwargs)
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/protocol.py”, line 336, in get_return_value
format(target_id, “.”, name))
py4j.protocol.Py4JError: An error occurred while calling o201.pyPersist
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/IPython/core/interactiveshell.py”, line 2034, in showtraceback
stb = value.render_traceback()
AttributeError: ‘Py4JError’ object has no attribute ‘render_traceback’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 929, in _get_connection
connection = self.deque.pop()
IndexError: pop from an empty deque
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py”, line 1067, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
Py4JError Traceback (most recent call last)
in
1 gwas = hl.linear_regression_rows(y=mt.pheno.CaffeineConsumption,
2 x=mt.GT.n_alt_alleles(),
----> 3 covariates=[1.0])
4 gwas.row.describe()
</fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/decorator.py:decorator-gen-1497> in linear_regression_rows(y, x, covariates, block_size, pass_through)
~/.conda/envs/hail/lib/python3.7/site-packages/hail/typecheck/check.py in wrapper(__original_func, *args, **kwargs)
583 def wrapper(original_func, *args, **kwargs):
584 args, kwargs = check_all(__original_func, args, kwargs, checkers, is_method=is_method)
–> 585 return original_func(*args, **kwargs)
586
587 return wrapper
~/.conda/envs/hail/lib/python3.7/site-packages/hail/methods/statgen.py in linear_regression_rows(y, x, covariates, block_size, pass_through)
445 ht_result = ht_result.annotate(**{f: ht_result[f][0] for f in fields})
446
–> 447 return ht_result.persist()
448
449
</fs/home/cliveterence.dar/.conda/envs/hail/lib/python3.7/site-packages/decorator.py:decorator-gen-1057> in persist(self, storage_level)
~/.conda/envs/hail/lib/python3.7/site-packages/hail/typecheck/check.py in wrapper(__original_func, *args, **kwargs)
583 def wrapper(original_func, *args, **kwargs):
584 args, kwargs = check_all(__original_func, args, kwargs, checkers, is_method=is_method)
–> 585 return original_func(*args, **kwargs)
586
587 return wrapper
~/.conda/envs/hail/lib/python3.7/site-packages/hail/table.py in persist(self, storage_level)
1786 Persisted table.
1787 “”"
-> 1788 return Env.backend().persist_table(self, storage_level)
1789
1790 def unpersist(self) -> ‘Table’:
~/.conda/envs/hail/lib/python3.7/site-packages/hail/backend/backend.py in persist_table(self, t, storage_level)
126
127 def persist_table(self, t, storage_level):
–> 128 return Table._from_java(self._to_java_ir(t._tir).pyPersist(storage_level))
129
130 def unpersist_table(self, t):
~/.conda/envs/hail/lib/python3.7/site-packages/py4j/java_gateway.py in call(self, *args)
1255 answer = self.gateway_client.send_command(command)
1256 return_value = get_return_value(
-> 1257 answer, self.gateway_client, self.target_id, self.name)
1258
1259 for temp_arg in temp_args:
~/.conda/envs/hail/lib/python3.7/site-packages/hail/utils/java.py in deco(*args, **kwargs)
211 import pyspark
212 try:
–> 213 return f(*args, **kwargs)
214 except py4j.protocol.Py4JJavaError as e:
215 s = e.java_exception.toString()
~/.conda/envs/hail/lib/python3.7/site-packages/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name)
334 raise Py4JError(
335 “An error occurred while calling {0}{1}{2}”.
–> 336 format(target_id, “.”, name))
337 else:
338 type = answer[1]
Py4JError: An error occurred while calling o201.pyPersist
`