I tried to use Hail GVCF combiner function to merge two GVCFs into a matrix table, but got an error.
Code:
import hail as hl
inputs = []
inputs.append('data/sample1.gvcf.gz')
inputs.append('data/sample2.gvcf.gz')
# print(' '.join(inputs))
output_file = 'data/merged.sample.mt' # output destination
temp_bucket = 'tmp/' # bucket for storing intermediate files
hl.experimental.run_combiner(inputs, out_file=output_file, tmp_path=temp_bucket, reference_genome='GRCh37', use_genome_default_intervals=True)
Error summary:
Hail version: 0.2.64-1ef70187dc78
HailException: unphased_diploid_gt_index only supports ploidy == 2. Found 1.
Any suggestions?