Skip to content

Commit

Permalink
fix: Allow for large assets in refgenie
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin-s-h committed Mar 27, 2023
1 parent 60f066f commit 1c99871
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bio/refgenie/test/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ rule obtain_asset:
tag="default"
wrapper:
"master/bio/refgenie"

rule obtain_large_asset:
output:
# the name refers to the refgenie seek key (see attributes on http://refgenomes.databio.org)
star_index=directory("refs/star_index/hg38/star_index")
# Multiple outputs/seek keys are possible here.
params:
genome="hg38",
asset="star_index",
tag="default"
wrapper:
"master/bio/refgenie"
3 changes: 2 additions & 1 deletion bio/refgenie/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
rgc = refgenconf.RefGenConf(conf_path, writable=True)

# pull asset if necessary
gat, archive_data, server_url = rgc.pull(genome, asset, tag, force=False)
# BUG Times out when pulling large assets
gat, archive_data, server_url = rgc.pull(genome, asset, tag, force=False, force_large=True)

for seek_key, out in snakemake.output.items():
path = rgc.seek(genome, asset, tag_name=tag, seek_key=seek_key, strict_exists=True)
Expand Down

0 comments on commit 1c99871

Please sign in to comment.