gzip: uniprot_sprot_human.dat.gz: not in gzip format
0
0
Entering edit mode
3.8 years ago

dear biostars, I am extraxting or unzipping a file uniprot_sprot_human.dat.gz to perform a blastx. but when im unzipping this file terminal is giving an error like, "gzip: uniprot_sprot_human.dat.gz: not in gzip format". please direct me on correct path. thank you.

gunzip error linux ubuntu unzip • 2.1k views
ADD COMMENT
1
Entering edit mode

You need to perform gunzip not gzip

ADD REPLY
0
Entering edit mode

$ gunzip -c uniprot_sprot_human.dat.gz this is the command I gave. but still getting the same error.

ADD REPLY
1
Entering edit mode

Like the error says, your file is not in gzip format. That is likely because of how you downloaded it, so you should tell us about that.

By the way, type file uniprot_sprot_human.dat.gz and it will tell you what kind of file you have. I suspect your file may already be an uncompressed text file, in which case you can simply rename it to not have .gz.

ADD REPLY
1
Entering edit mode

By the way, doing gunzip -c will print the output on the screen, which is probably not what you want. I suggest you redirect the output into a file or go without -c.

ADD REPLY
1
Entering edit mode

Most likely your download didn't complete and as such the file is not a proper gz archive

ADD REPLY
2
Entering edit mode

For an incompletely downloaded file the error would have been more informative, something like this:

gzip: uniprot_sprot_human.dat.gz: unexpected end of file
ADD REPLY

Login before adding your answer.

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