calc.r2: calculate R2 from a list of variants;

Description Usage Arguments Value

View source: R/rareGWAMA.TWAS.R

Description

calculate R2 from a list of variants;

Usage

1
calc.r2(vcf.ref.file, tabix.range, refGeno = "GT")

Arguments

vcf.ref.file

VCF reference file

tabix.range

tabix range for a list of variants;

refGeno

the FORMAT field for genotypes; could be GT or DS;

Value

calcualted r2 matrix; with positions being the row and colnames;


dajiangliu/rareGWAMA documentation built on Sept. 13, 2019, 9:14 a.m.