PLINK unable to read covariate file
1
0
Entering edit mode
13 months ago

Hello everyone, I am doing a GWAS analysis by plink 1.9. When I upload my covariate file, it reads

Ignoring --covar since no commands reference the covariates

I have double-checked my covariate file and it is in the right format (as it works as a phenotype file). I have also checked the value of the covariate file (with R) and it is indeed numeric. Here it is my command:

--bfile ../genotype_all/qc_1 --pheno ../phenotype/weight --covar test_covar.txt --covar-number 1 --assoc

and here it is the log:

Logging to plink.log.
Options in effect:
  --assoc
  --bfile ../genotype_all/qc_1
  --covar test_covar.txt
  --covar-number 1
  --pheno ../phenotype/weight

64266 MB RAM detected; reserving 32133 MB for main workspace.
449792 variants loaded from .bim file.
488371 people (223470 males, 264803 females, 98 ambiguous) loaded from .fam.
Ambiguous sex IDs written to plink.nosex .
486613 phenotype values present after --pheno.
Using 1 thread (no multithreaded calculations invoked).
Warning: Ignoring --covar since no commands reference the covariates.

Can anyone tell what is wrong? Thank you very much for your help!

GWAS plink SNP • 609 views
ADD COMMENT
0
Entering edit mode

Please use the formatting bar (especially the code option) to present your post better. You can use backticks for inline code (`text` becomes text), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.
code_formatting

ADD REPLY
2
Entering edit mode
13 months ago

You're using --assoc, which is an obsolete command that does not take covariates into account. Use --linear/--logistic instead.

ADD COMMENT
0
Entering edit mode

It works! Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 2414 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