X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0951c8832286665dd3b2eafd829a2dab0630ade8..23a70b3597649d58014fa8968271b8c850306af9:/crunch_scripts/arvados-bcbio-nextgen.py diff --git a/crunch_scripts/arvados-bcbio-nextgen.py b/crunch_scripts/arvados-bcbio-nextgen.py index bcb2a2c474..b7e19ecddb 100755 --- a/crunch_scripts/arvados-bcbio-nextgen.py +++ b/crunch_scripts/arvados-bcbio-nextgen.py @@ -1,11 +1,15 @@ #!/usr/bin/python +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 import arvados import subprocess -import subst +import crunchutil.subst as subst import shutil import os import sys +import time if len(arvados.current_task()['parameters']) > 0: p = arvados.current_task()['parameters'] @@ -94,6 +98,9 @@ details: # variant_regions: /path/to/your.bed ''') +os.unlink("/usr/local/share/bcbio-nextgen/gemini_data") +os.symlink(arvados.get_job_param_mount("gemini_data"), "/usr/local/share/bcbio-nextgen/gemini_data") + os.chdir(arvados.current_task().tmpdir) rcode = subprocess.call(["bcbio_nextgen.py", "--workflow", "template", "/tmp/crunch-job/freebayes-variant.yaml", "project1", @@ -118,6 +125,7 @@ if rcode == 0: print("arvados-bcbio-nextgen: start writing output to keep") done = False + api = arvados.api('v1') while not done: try: out = arvados.CollectionWriter()