Print library.library_id instead of the flowcell.library_id.
authorDiane Trout <diane@caltech.edu>
Sat, 26 Sep 2009 00:02:12 +0000 (00:02 +0000)
committerDiane Trout <diane@caltech.edu>
Sat, 26 Sep 2009 00:02:12 +0000 (00:02 +0000)
The first is the library_id string we assign to libraries,
the second is the foriegn key linking to the library primary key.
(yes they're both named library_id... it makes it confusing.)

htsworkflow/frontend/eland_config/views.py

index 0ffa84f9af6274212ed82b331a803460ae32b0ff..994a410cb5a3982472d465d5f0fad4d5ec85f7ee 100644 (file)
@@ -272,8 +272,8 @@ def getElandConfig(flowcell, regenerate=False):
   
   #Convert all newline conventions to unix style
   for lane in fcObj.lane_set.all():
-    data.append("# Lane%d: %d | %s" % \
-      (lane.lane_number, lane.library_id,  lane.library.library_name.replace('%', '%%')))
+    data.append("# Lane%d: %s | %s" % \
+      (lane.lane_number, unicode(lane.library.library_id),  lane.library.library_name.replace('%', '%%')))
   
   #data.append("GENOME_DIR %s" % (BASE_DIR))
   #data.append("CONTAM_DIR %s" % (BASE_DIR))