Snakefile: fix memory function for clusters == 'all'
This commit is contained in:
parent
8dafb7bc83
commit
49ec143b0a
@ -313,6 +313,8 @@ def memory(w):
|
|||||||
break
|
break
|
||||||
if w.clusters.endswith('m'):
|
if w.clusters.endswith('m'):
|
||||||
return int(factor * (18000 + 180 * int(w.clusters[:-1])))
|
return int(factor * (18000 + 180 * int(w.clusters[:-1])))
|
||||||
|
elif w.clusters == "all":
|
||||||
|
return int(factor * (18000 + 180 * 4000))
|
||||||
else:
|
else:
|
||||||
return int(factor * (10000 + 195 * int(w.clusters)))
|
return int(factor * (10000 + 195 * int(w.clusters)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user