import.vcf | R Documentation |
A wrapper for the VCF import function in the vcfR package that formats VCF data for PGS application with apply.polygenic.score()
.
import.vcf(vcf.path, info.fields = NULL, format.fields = NULL, verbose = FALSE)
vcf.path |
A character string indicating the path to the VCF file to be imported. |
info.fields |
A character vector indicating the INFO fields to be imported. |
format.fields |
A character vector indicating the FORMAT fields to be imported. |
verbose |
A logical indicating whether verbose output should be printed by vcfR. |
A list containing a tibble of VCF meta data and a tibble data.frame containing the parsed VCF data in long form.
# Example VCF
vcf <- system.file(
'extdata',
'HG001_GIAB.vcf.gz',
package = 'ApplyPolygenicScore',
mustWork = TRUE
);
vcf.data <- import.vcf(vcf.path = vcf);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.