0

I need to download this file : https://github.com/cbherer/Bherer_etal_SexualDimorphismRecombination/blob/master/Refined_genetic_map_b37.tar.gz

Here is my command:

wget https://github.com/cbherer/Bherer_etal_SexualDimorphismRecombination/blob/master/Refined_genetic_map_b37.tar.gz

The file was downloaded, but I want to reach the text files in it. I tried :

tar -zxvf Refined_genetic_map_b37.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I checked the file :

file Refined_genetic_map_b37.tar.gz
Refined_genetic_map_b37.tar.gz: HTML document, UTF-8 Unicode text, with very long lines

So, what should I do to extract the text files of it ?

2

You are using the wrong URL to access the file. What you are fetching is a web page. The correct URL is

https://github.com/cbherer/Bherer_etal_SexualDimorphismRecombination/raw/master/Refined_EUR_genetic_map_b37.tar.gz

Notice raw instead of blob.

You would see this URL if you went to you original URL and checked the link connected to the "Download" button on the page.

1
  • Thanks a lot. It works !
    – Şevval
    Mar 4 '21 at 14:44
0

As pointed @Kusalananda, you need to download the raw , here is another link (it can be downloaded also through the browser):

wget https://raw.githubusercontent.com/cbherer/Bherer_etal_SexualDimorphismRecombination/master/Refined_genetic_map_b37.tar.gz
1
  • 1
    Thanks a lot. It works !
    – Şevval
    Mar 4 '21 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.