pgs | R Documentation |
Note that this is a low-level command. For applying estimated betas to new bfiles, refer to https://github.com/tshmak/lassosum#apply-validated-betas-to-new-data
pgs(bfile, weights, ...)
.pgs(...)
## Default S3 method:
.pgs(
weights,
bfile,
keep = NULL,
extract = NULL,
exclude = NULL,
remove = NULL,
chr = NULL,
cluster = NULL,
trace = 0,
sparse = TRUE
)
bfile |
A plink bfile stem |
weights |
The weights for the SNPs ( |
keep |
samples to keep (see |
extract |
SNPs to extract (see |
exclude |
SNPs to exclude (see |
remove |
samples to remove (see |
chr |
a vector of chromosomes |
cluster |
A |
trace |
Level of output |
sparse |
Assumes sparse weights matrix |
A function to calculate X\beta
where X
is the genotype matrix
in the plink bfile.
A matrix of Polygenic Scores
Missing genotypes are interpreted as having the homozygous A2 alleles in the
PLINK files (same as the --fill-missing-a2
option in PLINK).
The number of rows in weights
should be the same as the number of
SNPs in the bfile after extract/exclude/chr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.