YosefLab/epitome

download_encode.py ValueError

RK900 opened this issue · 3 comments

RK900 commented

sys:1: DtypeWarning: Columns (18) have mixed types.Specify dtype option on import or set low_memory=False.
Processing 868 files...
Completed windowing genome with 0 regions
Traceback (most recent call last):
File "data/download_encode.py", line 270, in
assert(matrix[:,0].shape[0] == len(filtered_files))
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/Users/rohankoodli/.local/lib/python3.6/site-packages/h5py/_hl/dataset.py", line 553, in getitem
selection = sel.select(self.shape, args, dsid=self.id)
File "/Users/rohankoodli/.local/lib/python3.6/site-packages/h5py/_hl/selections.py", line 94, in select
sel[args]
File "/Users/rohankoodli/.local/lib/python3.6/site-packages/h5py/_hl/selections.py", line 261, in getitem
start, count, step, scalar = _handle_simple(self.shape,args)
File "/Users/rohankoodli/.local/lib/python3.6/site-packages/h5py/_hl/selections.py", line 466, in _handle_simple
x,y,z = _translate_int(int(arg), length)
File "/Users/rohankoodli/.local/lib/python3.6/site-packages/h5py/_hl/selections.py", line 486, in _translate_int
raise ValueError("Index (%s) out of range (0-%s)" % (exp, length-1))
ValueError: Index (0) out of range (0--1)

Occurs with:
python data/download_encode.py download_path GRCh38 output_path --bigBedToBed ~/Documents/bigBedToBed

@RK900 you should not need to make the data on your own. When you install, it should download the data to <user_path>/.epitome/data. Can you check if the data installed correctly here?

RK900 commented

Screen Shot 2020-04-20 at 10 25 32 AM

This is what I see.

@RK900 check your path <user__home_path>/.epitome/data. Can you check if the data installed correctly here?