Entering edit mode
3.8 years ago
Sashinika
•
0
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.
You need to perform gunzip not gzip
$ gunzip -c uniprot_sprot_human.dat.gz this is the command I gave. but still getting the same error.
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
.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
.Most likely your download didn't complete and as such the file is not a proper gz archive
For an incompletely downloaded file the error would have been more informative, something like this: