+ added convenient script
[qpalma.git] / tools / run_specific_scripts / transcriptome_analysis / createNewDataset.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import os.path
5 import cProfile
6
7 from compile_dataset import DatasetGenerator
8
9
10 def run():
11 jp = os.path.join
12
13 main_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/main'
14
15 #spliced_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_1'
16 #result_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_1/dataset'
17
18 spliced_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_3'
19 result_dir = '/fml/ag-raetsch/home/fabio/tmp/vmatch_evaluation/spliced_3/dataset'
20
21 map_1_fn = jp(main_dir,'map.vm.spliced')
22 map_2_fn = jp(spliced_dir,'map.vm')
23
24 dg = DatasetGenerator(map_1_fn,map_2_fn)
25 dg.compile_dataset()
26 dg.saveAs(jp(result_dir,'dataset_run_1.pickle'))
27
28 if __name__ == '__main__':
29 #cProfile.run('run()')
30 run()