Fix issues introduced when switching to the django templating system for fastq genera...
authorDiane Trout <diane@caltech.edu>
Fri, 27 Jul 2012 22:35:00 +0000 (15:35 -0700)
committerDiane Trout <diane@caltech.edu>
Fri, 27 Jul 2012 22:35:00 +0000 (15:35 -0700)
It needs to know where django is, and I didn't include a short form for
identifying flowcells.

encode_submission/ucsc_gather.py
htsworkflow/templates/srf.condor

index c45e3820bbc8b9f146684bef9ed8f5443fb03f8e..811ffdfc277373e86b6f0f3fe7f9782463c8bdb0 100644 (file)
@@ -21,6 +21,9 @@ from zipfile import ZipFile
 
 import RDF
 
+if not 'DJANGO_SETTINGS_MODULE' in os.environ:
+    os.environ['DJANGO_SETTINGS_MODULE'] = 'htsworkflow.settings'
+
 from htsworkflow.util import api
 from htsworkflow.util.rdfhelp import \
      dafTermOntology, \
index 21d523258e2028dbccad2785ad7a51e8b66dd5e9..1c8e8547e02d7137a2898045648d1dc354e55d26 100644 (file)
@@ -6,6 +6,6 @@ log={{ logdir }}/fastq.log
 {% if env %}environment={{ env }}{% endif %}
 
 {% for arg in args %}
-arguments="{{ arg.pyscript }}  {{ arg.sources.0 }} --verbose {% if arg.flowcell %}-f {{ arg.flowcell }}{% endif %} {% if arg.ispaired %}--left {{ arg.target }} --right {{ arg.target_right }}{% else %}--single {{ arg.target }}{% endif %}"
+arguments="{{ arg.pyscript }}  {{ arg.sources.0 }} --verbose {% if arg.flowcell %}--flowcell {{ arg.flowcell }}{% endif %} {% if arg.ispaired %}--left {{ arg.target }} --right {{ arg.target_right }}{% else %}--single {{ arg.target }}{% endif %}"
 queue
 {% endfor %}