Re: Error in PLINK2 filtering

16 views
Skip to first unread message
Message has been deleted
Message has been deleted

Chris Chang

unread,
Sep 17, 2025, 12:37:40 PM (4 days ago) Sep 17
to 陈泓朴, plink2-users
Always post full .log file(s) when asking for troubleshooting help.

On Wed, Sep 17, 2025 at 7:21 AM 陈泓朴 <otis....@gmail.com> wrote:
Hi there, thank you for developing this great tool.

I am using PLINK2 to obtain the PLINK BED file as the input to construct sparse GRM.

However, I encountered the conflict of frequency filtering. The problem is that even though I've already specified `maf` threshold, it turned out that there were still variants with minor allele frequency < 0.01.

Code:
```
threadNum=32
memNum=5000  # in Mb
##
LD_window_size=50
LD_window_step=10
LD_r2=0.1
maf=0.01
mac=1  ## None
geno=0.1
hwe=1e-15

plink2 --bfile ../GWAS.plink.17K/ALL_germline.chr${id}.normed.vcf --keep ${sample_file} --indep-pairwise ${LD_window_size} ${LD_window_step} ${LD_r2} --maf ${maf} --mac ${mac} --geno ${geno} --hwe ${hwe} --threads ${threadNum} --memory ${memNum} --out ${output_path}/${output_prefix}
```

I'll really appreciate it if you could give me a hint.

Hongpu,
Best.

--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/8fbdf55f-e69e-4015-b8af-a522777e5eecn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages