Sorting of SNPs which has less than 0.05 threshold P-Value
1
1
Entering edit mode
5.7 years ago
aarvaBioinfo ▴ 10

How can we get total number of SNPs in plink association output file as "qassoc" and "adjusted file" which has less than 0.05 P values?

SNP plink • 2.1k views
ADD COMMENT
0
Entering edit mode

please post some example lines from that files.

ADD REPLY
4
Entering edit mode
5.7 years ago
zx8754 11k

From the plink manuals the pvalue column for qassoc file is the 9th. So we can use awk to keep the 1st row header, then filter on 9th column value, see example:

awk '(NR==1) || ($9 < 0.05) ' myfile.qassoc > myfile_subset.qassoc

To get the number of rows:

awk '$9 < 0.05' myfile.qassoc | wc -l
ADD COMMENT

Login before adding your answer.

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