-
Notifications
You must be signed in to change notification settings - Fork 22
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 glm.score #43
Comments
Thank you for your interest in GMMAT! Currently, the function does not take gzipped bgen files as the input, and you would need to gunzip it to a .bgen file. Best, |
Hi Han, Thank you for your response. I have unzipped the file but I still get an error reading in the file. I'm not sure whether its the gen.file and samplefile command that's causing it. I have put the names of the files in the command below:
|
Were you able to run any analyses using this BGEN file with a different software program (e.g. PLINK2)? |
Hi Chen, Thanks for your response. I converted the pgen file to bgen file by using the command. I also filtered the SNPs via MAF score and imputation score.
I was able to use the pgen file to run other analyses but have not tried with bgen. |
Please export to bgen-1.3 and let me know if it works or not. Thanks, |
Hi Han, Thank you for your response. I have exported to bgen 1.3 and still same error:
|
Can you send me a simulated reproducible example? I will take a look. |
Dear Dr Chen, Thank you for your response. I have figured out the problem as I made a stupid error and my file was not stored in the right directory. However, I am getting a new error saying:
My mixed linear regression model includes all patients with genotyped data and therefore exactly matches patient IDs in the bgen/sample file but of course in different orders. However, my bgen file/bgen sample file contains two IDs: FID and IID. My sample bgen file looks like this with 1931 patient IDs. The first ID is the FID and the second ID is the IID. E.g. 1032 is FID and IID is 468768 for one individual.
The dataframe for my linear regression model is in long format and includes patient IID and the list of covariates ...
All the IIDs in the dataframe above matches IIDs in the sample bgen. I thought the software would ignore the FIDs in my genetic file? Any help you could provide would be much appreciated. |
I guess your BGEN 1.3 file should already include a single identifier (see the BGEN format), so you probably don't need Best, |
Hi Han, I've tried running without sample file
I still get the same error:
Is this because my genetic file contains 2 IDs? But my regression model only contains one ID? |
Hello, If you are not using the family ID in this analysis, could you please create a fake sample file that shows both ID_1 and ID_2 as individual ID? If your null model included the individual ID, then they should be automatically matched to the genotype file. Let me know if it fixes the problem or not. Thanks, |
Hi Han, Thanks for your response. Just to confirm, I should implement the changes to the genetic file (take out FID and repeat IID twice ) and then recreate the bgen file and sample bgen file and re-run again? Thanks |
I don't think you need to create the bgen file again. You can use |
Hello Dr Chen,
I am running the glmm.score command below. The command includes a gzipped bgen file and my linear mixed model regression (BSmodel). Both the bgen file and the linear mixed model contains IID. Since my bgen file is so big, I have gzipped the file and want to test if the first 100 rows are read in...The size of the gzipped bgen file is 8 GB. The IIDs aren't necessarily in the same order in the genetic file and the model. I am running the command below:
The error message:
I'm not sure what this error means. Does this mean I have to supply the select matrix? I assumed the IIDs would be automatically matched between the genetic file and regression model.
Please let me know if you would require any more information/corresponding data or commands. Thanks very much!
The text was updated successfully, but these errors were encountered: