dat <- gwasvcf_to_finemapr(region = region$region, vcf=vcffile, bfile=bfile, plink_bin=plink_bin)
Extracting data from vcf
Failed to open /Users/dr/Desktop/ieu-a-300.vcf.gz: could not load index
[E::COMPAT_bcf_hdr_read] Input is not detected as bcf or vcf format
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'seqinfo': no 'header' line "#CHROM POS ID..."?
With same gwasvcf_to_finemapr, following error occurred:
Extracting data from vcf
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'object' in selecting a method for function 'samples': [internal] _hts_rewind() failed
dat <- gwasvcf_to_finemapr(region = region$region, vcf=vcffile, bfile=bfile, plink_bin=plink_bin)
Extracting data from vcf Failed to open /Users/dr/Desktop/ieu-a-300.vcf.gz: could not load index [E::COMPAT_bcf_hdr_read] Input is not detected as bcf or vcf format Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'seqinfo': no 'header' line "#CHROM POS ID..."?
vv %$% create_vcf(chrom=seqnames, pos=start, nea=REF, ea=ALT, snp=ID, ea_af=AF, effect=ES, se=SE, pval=10^-LP, n=SS, name="a")
With same gwasvcf_to_finemapr, following error occurred:
Extracting data from vcf Error in h(simpleError(msg, call)) : error in evaluating the argument 'object' in selecting a method for function 'samples': [internal] _hts_rewind() failed
Any help would be appreciated! Thanks