Datasets:
| echo "=== PLINK MAF分布 ===" | |
| awk 'NR>1 { | |
| maf=$5; | |
| if(maf<0.001) a++; | |
| else if(maf<0.005) b++; | |
| else if(maf<0.01) c++; | |
| else if(maf<0.05) d++; | |
| else e++; | |
| } END { | |
| total=NR-1; | |
| print "MAF<0.001: " a " (" a/total*100 "%)"; | |
| print "0.001≤MAF<0.005: " b " (" b/total*100 "%)"; | |
| print "0.005≤MAF<0.01: " c " (" c/total*100 "%)"; | |
| print "0.01≤MAF<0.05: " d " (" d/total*100 "%)"; | |
| print "MAF≥0.05: " e " (" e/total*100 "%)"; | |
| }' new_spectrum.frqx | |