MRCIEU / gwasglue

Linking GWAS data to analytical tools in R
Other
117 stars 39 forks source link

Error in gwasvcf::vcf_to_granges(.) : Not all inherits(vcf, c("ExpandedVCF", "CollapsedVCF")) are TRUE. #38

Open changecool opened 9 months ago

changecool commented 9 months ago

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.

kobebryant242322 commented 7 months ago

do you solute this problem