gloome 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
gloome-2.0.0/PKG-INFO ADDED
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: gloome
3
+ Version: 2.0.0
4
+ Summary: GLOOME: Gain Loss Mapping Engine
5
+ Author-email: Rodion Polonskyi <rodion@tauex.tau.ac.il>
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: biopython>=1.85
9
+ Requires-Dist: d3blocks>=1.4.11
10
+ Requires-Dist: matplotlib>=3.7
11
+ Requires-Dist: networkx>=3.0
12
+ Requires-Dist: numpy<2.0,>=1.20
13
+ Requires-Dist: pandas>=2.0
14
+ Requires-Dist: scipy>=1.10
15
+
16
+ # GLOOME: Gain Loss Mapping Engine
17
+ A bioinformatics tool for analyzing gene gain and loss events during evolution
18
+
19
+ GLOOME provides evolutionary analysis of presence and absence profiles (phyletic patterns). These patterns are assumed to result from gain and loss dynamics along a phylogenetic tree. Examples of characters represented by phyletic patterns include:
20
+
21
+ Restriction sites
22
+ Gene families
23
+ Introns
24
+ Indels
25
+ The primary purpose of the GLOOME server is to accurately infer branch-specific and site-specific gain and loss events. This inference is based on a stochastic mapping approach, using evolutionary models that accurately reflect the underlying biological processes.
26
+
27
+ Features
28
+ Support for various evolutionary models
29
+ Gain and loss inference using stochastic mapping or maximum parsimony
30
+ Estimation of gain/loss rates per character
31
+ Advanced optimization options
32
+ Likelihood and parsimony-based output
33
+
34
+ ### Project structure
35
+
36
+ ```Project structure
37
+ gloome
38
+ ├── gloome
39
+ │ ├── jsonNpEncoder
40
+ │ │ ├── __init__.py
41
+ │ │ └── npencoder.py
42
+ │ ├── services
43
+ │ │ ├── __init__.py
44
+ │ │ ├── design_functions.py
45
+ │ │ └── service_functions.py
46
+ │ ├── tree
47
+ │ │ ├── __init__.py
48
+ │ │ ├── node.py
49
+ │ │ └── tree.py
50
+ │ ├── __init__.py
51
+ │ ├── __main__.py
52
+ │ ├── config.py
53
+ │ ├── consts.py
54
+ │ └── utils.py
55
+ ├── pyproject.toml
56
+ └── README.md
57
+ ```
58
+
59
+ This manual provides comprehensive Gloome on input formats, command-line usage, interpretation of results, and troubleshooting.
60
+
61
+ ### Program Execution
62
+ To get the project working, you need to run the command "python -m gloome" in the terminal with the following parameters:
63
+
64
+ #### Required parameters:
65
+
66
+ ```Required parameters
67
+ --msa_file <type=str>
68
+ Specify the msa filepath.
69
+
70
+ --tree_file <type=str>
71
+ Specify the newick filepath.
72
+ ```
73
+
74
+ #### Optional parameters:
75
+
76
+ ```Optional parameters
77
+ --out_dir <type=str>
78
+ Specify the outdir path.
79
+
80
+ --process_id <type=str>
81
+ Specify a process ID, otherwise it will be generated automatically.
82
+
83
+ --mode <type=str>
84
+ Execution mode style. Possible options:
85
+ ('draw_tree', 'compute_likelihood_of_tree', 'create_all_file_types', 'execute_all_actions').
86
+ Default is 'execute_all_actions'.
87
+
88
+ --with_internal_nodes <type=int>
89
+ Specify the tree has internal nodes. Default is 1.
90
+
91
+ --categories_quantity <type=int>
92
+ Specify categories quantity. Default is 4.
93
+
94
+ --alpha <type=float>
95
+ Specify alpha. Default is 0.5.
96
+
97
+ --pi_1 <type=float>
98
+ Specify pi_1. Default is 0.5.
99
+
100
+ --coefficient_bl <type=float>
101
+ Specify coefficient_bl. Default is 1.0.
102
+
103
+ --is_optimize_pi <type=int>
104
+ Specify is_optimize_pi. Default is 1.
105
+
106
+ --is_optimize_pi_average <type=int>
107
+ Specify is_optimize_pi_average. Default is 0.
108
+
109
+ --is_optimize_alpha <type=int>
110
+ Specify is_optimize_alpha. Default is 1.
111
+
112
+ --is_optimize_bl <type=int>
113
+ Specify is_optimize_bl. Default is 1.
114
+
115
+ --file_interactive_tree_html <type=int>
116
+ Specify file_interactive_tree_html. Default is 0.
117
+
118
+ --file_newick_tree_png <type=int>
119
+ Specify file_newick_tree_png. Default is 0.
120
+
121
+ --file_table_of_nodes_tsv <type=int>
122
+ Specify file_table_of_nodes_tsv. Default is 1.
123
+
124
+ --file_table_of_branches_tsv <type=int>
125
+ Specify file_table_of_branches_tsv. Default is 1.
126
+
127
+ --file_log_likelihood_tsv <type=int>
128
+ Specify file_log_likelihood_tsv. Default is 1.
129
+
130
+ --file_table_of_attributes_tsv <type=int>
131
+ Specify file_table_of_attributes_tsv. Default is 1.
132
+
133
+ --file_phylogenetic_tree_nwk <type=int>
134
+ Specify file_phylogenetic_tree_nwk. Default is 1.
135
+ ```
136
+
137
+ ### Citing
138
+ If you use the GLOOME web server for your research, please make sure to cite the following publication:
139
+
140
+ Cohen, O., Ashkenazy, H., Belinky, F., Huchon, D., and Pupko, T. 2010. GLOOME: gain loss mapping engine.
141
+ Bioinformatics 26(22):2914-2915. [[pdf](https://www.tau.ac.il/~talp/publications/GLOOME.pdf)] [[abs](https://academic.oup.com/bioinformatics/article/26/22/2914/228050)]
142
+
143
+ ### BibTeX
144
+ Proper citation helps support the development and maintenance of this tool.
145
+
146
+ ### Contact
147
+ For questions, issues, or contributions, please open an issue on the repository or contact the maintainer directly.
148
+
gloome-2.0.0/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # GLOOME: Gain Loss Mapping Engine
2
+ A bioinformatics tool for analyzing gene gain and loss events during evolution
3
+
4
+ GLOOME provides evolutionary analysis of presence and absence profiles (phyletic patterns). These patterns are assumed to result from gain and loss dynamics along a phylogenetic tree. Examples of characters represented by phyletic patterns include:
5
+
6
+ Restriction sites
7
+ Gene families
8
+ Introns
9
+ Indels
10
+ The primary purpose of the GLOOME server is to accurately infer branch-specific and site-specific gain and loss events. This inference is based on a stochastic mapping approach, using evolutionary models that accurately reflect the underlying biological processes.
11
+
12
+ Features
13
+ Support for various evolutionary models
14
+ Gain and loss inference using stochastic mapping or maximum parsimony
15
+ Estimation of gain/loss rates per character
16
+ Advanced optimization options
17
+ Likelihood and parsimony-based output
18
+
19
+ ### Project structure
20
+
21
+ ```Project structure
22
+ gloome
23
+ ├── gloome
24
+ │ ├── jsonNpEncoder
25
+ │ │ ├── __init__.py
26
+ │ │ └── npencoder.py
27
+ │ ├── services
28
+ │ │ ├── __init__.py
29
+ │ │ ├── design_functions.py
30
+ │ │ └── service_functions.py
31
+ │ ├── tree
32
+ │ │ ├── __init__.py
33
+ │ │ ├── node.py
34
+ │ │ └── tree.py
35
+ │ ├── __init__.py
36
+ │ ├── __main__.py
37
+ │ ├── config.py
38
+ │ ├── consts.py
39
+ │ └── utils.py
40
+ ├── pyproject.toml
41
+ └── README.md
42
+ ```
43
+
44
+ This manual provides comprehensive Gloome on input formats, command-line usage, interpretation of results, and troubleshooting.
45
+
46
+ ### Program Execution
47
+ To get the project working, you need to run the command "python -m gloome" in the terminal with the following parameters:
48
+
49
+ #### Required parameters:
50
+
51
+ ```Required parameters
52
+ --msa_file <type=str>
53
+ Specify the msa filepath.
54
+
55
+ --tree_file <type=str>
56
+ Specify the newick filepath.
57
+ ```
58
+
59
+ #### Optional parameters:
60
+
61
+ ```Optional parameters
62
+ --out_dir <type=str>
63
+ Specify the outdir path.
64
+
65
+ --process_id <type=str>
66
+ Specify a process ID, otherwise it will be generated automatically.
67
+
68
+ --mode <type=str>
69
+ Execution mode style. Possible options:
70
+ ('draw_tree', 'compute_likelihood_of_tree', 'create_all_file_types', 'execute_all_actions').
71
+ Default is 'execute_all_actions'.
72
+
73
+ --with_internal_nodes <type=int>
74
+ Specify the tree has internal nodes. Default is 1.
75
+
76
+ --categories_quantity <type=int>
77
+ Specify categories quantity. Default is 4.
78
+
79
+ --alpha <type=float>
80
+ Specify alpha. Default is 0.5.
81
+
82
+ --pi_1 <type=float>
83
+ Specify pi_1. Default is 0.5.
84
+
85
+ --coefficient_bl <type=float>
86
+ Specify coefficient_bl. Default is 1.0.
87
+
88
+ --is_optimize_pi <type=int>
89
+ Specify is_optimize_pi. Default is 1.
90
+
91
+ --is_optimize_pi_average <type=int>
92
+ Specify is_optimize_pi_average. Default is 0.
93
+
94
+ --is_optimize_alpha <type=int>
95
+ Specify is_optimize_alpha. Default is 1.
96
+
97
+ --is_optimize_bl <type=int>
98
+ Specify is_optimize_bl. Default is 1.
99
+
100
+ --file_interactive_tree_html <type=int>
101
+ Specify file_interactive_tree_html. Default is 0.
102
+
103
+ --file_newick_tree_png <type=int>
104
+ Specify file_newick_tree_png. Default is 0.
105
+
106
+ --file_table_of_nodes_tsv <type=int>
107
+ Specify file_table_of_nodes_tsv. Default is 1.
108
+
109
+ --file_table_of_branches_tsv <type=int>
110
+ Specify file_table_of_branches_tsv. Default is 1.
111
+
112
+ --file_log_likelihood_tsv <type=int>
113
+ Specify file_log_likelihood_tsv. Default is 1.
114
+
115
+ --file_table_of_attributes_tsv <type=int>
116
+ Specify file_table_of_attributes_tsv. Default is 1.
117
+
118
+ --file_phylogenetic_tree_nwk <type=int>
119
+ Specify file_phylogenetic_tree_nwk. Default is 1.
120
+ ```
121
+
122
+ ### Citing
123
+ If you use the GLOOME web server for your research, please make sure to cite the following publication:
124
+
125
+ Cohen, O., Ashkenazy, H., Belinky, F., Huchon, D., and Pupko, T. 2010. GLOOME: gain loss mapping engine.
126
+ Bioinformatics 26(22):2914-2915. [[pdf](https://www.tau.ac.il/~talp/publications/GLOOME.pdf)] [[abs](https://academic.oup.com/bioinformatics/article/26/22/2914/228050)]
127
+
128
+ ### BibTeX
129
+ Proper citation helps support the development and maintenance of this tool.
130
+
131
+ ### Contact
132
+ For questions, issues, or contributions, please open an issue on the repository or contact the maintainer directly.
133
+
File without changes
@@ -0,0 +1,6 @@
1
+ from gloome.config import Config
2
+
3
+ if __name__ == '__main__':
4
+ conf = Config()
5
+ conf.check_and_set_input_and_output_variables()
6
+ conf.execute_calculation()