Re: Cannot project new individuals onto existing PCs

81 views
Skip to first unread message

Gad Abraham

unread,
Nov 23, 2017, 10:45:29 PM11/23/17
to zhihu...@g.harvard.edu, flashpca-users
Hi,

For project(), you need to give the root name of the PLINK data (not a
directory), similar to how you called flashpca() with 'bedf'.

Hope that helps.

Gad

On 20 November 2017 at 04:59, <zhihu...@g.harvard.edu> wrote:
> Hi,
>
> I am running flashpcaR. After successfully generating loadings with
> flashpca, I want to project individuals in my validation set onto the PCs
> built on training set and get the following error message:
> Error in project_plink_internal(X, loadings, ref_alleles, orig_mean,
> orig_sd, :
> Expecting a string vector: [type=NULL; required=STRSXP].
>
> Here's my code, where fn is the directory where I saved my plink files.
> f <- flashpca(bedf,ndim=10,do_loadings=T)
> P3 <- project(fn, loadings=f$loadings, orig_mean=f$center, orig_sd=f$scale)
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups
> "flashpca-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to flashpca-user...@googlegroups.com.
> To post to this group, send email to flashpc...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/flashpca-users/cab6a6f2-ed81-4d5d-9e3c-d02288677d5d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages