+ added information on cut positions of spliced reads
[qpalma.git] / scripts / Run.py
1 #!/usr/bin/env python
2 # -*- coding:latin-1 -*-
3
4
5 class Run(dict):
6 """
7 This class represents the needed parameters for one single run of an
8 algorithm. This means that if we for example perform a model selection over
9 C then for each value of C we have to create one Run object storing the
10 respective parameters.
11 """
12
13 def __init__(self):
14 pass
15
16 def __repr__(self):
17
18 result = ""
19 for key,val in self.iteritems():
20 result += "%s:\t\t %s\n" % (key,str(val))
21
22 return result
23
24 if __name__ == '__main__':
25 r1 = Run()
26 r1['attrib_1'] = 12
27 r1['attrib_2'] = 22
28
29 print "%s" % r1
30