+ update makefiles to fetch automatically valid Python includes and libs
[qpalma.git] / qpalma / DatasetUtils.py
index f4db9d8..d16eb3c 100644 (file)
@@ -84,7 +84,7 @@ def generateTrainingDataset(settings):
    accessWrapper = DataAccessWrapper(settings)
    seqInfo = SeqSpliceInfo(accessWrapper,settings['allowed_fragments'])
 
-   for line in open(settings['training_data_fn']):
+   for line in open(settings['training_reads_fn']):
       line = line.strip()
       if line.startswith('#') or line == '':
          continue
@@ -130,9 +130,11 @@ def generateTrainingDataset(settings):
 
       assert checkExons(dna,relative_exons,readAlignment,id)
 
-      currentSeqInfo = (id,chromo)
+      currentSeqInfo = (id,chromo,strand,seqBeginning,seqEnd)
+
+      dataset[id] = (currentSeqInfo,readAlignment,[prb],exons)
       
-      dataset.setdefault(id, []).append((currentSeqInfo,readAlignment,[prb],exons))
+      # dataset.setdefault(id, []).append()
 
    saveData('training',dataset,settings)