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

make relatedness matrix: gsl ERROR: vector length n must be positive integer #29

Closed
DSLituiev opened this issue Nov 29, 2016 · 5 comments

Comments

@DSLituiev
Copy link

DSLituiev commented Nov 29, 2016

I am trying to figure out how to make relatedness matrix and running into an error:

$gemma -bfile $BASE -epm ${BASE}.out.param.txt \
        -emu ${BASE}.out.log.txt -ebv ${BASE}.out.bv.txt \
        -k ${BASE}.cXX.txt \
        -predict 1 -o ${BASE}.predicted

Reading Files ...
## number of total individuals = 94
## number of analyzed individuals = 94
## number of covariates = 1
## number of phenotypes = 1
gsl: init_source.c:29: ERROR: vector length n must be positive integer
Default GSL error handler invoked.
Segmentation fault

I am using pre-compiled 0.95alpha and 0.94.1 binaries on CentOS6.7.

@mkerin
Copy link

mkerin commented Feb 16, 2017

I am also hitting this error. Did you solve it in the end?

@xiangzhou
Copy link
Collaborator

Have you masked the individuals who you want to predict the phenotypes for? To do that, you can replace their phenotype values in the phenotype file with NA.

@mkerin
Copy link

mkerin commented Feb 18, 2017

Just thought I'd post to say that solved the problem. Thanks for the quick response!

@pcarbo
Copy link
Collaborator

pcarbo commented May 11, 2017

@xiangzhou I'm labeling this as a bug because it would be helpful to have proper error handling---and give a more informative error message---before a segmentation fault is reached.

@pjotrp
Copy link
Member

pjotrp commented Aug 14, 2017

I am closing this issue. Yes, we should have proper error handling. But it is a largish subject. Best to keep adding enforce_msg statements etc.

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

5 participants