Plink with hwe option does not work
1
0
Entering edit mode
4.5 years ago

Hi all,

I am new to Plink, I was trying to extract SNPs based on base position with filters like maf and hwe, below are my Plink codes:

/home/Software/plink \
--bfile mydata \
--chr 1 --from-bp 10 --to-bp 100000 \
--hwe 1e-6 \
--make-bed \
--maf 0.01 \
--out OutputFile

When I only include maf option, the codes work fine, but when I have both maf and hwe options, the codes does not work. Could anyone see the possible problem there? Could the incompatibility between options be a possible reason? Maybe --chr cannot be used with --hwe or --bfile cannot be used with --hwe? I have no clue. Please help me. Lots of thanks in advance. By the way, the log file returned by Plink says "double free or corruption", does that mean something?

Best wishes,
Yutang

software-error SNP • 1.5k views
ADD COMMENT
0
Entering edit mode

What do you mean by do not work? Do you have the output log?

ADD REPLY
0
Entering edit mode

Sorry for my vague description. I have and only have the output log, no other output files (bed, bim, fam) returned.

ADD REPLY
0
Entering edit mode

Please post the full .log file (or console output) from your failing run.

ADD REPLY
0
Entering edit mode
4.5 years ago
Tao ▴ 540

There is incompatibility between options in PLINK.

I would suggest you to separate your process into two steps: --hwe, --maf are for quality control; and --chr --from-bp --to-bp are for extracting.

And --out should be prefix names of output plink files, not folder name.

ADD COMMENT
0
Entering edit mode

Thank you very much for your suggestion! I will give it a try. Also thanks for pointing out the mistake in --out option, I have changed the folder name to a file name in my post.

ADD REPLY
0
Entering edit mode

NO worries. Please upvote or accept my post if you think useful :)

ADD REPLY

Login before adding your answer.

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