Permalink
Browse files

Added option to control memory allocation

  • Loading branch information...
1 parent 9eadf0c commit 4ed9117d79c9a62c54cc96f6499ce21158bf2186 @rynge rynge committed Oct 31, 2016
Showing with 12 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 osg-gem.conf.example
  3. +6 −0 tools/dax-level-2
View
@@ -7,6 +7,8 @@ task-files/hisat2/*.ht2
reference/*.fa
reference/*.bt2
reference/*.ht2
+reference/*.txt
+reference/*.gtf
tools/AutoADAG.pyc
osg-gem.conf
View
@@ -21,6 +21,10 @@ input2 = DRR046893
[config]
+# Memory available to the jobs. This should be roughly 2X the
+# size of the reference genome, rounded up whole GB
+memory = 8 GB
+
# process using TopHat2
tophat2 = False
View
@@ -222,12 +222,18 @@ def main():
# Create a abstract dag
dax = AutoADAG("level-2")
+ # memory requirements
+ memory = "2G"
+ if conf.has_option("config", "memory"):
+ memory = conf.get("config", "memory")
+
# Add executables to the DAX-level replica catalog
for exe_name in os.listdir(base_dir + "/tools/"):
exe = Executable(name=exe_name, arch="x86_64", installed=False)
exe.addPFN(PFN("file://" + base_dir + "/tools/" + exe_name, "local"))
if exe_name == "tophat" or exe_name == "hisat2":
exe.addProfile(Profile(Namespace.PEGASUS, "clusters.size", 5))
+ exe.addProfile(Profile(Namespace.CONDOR, "request_memory", memory))
dax.addExecutable(exe)
# has to be the one under public/

0 comments on commit 4ed9117

Please sign in to comment.