# Example VCF
vcf.path <- system.file(
'extdata',
'HG001_GIAB.vcf.gz',
package = 'ApplyPolygenicScore',
mustWork = TRUE
);
vcf.import <- import.vcf(vcf.path);
# Example pgs weight file
pgs.weight.path <- system.file(
'extdata',
'PGS000662_hmPOS_GRCh38.txt.gz',
package = 'ApplyPolygenicScore',
mustWork = TRUE
);
pgs.import <- import.pgs.weight.file(pgs.weight.path);
merge.data <- combine.vcf.with.pgs(
vcf.data = vcf.import$split.wide.vcf.matrices$vcf.fixed.fields,
pgs.weight.data = pgs.import$pgs.weight.data
);
Run the code above in your browser using DataLab