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

Segmentation fault when reading BGEN file #38

Open
jielab opened this issue Sep 14, 2017 · 6 comments
Open

Segmentation fault when reading BGEN file #38

jielab opened this issue Sep 14, 2017 · 6 comments

Comments

@jielab
Copy link

jielab commented Sep 14, 2017

Dear Xiaowei:

When I use the latest version of rvtest and the BGEN input file, why the log says "Loaded [ 0 ] samples from VCF files"? There is NO VCF file at all. Also, the BGEN file has two part, one is .bgen and the other part is .sample. So, how do I specify the .sample file?

In the phenotype file, does my header line must have the following five as the header names: "fid iid motid fatid sex"? It seems that the command options in RVTEST is very similar to PLINK, such as --covar-name --pheno-name. But in PLINK, the phenotype file only needs the first two columns "FID IID" and then the rest could be anything.

Thank you very much & best regards,
jie

Below is the LOG file:

Thank you for using rvtests (version: 20170818, git: 72ab223)
....
....
Effective Options
--inBgen ukb_imp_chr20_v2.bgen
--out chr20.rvtest
--pheno bmi.EUR.ped
--pheno-name bmi
--single score

[INFO] Program version: 20170818
[INFO] Analysis started at: Wed Sep 13 21:46:39 2017
[INFO] Loaded [ 0 ] samples from VCF files
[INFO] Loaded [ 334348 ] sample pheontypes
Segmentation fault

@dajiangliu
Copy link
Collaborator

Did you try --meta score option? --single score is less actively maintained for now.

@jielab
Copy link
Author

jielab commented Sep 14, 2017

still got the same error. I think the segmentation fault error came from reading the input file, RVTESTS has not gone to --meta or --single part yet. I still don't understand why the log file says "from VCF files" even when i specify it to read a .bgen file. And i don't know where to specify the .sample file.

BTW, I used PLINK2a to read this .bgen file, and there is no problem.

best regards,
Jie

@zhanxw
Copy link
Owner

zhanxw commented Sep 14, 2017 via email

@zhanxw
Copy link
Owner

zhanxw commented Sep 15, 2017

The current version of RVTESTS requires that .bgen file includes sample names. In that case a separate .sample file is not be needed. I just learned that many other .bgen files do not include sample names. In that case, I need to make RVTESTS support loading .sample file.
I will work that, and update this issue.

@jielab
Copy link
Author

jielab commented Sep 15, 2017

I see. i will not use RVTESTS for .bgen files based association analyses, for now then. Hopefully you will release a new version soon that address the issues that I raised.

Best regards,
Jie

@zhanxw
Copy link
Owner

zhanxw commented Oct 10, 2017

@jiehuang001 This version (https://github.com/zhanxw/rvtests/releases/tag/v2.0.6) should support BGEN format. Please let me know if you have additional questions. Thanks.

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

No branches or pull requests

3 participants