PLINK does not uncompress GZ file automatically, why?
0
0
Entering edit mode
9.3 years ago
odeta.xjd • 0

I'm new to plink, I read the plink online instruction that plink will uncompress gz file automatically, but when I use plink:

./plink --bfile mydata

it gives me the following error:

ERROR: No file [ mydata.fam ] exists.

Only when I uncompress my .fam .bim .bed files, the command works.

I am very confused because the dataset is large and uncompress them takes up many space on my mac. Can anyone tell my why my plink does not uncompress gz files?

plink gz SNP • 6.3k views
ADD COMMENT
0
Entering edit mode

The .bed is already a binary format, and is already meant to be a sort of compression of the data. Why do you want to compress it? How much do you save after the compression?

ADD REPLY
0
Entering edit mode

I just feel weird since plink is supposed to work with .gz file but it does not work on my laptop

ADD REPLY
0
Entering edit mode

Are you using the same version in both computers? Maybe you have a missing or misconfigured gzip library.

ADD REPLY
0
Entering edit mode

I am sorry I totally don't understand what "a missing or misconfigured gzip library" mean, and if yes how can I solve this problem? Thank you very much for answering

ADD REPLY
0
Entering edit mode

dont compress the bed bim or fam files. leave them as is. they are in binary format. they are already HIGHLY condensed.

ADD REPLY
0
Entering edit mode

Basically what Giovanni mean is that the gzip library installed on the two different computer may be different. Most likely that you didn't even have the gzip library installed in on your laptop. That's why plink cannot work with the gzip data

ADD REPLY
0
Entering edit mode

Thank you for the reply, and how can I install a gzip library?

ADD REPLY
0
Entering edit mode

I presume you use mac?

brew install gzip

Or just http://www.gzip.org/

ADD REPLY
0
Entering edit mode

I installed gzip:

brew install gzip
==> Installing gzip from homebrew/homebrew-dupes
==> Downloading https://homebrew.bintray.com/bottles-dupes/gzip-1.6.yosemite.bot
######################################################################## 100.0%
==> Pouring gzip-1.6.yosemite.bottle.1.tar.gz
🍺  /usr/local/Cellar/gzip/1.6: 33 files, 404K

But plink still can't work with .gz files. Shall I restart my mac maybe?

ADD REPLY

Login before adding your answer.

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