You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the AnnoPred example code (when heritability estimation not provided) but got the following error. May I ask what the problem is and how can I fix it?
(ldsc) $ bash ori.example.sh
{'local_ld_prefix': 'tmp_test/local_ld', 'coord_out': 'test_output/coord_out', 'need_LDSC': True, 'P': 0.1, 'sumstats': 'test_data/GWAS_sumstats.txt', 'need_ld_radius': True, 'N': 69033, 'ld_radius': None, 'ref_gt': 'test_data/test', 'temp_dir': 'tmp_test', 'val_gt': 'test_data/test', 'out': 'test_output/test', 'num_iter': 60, 'user_h2': None, 'annotation_flag': 'tier3'}
Filtering Summary Stats...
Filtered sumstats found, start coordinating genotypes...
Coordinate summary stats and validation/reference genotype data...
Coord file already exists! Continue calculating priors...
User-provided heritability file not found. Generating priors...
LDSC results found! Continue calculating priors ...
Traceback (most recent call last):
File "AnnoPred.py", line 222, in <module>
main(process_args(args))
File "AnnoPred.py", line 204, in main
pdict['h2file'], pdict['P'], pdict['pTfile'], pdict['annotation_flag'])
File "/path/to/annopred/prior_generating.py", line 34, in generate_h2_pT
h5f1 = h5py.File('ref/AnnotMatrix/tier3.h5','r')
File "/path/to/.local/lib/python2.7/site-packages/h5py/_hl/files.py", line 408, in __init__
swmr=swmr)
File "/path/to/.local/lib/python2.7/site-packages/h5py/_hl/files.py", line 173, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
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 "h5py/h5f.pyx", line 88, in h5py.h5f.open
IOError: Unable to open file (truncated file: eof = 3875536896, sblock->base_addr = 0, stored_eof = 4960432904)```
Besides, I ran S-LDSC by myself. Could you provide an example of how to use the S-LDSC result to generate the user provide per-SNP heritability file?
Thank you very much!
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to run the AnnoPred example code (when heritability estimation not provided) but got the following error. May I ask what the problem is and how can I fix it?
The text was updated successfully, but these errors were encountered: