Description Details Author(s) References Examples
Given PCA loadings from flashpca, plink, fastpca, etc and your own data, perform some sanity checking and preoduce PC loadings for your own data, stored in a PLINK format bed file.
This is the software for "pcapred", written by Daniel Lawson (dan.lawson@bristol.ac.uk) and supporting a paper by Aliya Sarmanova, Tim Morris and Daniel Lawson (to appear).
See https://github.com/danjlawson/pcapred for details.
Maintainer: Daniel Lawson dan.lawson@bristol.ac.uk
To follow
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library("pcapred")
mydata=pcapred.ref::onek_genomes_tiny() # Gets the file location of
# the tiny bim/bed/fam data included in pcapred's data package, pcapred.ref
dat=readbed(mydata) # Read "your" data
dat=mergeref(dat) # Merge with the reference
# (using the included standard reference of
# 18 UK Biobank Pcs by default)
pred=predictpcs(dat) # Predict the first 18 UK Biobank PCs
writepred("projected.eigenvals",dat,pred) # Write output in plink --covar format
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.