+ added convenient script
[qpalma.git] / tools / run_specific_scripts / transcriptome_analysis / createNewDataset.py
index 89fd86c..19cb0c7 100644 (file)
@@ -2,18 +2,29 @@
 # -*- coding: utf-8 -*-
 
 import os.path
+import cProfile
 
-import qpalma.Configuration as Conf
 from compile_dataset import DatasetGenerator
 
-jp = os.path.join
 
-working_dir='/fml/ag-raetsch/home/fabio/tmp/transcriptome_data'
-result_dir='/fml/ag-raetsch/home/fabio/tmp/sandbox'
+def run():
+   jp = os.path.join
 
-map_1_fn = jp(working_dir,'map.vm.spliced')
-map_2_fn = jp(working_dir,'map_2nd.vm')
+   main_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/main'
 
-dg = DatasetGenerator(map_1_fn,map_2_fn)
-dg.compile_dataset()
-dg.saveAs(jp(result_dir,'dataset_transcriptome_run_1'))
+   #spliced_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_1'
+   #result_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_1/dataset'
+
+   spliced_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_3'
+   result_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_3/dataset'
+
+   map_1_fn = jp(main_dir,'map.vm.spliced')
+   map_2_fn = jp(spliced_dir,'map.vm')
+
+   dg = DatasetGenerator(map_1_fn,map_2_fn)
+   dg.compile_dataset()
+   dg.saveAs(jp(result_dir,'dataset_run_1.pickle'))
+
+if __name__ == '__main__':
+   #cProfile.run('run()')
+   run()