Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Dec 28, 2023
1 parent 68aeb44 commit 92e7d34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions download_urls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
count: null

- url: https://storage.googleapis.com/gcp-public-data--gnomad/release/2.1.1/constraint/gnomad.v2.1.1.lof_metrics.by_gene.txt.bgz
- url: https://storage.googleapis.com/gcp-public-data--gnomad/release/v4.0/constraint/gnomad.v4.0.constraint_metrics.tsv
- url: https://ftp.ncbi.nih.gov/gene/DATA/mim2gene_medgen

- comment: We replace the linux64.gene2.xml binary with a wrapper to zcat...
Expand Down
Git LFS file not shown
3 changes: 3 additions & 0 deletions excerpt-data/58d3599d2c8b6c3d/url.txt
Git LFS file not shown
7 changes: 4 additions & 3 deletions varfish_db_downloader/wget.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ def excerpt_head(url: str, path_out: str, count: int):
break
f_out.write(line.encode("utf-8"))
f_out.write(b"\n")
# Fixup resulting compressed files so they are proper bgzip.
subprocess.check_call(["gzip", "-d", path_out])
subprocess.check_call(["bgzip", path_out.replace(".gz", "")])
if try_gzip:
# Fixup resulting compressed files so they are proper bgzip.
subprocess.check_call(["gzip", "-d", path_out])
subprocess.check_call(["bgzip", path_out.replace(".gz", "")])


def excerpt_copy_tbi(url: str, path_out: str, count: int):
Expand Down

0 comments on commit 92e7d34

Please sign in to comment.