vcfRT <- vcfR::read.vcfR("01_raw_data/confounder/ukb-b-19953.vcf.gz")
Scanning file to determine attributes.
File attributes:
meta lines: 107
header_line: 108
variant count: 9851866
column count: 10
Meta line 107 read in.
All meta lines processed.
gt matrix initialized.
Character matrix gt created.
Character matrix gt rows: 9851866
Character matrix gt cols: 10
skip: 0
nrows: 9851866
row_num: 0
Processed variant: 9851866
All variants processed
data = gwasvcf_to_TwoSampleMR(vcf = vcfRT, type="exposure")
Error in gwasvcf::vcf_to_granges(.) :
Not all inherits(vcf, c("ExpandedVCF", "CollapsedVCF")) are TRUE.