Entering edit mode
4 months ago
puneet
•
0
plink2 --bfile fixed --pheno final_noheader.csv --covar covariates.txt --glm --out association_results
PLINK v2.00a5.12LM AVX2 Intel (25 Jun 2024) www.cog-genomics.org/plink/2.0/
(C) 2005-2024 Shaun Purcell, Christopher Chang GNU General Public License v3
Logging to association_results.log.
Options in effect:
--bfile fixed
--covar covariates.txt
--glm
--out association_results
--pheno final_noheader.csv
Start time: Tue Jul 30 15:58:13 2024
31777 MiB RAM detected, ~21461 available; reserving 15888 MiB for main
workspace.
Using up to 16 threads (change this with --threads).
45 samples (0 females, 0 males, 45 ambiguous; 45 founders) loaded from
fixed.fam.
638 variants loaded from fixed.bim.
Error: No entries in final_noheader.csv correspond to loaded sample IDs.
End time: Tue Jul 30 15:58:13 2024
So I'm finding traits with snp using plink and my snp data but it giving this error. What do I do?
The error clearly says that there is not match between the samples IDs. I suggest to check the
FID
andIID
in the respective first and second column of.fam
files. They should correspondingly match with first and the second columns in your final_nonheader.csv file.so this is how my .fam look
this is final_nonheader.csv
so what changes i have to do...
You should match the first column of
.fam
file with the first column offinal_nonheader.csv
file and the second column of.fam
file with the second column offinal_nonheader.csv
file. You can do this inR
orUnix
which ever is suitable for you. Finally make sure that all the subjects in your.fam
file are present in yourfinal_nonheader.csv
file.