Skip to content
Snippets Groups Projects
Commit 78155e66 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch 'dev' into 'master'

bb files in repository and generate is os dependent

See merge request piotr.gawron/big-bed-generator!4
parents f9cd0708 0220ad6e
Branches master
No related tags found
1 merge request!4bb files in repository and generate is os dependent
Pipeline #76878 passed
Mapping bb files are located on minerva-net: /var/www/genomics/
Available by url:
- https://minerva-net.lcsb.uni.lu/genomics/refGene38.bb
- https://minerva-net.lcsb.uni.lu/genomics/refGene19.bb
- https://minerva-net.lcsb.uni.lu/genomics/refGene18.bb
File added
File added
File added
......@@ -5,6 +5,7 @@ import subprocess
import sys
import urllib.request
from pathlib import Path
from sys import platform
BIN_PATH = "bin/"
......@@ -38,7 +39,14 @@ def download_ucsc_file(filename):
os.makedirs(BIN_PATH)
if not Path(BIN_PATH + filename).is_file():
url = 'https://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/' + filename
if platform == "linux" or platform == "linux2":
url = 'https://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/' + filename
elif platform == "darwin":
url = 'https://hgdownload.soe.ucsc.edu/admin/exe/macOSX.x86_64/' + filename
else:
print("Platform not supported: " + platform)
sys.exit()
print('Beginning file download ' + filename + ' (' + url + ')')
urllib.request.urlretrieve(url, BIN_PATH + filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment