diff --git a/gwaspy/phasing/shapeit5_phase.py b/gwaspy/phasing/shapeit5_phase.py index acab3fd..41f8966 100644 --- a/gwaspy/phasing/shapeit5_phase.py +++ b/gwaspy/phasing/shapeit5_phase.py @@ -229,6 +229,9 @@ def concatenate_rare_chunks( chrom_vcf = batch.read_input_group(**{'vcf': input_path, 'index': input_idx}) + if not hfs.exists(input_idx): + raise SystemExit('GWASpy requires the input file to be indexed (.tbi or .csi). Found none, exiting') + vcf_size = round(size(vcf_path)) if reference_path: