Entering edit mode
6.9 years ago
AQ7
▴
30
Goodmorning everyone,
I'm trying to use plink 1.07 for a linear regression analysis with several COVs. I'm using a ped where i have cases (1) and controls (2) but when I start the analysis I get a message telling me that plink sees 0 cases and 0 controls, How is it possible? maybe for linear regression we must indicate which are cases and controls in another way? thanks a lot for you help. I attach here my command line:
plink --file mydata --linear --genotypic --covar mycovar.txt
thanks a lot
good morning, information on the covariates file can be found here: https://www.cog-genomics.org/plink/1.9/input#covar
I think that the problem could be more to do with your FAM file. What are the contents of mydata.fam? You may have to create a custom FAM, depending on the source of your data.
thanks a lot for you answer my fam file is like that:
You need to add --allow-no-sex to your command line, since plink 1.x throws out phenotypes of missing-sex samples by default.
Sorry I've not seen your comment yestarday!!! It works adding --allow-no-sex, really thanks a lot
AQ7, can you confirm that this works so that others will benefit?
Yes Kevin It works!! thanks a lot for your patience and fast help
Okay, FAM looks good. When you run PLINK, it is definitely using this file? - otherwise, specify it with the
--fam
flag.The only other thing that I can think of is that the FID and IIDs in your genotype PED file do not exactly match those in the FAM or in mycovar.txt. The minimum information required for the covariates file is FID and IID, and then obviously a covariate of interest.
All FIDs and IIDs have to be the exact same, across:
thanks Kevin, I've checked and yes thay are in the same order, I even try the same command line specifying --bed --fam --bim but i always get 0 cases and 0 controls output.... my covar file looks like that
Which version are you using? Does it not even run as
plink --file mydata --linear
?I get the same result even with just this command you suggested me. So with all NA at the end and with 0 cases and 0 controls in log file. :(
i'm using version 1.07
...and mydata.ped - how does that look?