We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3defd commit 139f507Copy full SHA for 139f507
capy/seq.py
@@ -77,7 +77,14 @@ class _gnomad:
77
def __init__(self, gnomad_dir = "/mnt/j/db/hg19/gnomad", bin_stem = "chr1-22", ref = None):
78
self.gnomad_dir = gnomad_dir
79
self.bin_stem = bin_stem
80
+
81
+ gnomad_index = gnomad_dir + "/1bit/" + bin_stem + ".index.parquet"
82
+ if not _os.path.isfile(gnomad_index):
83
+ print("Cannot find path to gnomAD index; gnomAD functionality disabled.", file = _sys.stderr)
84
+ return
85
86
self.obit_idx = _pd.read_parquet(gnomad_dir + "/1bit/" + bin_stem + ".index.parquet")
87
88
self.ref = ref
89
90
self.mm_1bit = None
0 commit comments