Permalink
Browse files
Added option to control memory allocation
- Loading branch information...
Showing
with
12 additions
and
0 deletions.
-
+2
−0
.gitignore
-
+4
−0
osg-gem.conf.example
-
+6
−0
tools/dax-level-2
|
|
@@ -7,6 +7,8 @@ task-files/hisat2/*.ht2 |
|
|
reference/*.fa
|
|
|
reference/*.bt2
|
|
|
reference/*.ht2
|
|
|
+reference/*.txt
|
|
|
+reference/*.gtf
|
|
|
tools/AutoADAG.pyc
|
|
|
osg-gem.conf
|
|
|
|
|
|
@@ -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
|
|
|
|
|
|
|
|
|
@@ -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