PLINK error doing a GWAS
1
0
Entering edit mode
22 days ago

Hi,

I am doing the GWAS using a logistic model with covariates, using PLINK v1.9. And I get this:

PLINK v1.90b6.18 64-bit (16 Jun 2020)
Options in effect:
  --bfile imputed_breast_13
  --covar covariables.txt
  --hide-covar
  --logistic
  --out logistic_results
  --pheno breast_phenotype.txt

Start time: Thu Aug 22 19:35:25 2024

Note: --hide-covar flag deprecated.  Use e.g. "--linear hide-covar".
Random number seed: 1724348125
1031683 MB RAM detected; reserving 515841 MB for main workspace.
6662332 variants loaded from .bim file.
1886 people (0 males, 1886 females) loaded from .fam.
1886 phenotype values present after --pheno.
Using 1 thread (no multithreaded calculations invoked).
--covar: 18 covariates loaded.
1885 people had missing value(s), and 1 person was not seen in the covariate file.
Before main variant filters, 1886 founders and 0 nonfounders present.
Calculating allele frequencies... done.
6662332 variants and 1886 people pass filters and QC.
**Among remaining phenotypes, 1 is a case and 0 are controls.  (1885 phenotypes
are missing.)**
**Warning: Skipping --logistic since less than two phenotypes are present.**

The first lines of my covariates:

The first lines of my covariates

The first lines of my phenotype:

The first lines of my phenotype

Does anyone know what's happening and how to fix it?

Thanks in advance.

phenotype PLINK covariates association GWAS • 478 views
ADD COMMENT
0
Entering edit mode

Please do not paste screenshots of plain text content, it is counterproductive. You can copy paste the content directly here (using the code formatting option shown below), or use a GitHub Gist if the content volume exceeds allowed length here.

code_formatting

ADD REPLY
0
Entering edit mode

Hi, your pheno file should have, as its third column, an encoding of 0 (control) and 1 (case)

Kevin

ADD REPLY
0
Entering edit mode

Not actually true unless the --1 flag (https://www.cog-genomics.org/plink/1.9/input#pheno_encoding ) is added to the command line.

ADD REPLY
0
Entering edit mode
19 days ago

PLINK 2.0 supports the categorical covariate values you have in the last two columns, but PLINK 1.x does not.

ADD COMMENT

Login before adding your answer.

Traffic: 1486 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6