Skip to content

Commit

Permalink
Merge pull request #11 from jbloom22/bigdata-pcrelate2
Browse files Browse the repository at this point in the history
fixed test, from_entry_expr, removed path, rebased on master
  • Loading branch information
danking authored Mar 22, 2018
2 parents adaa953 + 29b1115 commit 4bb24f7
Show file tree
Hide file tree
Showing 69 changed files with 1,454 additions and 1,566 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ python/hail/docs/_build/*
src/main/c/libsimdpp-2.0-rc2.tar.gz
src/main/c/libsimdpp-2.0-rc2
target
src/main/c/lib
src/main/resources/build-info.properties
src/test/resources/example.v11.bgen.idx
2 changes: 2 additions & 0 deletions python/hail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@
import builtins
__all__.extend([x for x in expr.__all__ if not hasattr(builtins, x)])
del builtins

__version__ = None # set in hail.init()
15 changes: 7 additions & 8 deletions python/hail/context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pyspark import SparkContext
from pyspark.sql import SQLContext

import hail
from hail.genetics.reference_genome import ReferenceGenome
from hail.typecheck import nullable, typecheck, typecheck_method, enumeration
from hail.utils import wrap_to_list, get_env_or_default
Expand Down Expand Up @@ -65,6 +66,9 @@ def __init__(self, sc=None, app_name="Hail", master=None, local='local[*]',
self._default_ref = None
Env.hail().variant.ReferenceGenome.setDefaultReference(self._jhc, default_reference)

version = self._jhc.version()
hail.__version__ = version

if not quiet:
sys.stderr.write('Running on Apache Spark version {}\n'.format(self.sc.version))
if self._jsc.uiWebUrl().isDefined():
Expand All @@ -79,20 +83,15 @@ def __init__(self, sc=None, app_name="Hail", master=None, local='local[*]',
' __ __ <>__\n'
' / /_/ /__ __/ /\n'
' / __ / _ `/ / /\n'
' /_/ /_/\_,_/_/_/ version {}\n'.format(self.version))
' /_/ /_/\_,_/_/_/ version {}\n'.format(version))

if self.version.startswith('devel'):
if version.startswith('devel'):
sys.stderr.write('NOTE: This is a beta version. Interfaces may change\n'
' during the beta period. We also recommend pulling\n'
' the latest changes weekly.')
' the latest changes weekly.\n')

install_exception_handler()


@property
def version(self):
return self._jhc.version()

@property
def default_reference(self):
if not self._default_ref:
Expand Down
2 changes: 2 additions & 0 deletions python/hail/docs/methods/impex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Import / Export
get_vcf_metadata
import_bed
import_bgen
index_bgen
import_fam
import_gen
import_locus_intervals
Expand All @@ -34,6 +35,7 @@ Import / Export
.. autofunction:: get_vcf_metadata
.. autofunction:: import_bed
.. autofunction:: import_bgen
.. autofunction:: index_bgen
.. autofunction:: import_fam
.. autofunction:: import_gen
.. autofunction:: import_locus_intervals
Expand Down
1 change: 1 addition & 0 deletions python/hail/docs/methods/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Methods
get_vcf_metadata
import_bed
import_bgen
index_bgen
import_fam
import_gen
import_locus_intervals
Expand Down
Loading

0 comments on commit 4bb24f7

Please sign in to comment.