Description Usage Arguments Value
This function projects an aligned trait onto the basis
project_basis
projects an external trait into basis space
1 2 3 4 5 6 7 | project_basis(
gwas.DT,
shrink.DT,
pc,
traitname = "test_trait",
apply.shrinkage = TRUE
)
|
gwas.DT |
data.table object representing summary statistics from external GWAS with columns as defined in |
shrink.DT |
data.table object of matching shrinkage estimates returned by |
pc |
prcomp object returned by |
traitname |
character label for this trait defaults to 'test_trait' |
apply.shrinkage |
- boolean value on whether to apply shrinkage prior to projection. |
a matrix of PC scores for the projection.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.