Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in solve.default(ww) #13

Closed
Chase556677 opened this issue Jan 2, 2018 · 2 comments
Closed

Error in solve.default(ww) #13

Chase556677 opened this issue Jan 2, 2018 · 2 comments

Comments

@Chase556677
Copy link

Chase556677 commented Jan 2, 2018

Hi Xiaolei,

When I use this command for the FarmCPU GWAS(showed below)

imMVP <- MVP(phe=phenotype,geno=genotype,map=map,K=Kinship,CV.FarmCPU=Covariates,nPC.FarmCPU=3,perc=1,priority="speed",ncpus=8,vc.method="EMMA",maxLoop=10,method.bin="FaST-LMM",permutation.threshold=TRUE,permutation.rep=100,threshold=0.05,method="FarmCPU")


#--------------------------------------Welcome to MVP--------------------------------------# 
#    A Memory-efficient, Visualization-enhanced, and Parallel-accelerated Tool For GWAS    # 
# Version: 1.0.1                                                                           # 
# Authors: Lilin Yin, Haohao Zhang, Zhiwu Zhang, Xinyun Li, Shuhong Zhao, and Xiaolei Liu  # 
# Contact: xiaoleiliu@mail.hzau.edu.cn                                                     # 
#------------------------------------------------------------------------------------------# 
[1] "Input data has 378 individuals, 258873 markers"
[1] "Principal Component Analysis Start..."
 means for first 10 snps:
 [1] 0 0 0 0 0 0 0 0 0 0
[1] "GWAS Start..."
[1] "FarmCPU Start ..."
[1] "Current loop: 1 out of maximum of 10"
[1] "seqQTN"
NULL
[1] "scanning..."
[1] "number of covariates in current loop is:"
[1] 8
Error in solve.default(ww) : 
  Lapack routine dgesv: system is exactly singular: U[5,5] = 0

I got an error about Error in solve.default(ww).The kinship and PCA were calculated by MVP.
Please help,Thanks.

@YinLiLin
Copy link
Collaborator

YinLiLin commented Jan 3, 2018

If the covariates are PCA, please shut down the parameter "nPC.FarmCPU", they are the same. So you could run as fallowing:

imMVP <- MVP(phe=phenotype,geno=genotype,map=map,K=Kinship,CV.FarmCPU=Covariates,
            perc=1,priority="speed",ncpus=8,vc.method="EMMA",maxLoop=10,method.bin=
           "FaSTLMM",permutation.threshold=TRUE,permutation.rep=100,threshold=0.05,
            method="FarmCPU")

or

imMVP <- MVP(phe=phenotype,geno=genotype,map=map,K=Kinship,nPC.FarmCPU=3,
            perc=1,priority="speed",ncpus=8,vc.method="EMMA",maxLoop=10,method.bin=
           "FaST-LMM",permutation.threshold=TRUE,permutation.rep=100,threshold=0.05,
            method="FarmCPU")

If the covariates are not PCA, please check your covariates, maybe the determinant of the matrix is too small to be inversed.

@hyacz
Copy link
Collaborator

hyacz commented Sep 12, 2018

Closed because there is no activity for too long. if you have any related new messages, feel free to open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants