'by_sample': 'lane_to_fastq.turtle',
}
+ env = None
+ pythonpath = os.environ.get('PYTHONPATH', None)
+ if pythonpath is not None:
+ env = "PYTHONPATH=%s" % (pythonpath,)
condor_entries = self.build_condor_arguments(result_map)
for script_type in template_map.keys():
template = loader.get_template(template_map[script_type])
variables = {'python': sys.executable,
'logdir': self.log_path,
- 'env': os.environ.get('PYTHONPATH', None),
+ 'env': env,
'args': condor_entries[script_type],
'root_url': self.api.root_url,
}
Universe=vanilla
-executable={{ exe }}
+executable={{ python }}
error={{ logdir }}/fastq.$(process).out
output={{ logdir }}/fastq.$(process).out
log={{ logdir }}/fastq.log
-{% if env %}environment={{ env }}{% endif %}
+{% if env %}environment="{{env}}"{% endif %}
{% for arg in args %}
arguments="{{ arg.pyscript }} -o {{ arg.target }} {% if arg.flowcell %}-f {{ arg.flowcell }}{% endif %} {% if arg.istar %}-i{% endif %} {% for s in arg.sources %}{{ s }} {% endfor %}"
Universe=vanilla
-executable={{ exe }}
+executable={{ python }}
error={{ logdir }}/fastq.$(process).out
output={{ logdir }}/fastq.$(process).out
log={{ logdir }}/fastq.log
-{% if env %}environment={{ env }}{% endif %}
+{% if env %}environment="{{env}}"{% endif %}
{% for arg in args %}
-arguments="{{ arg.pyscript }} -o {{ arg.target }} {% for s in arg.sources %}{{ s }} {% endfor %}
+arguments="{{ arg.pyscript }} -o {{ arg.target }} {% for s in arg.sources %}{{ s }} {% endfor %}"
queue
{% endfor %}
Universe=vanilla
-executable={{ exe }}
+executable={{ python }}
error={{ logdir }}/fastq.$(process).out
output={{ logdir }}/fastq.$(process).out
log={{ logdir }}/fastq.log
-{% if env %}environment={{ env }}{% endif %}
+{% if env %}environment="{{env}}"{% endif %}
{% for arg in args %}
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 %}"