Mercurial > repos > rnateam > rnacommender
comparison main.py @ 4:a609d6dc8047 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/rna_commander/tools/rna_tools/rna_commender commit 7ad344d108076116e702e1c1e91cea73d8fcadc4
author | rnateam |
---|---|
date | Thu, 28 Jul 2016 05:55:25 -0400 |
parents | 8918de535391 |
children | b3462a72ff76 |
comparison
equal
deleted
inserted
replaced
3:ecf125a1ad73 | 4:a609d6dc8047 |
---|---|
5 import sys | 5 import sys |
6 from rbpfeatures import RBPVectorizer | 6 from rbpfeatures import RBPVectorizer |
7 from data import PredictDataset | 7 from data import PredictDataset |
8 from recommend import Predictor | 8 from recommend import Predictor |
9 | 9 |
10 from theano import config | |
11 | |
12 __author__ = "Gianluca Corrado" | 10 __author__ = "Gianluca Corrado" |
13 __copyright__ = "Copyright 2016, Gianluca Corrado" | 11 __copyright__ = "Copyright 2016, Gianluca Corrado" |
14 __license__ = "MIT" | 12 __license__ = "MIT" |
15 __maintainer__ = "Gianluca Corrado" | 13 __maintainer__ = "Gianluca Corrado" |
16 __email__ = "gianluca.corrado@unitn.it" | 14 __email__ = "gianluca.corrado@unitn.it" |
17 __status__ = "Production" | 15 __status__ = "Production" |
18 | 16 |
19 config.floatX = 'float32' | |
20 | 17 |
21 if __name__ == '__main__': | 18 if __name__ == '__main__': |
22 parser = argparse.ArgumentParser( | 19 parser = argparse.ArgumentParser( |
23 description=__doc__, | 20 description=__doc__, |
24 formatter_class=argparse.ArgumentDefaultsHelpFormatter) | 21 formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
44 trained_model=model, | 41 trained_model=model, |
45 serendipity_dic=model + '_', | 42 serendipity_dic=model + '_', |
46 output="output.txt") | 43 output="output.txt") |
47 P.predict() | 44 P.predict() |
48 else: | 45 else: |
49 sys.exit("""The queried protein has no domain similarity with the proteins in the training dataset. It cannot be predicted.""") | 46 sys.stdout.write(""" |
47 The queried protein has no domain similarity with the proteins in the training dataset. It cannot be predicted. | |
48 """) |