Skip to content

Commit

Permalink
Merge branch 'master' into ct-travis-retry-conda-install
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Feb 8, 2019
2 parents a50e373 + 40f724a commit b04a849
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pipes/Broad_LSF/cluster-submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
cmdline += "-oo {logdir}/LSF-{jobname}.txt ".format(logdir=LOGDIR, jobname=jobname)

# pass memory resource request to LSF
mem = int(props.get('resources', {}).get('mem_mb'))/1000
mem = int(props.get('resources', {}).get('mem_mb',1000))/1000
if mem:
cmdline += '-R "rusage[mem={}]" -M {} '.format(mem, 2 * int(mem))

Expand Down
8 changes: 5 additions & 3 deletions pipes/Broad_UGER/cluster-submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ def hard_blacklist_node(node):
cmdline += "-o {logdir} -j y ".format(logdir=LOGDIR)

# pass memory resource request to cluster
mem = int(props.get('resources', {}).get('mem_mb'))/1000
mem = props.get('resources', {}).get('mem_mb')
threads = props.get('resources', {}).get('threads')
threads = threads or 1

if mem:
mem = int(mem)
threads = int(threads) or 1 # only used here for the calculation of memory per-core
# on UGER, memory requests are per-core (according to BITS as of Sept. 6, 2016)
mem_per_core = round((int(mem)*1024)/int(threads), 2)
mem_per_core = round(float(mem)/float(threads), 2)
# increase memory requested to reflect new JVM-UGER changes requiring greater memory headroom
mem_per_core = round(mem_per_core*1.1,2)
if blacklisted_nodes:
Expand Down
2 changes: 1 addition & 1 deletion pipes/rules/demux.rules
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ rule illumina_demux:
shutil.rmtree(outdir, ignore_errors=True)
makedirs(set(map(os.path.dirname, output)))
lane = get_one_lane_from_run(wildcards.flowcell, wildcards.lane, config['seqruns_demux'])
opts = '--threads={} --JVMmemory={}g'.format(resources.threads, resources.mem_mb)
opts = '--threads={} --JVMmemory={}m'.format(resources.threads, resources.mem_mb)
for opt in ('minimum_base_quality', 'max_mismatches', 'min_mismatch_delta', 'max_no_calls', 'read_structure', 'minimum_quality', 'run_start_date'):
if lane.get(opt):
opts += ' --%s=%s' % (opt, lane[opt])
Expand Down

0 comments on commit b04a849

Please sign in to comment.