Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/#46-luigi-integration-br…
Browse files Browse the repository at this point in the history
…ian' into feature/#46-luigi-integration-brian
  • Loading branch information
Ubuntu committed Aug 11, 2016
2 parents dd66c49 + 2a1723b commit 3f61b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ This script runs an unlimited number of BAM file uploads at random intervals. T
cd luigi_task_executor
python simulate_analysis.py --es-index-host localhost --es-index-port 9200 --ucsc-storage-client-path ../ucsc-storage2-client --ucsc-storage-host https://storage2.ucsc-cgl.org

# temp
git hf update; git hf pull; PYTHONPATH='' luigi --module AlignmentQCTask AlignmentQCCoordinator --es-index-host localhost --es-index-port 9200 --ucsc-storage-client-path ../ucsc-storage2-client --ucsc-storage-host https://storage2.ucsc-cgl.org --tmp-dir `pwd`/luigi_state --data-dir /mnt/AlignmentQCTask --max-jobs 1

### populate dashboard

cd Dashboard
Expand Down
3 changes: 2 additions & 1 deletion luigi_task_executor/simulate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import random

# TODO: need to paramerterize the bam file used
# TODO: some hardcoded paths below

def getOptions():

Expand All @@ -25,7 +26,7 @@ def main():
upload_count += 1
print "LOOP ANALYSIS: "+str(upload_count)

cmd = "mkdir -p <HERE> && PYTHONPATH='' luigi --module AlignmentQCTask AlignmentQCCoordinator --es-index-host %s --es-index-port %s --ucsc-storage-client-path %s --ucsc-storage-host %s" % (args.es_index_host, args.es_index_port, args.ucsc_storage_client_path, args.ucsc_storage_host)
cmd = "mkdir -p /mnt/AlignmentQCTask && PYTHONPATH='' luigi --module AlignmentQCTask AlignmentQCCoordinator --es-index-host %s --es-index-port %s --ucsc-storage-client-path %s --ucsc-storage-host %s --tmp-dir `pwd`/luigi_state --data-dir /mnt/AlignmentQCTask --max-jobs 1" % (args.es_index_host, args.es_index_port, args.ucsc_storage_client_path, args.ucsc_storage_host)
print "CMD: %s" % cmd
result = subprocess.call(cmd, shell=True)
if (result != 0):
Expand Down

0 comments on commit 3f61b6c

Please sign in to comment.