countess 0.0.1__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.
Files changed (151) hide show
  1. CountESS-0.0.1/CountESS.egg-info/PKG-INFO +33 -0
  2. CountESS-0.0.1/CountESS.egg-info/SOURCES.txt +149 -0
  3. CountESS-0.0.1/CountESS.egg-info/dependency_links.txt +1 -0
  4. CountESS-0.0.1/CountESS.egg-info/entry_points.txt +6 -0
  5. CountESS-0.0.1/CountESS.egg-info/requires.txt +11 -0
  6. CountESS-0.0.1/CountESS.egg-info/top_level.txt +2 -0
  7. CountESS-0.0.1/MANIFEST.in +2 -0
  8. CountESS-0.0.1/PKG-INFO +33 -0
  9. CountESS-0.0.1/README.md +16 -0
  10. CountESS-0.0.1/countess/__init__.py +11 -0
  11. CountESS-0.0.1/countess/base/__init__.py +10 -0
  12. CountESS-0.0.1/countess/base/config_constants.py +55 -0
  13. CountESS-0.0.1/countess/base/constants.py +288 -0
  14. CountESS-0.0.1/countess/base/dataframe.py +332 -0
  15. CountESS-0.0.1/countess/base/storemanager.py +1015 -0
  16. CountESS-0.0.1/countess/base/utils.py +308 -0
  17. CountESS-0.0.1/countess/config/__init__.py +13 -0
  18. CountESS-0.0.1/countess/config/config_check.py +192 -0
  19. CountESS-0.0.1/countess/config/types.py +1584 -0
  20. CountESS-0.0.1/countess/experiment/__init__.py +7 -0
  21. CountESS-0.0.1/countess/experiment/condition.py +134 -0
  22. CountESS-0.0.1/countess/experiment/experiment.py +750 -0
  23. CountESS-0.0.1/countess/gui/__init__.py +21 -0
  24. CountESS-0.0.1/countess/gui/configurator.py +1031 -0
  25. CountESS-0.0.1/countess/gui/create_root_dialog.py +189 -0
  26. CountESS-0.0.1/countess/gui/create_seqlib_dialog.py +108 -0
  27. CountESS-0.0.1/countess/gui/delete_dialog.py +124 -0
  28. CountESS-0.0.1/countess/gui/dialog.py +188 -0
  29. CountESS-0.0.1/countess/gui/dialog_elements.py +682 -0
  30. CountESS-0.0.1/countess/gui/edit_dialog.py +552 -0
  31. CountESS-0.0.1/countess/gui/logging_frame.py +296 -0
  32. CountESS-0.0.1/countess/gui/options_frame.py +1402 -0
  33. CountESS-0.0.1/countess/gui/plugin.py +152 -0
  34. CountESS-0.0.1/countess/gui/plugin_source_window.py +354 -0
  35. CountESS-0.0.1/countess/gui/seqlib_apply_dialog.py +82 -0
  36. CountESS-0.0.1/countess/libraries/__init__.py +22 -0
  37. CountESS-0.0.1/countess/libraries/barcode.py +228 -0
  38. CountESS-0.0.1/countess/libraries/barcodeid.py +187 -0
  39. CountESS-0.0.1/countess/libraries/barcodemap.py +122 -0
  40. CountESS-0.0.1/countess/libraries/barcodevariant.py +201 -0
  41. CountESS-0.0.1/countess/libraries/basic.py +218 -0
  42. CountESS-0.0.1/countess/libraries/idonly.py +104 -0
  43. CountESS-0.0.1/countess/libraries/seqlib.py +628 -0
  44. CountESS-0.0.1/countess/libraries/variant.py +638 -0
  45. CountESS-0.0.1/countess/main.py +307 -0
  46. CountESS-0.0.1/countess/plugins/__init__.py +194 -0
  47. CountESS-0.0.1/countess/plugins/options.py +988 -0
  48. CountESS-0.0.1/countess/plugins/scoring.py +363 -0
  49. CountESS-0.0.1/countess/selection/__init__.py +7 -0
  50. CountESS-0.0.1/countess/selection/selection.py +857 -0
  51. CountESS-0.0.1/countess/sequence/__init__.py +10 -0
  52. CountESS-0.0.1/countess/sequence/aligner.py +581 -0
  53. CountESS-0.0.1/countess/sequence/fqread.py +501 -0
  54. CountESS-0.0.1/countess/sequence/wildtype.py +237 -0
  55. CountESS-0.0.1/countess/statistics/__init__.py +10 -0
  56. CountESS-0.0.1/countess/statistics/random_effects.py +158 -0
  57. CountESS-0.0.1/countess/statistics/ztest.py +82 -0
  58. CountESS-0.0.1/countess/store/__init__.py +0 -0
  59. CountESS-0.0.1/countess/store/csv.py +303 -0
  60. CountESS-0.0.1/countess/store/hdf.py +272 -0
  61. CountESS-0.0.1/countess/store/interface.py +88 -0
  62. CountESS-0.0.1/countess/store/parquet.py +298 -0
  63. CountESS-0.0.1/countess/tests/__init__.py +8 -0
  64. CountESS-0.0.1/countess/tests/methods.py +755 -0
  65. CountESS-0.0.1/countess/tests/test_enrich2.py +20 -0
  66. CountESS-0.0.1/countess/tests/test_experiment_barcode_lib.py +332 -0
  67. CountESS-0.0.1/countess/tests/test_experiment_barcodeid_lib.py +331 -0
  68. CountESS-0.0.1/countess/tests/test_experiment_barcodevariant_lib_coding.py +472 -0
  69. CountESS-0.0.1/countess/tests/test_experiment_barcodevariant_lib_noncoding.py +472 -0
  70. CountESS-0.0.1/countess/tests/test_experiment_basic_lib_coding.py +472 -0
  71. CountESS-0.0.1/countess/tests/test_experiment_basic_lib_noncoding.py +472 -0
  72. CountESS-0.0.1/countess/tests/test_experiment_idonly_lib.py +324 -0
  73. CountESS-0.0.1/countess/tests/test_lib_barcode.py +361 -0
  74. CountESS-0.0.1/countess/tests/test_lib_barcodeid.py +424 -0
  75. CountESS-0.0.1/countess/tests/test_lib_barcodevariant_coding.py +785 -0
  76. CountESS-0.0.1/countess/tests/test_lib_barcodevariant_noncoding.py +784 -0
  77. CountESS-0.0.1/countess/tests/test_lib_basic_coding.py +618 -0
  78. CountESS-0.0.1/countess/tests/test_lib_basic_noncoding.py +617 -0
  79. CountESS-0.0.1/countess/tests/test_lib_idonly.py +91 -0
  80. CountESS-0.0.1/countess/tests/test_module_ambivert_aligner.py +102 -0
  81. CountESS-0.0.1/countess/tests/test_module_config_check.py +68 -0
  82. CountESS-0.0.1/countess/tests/test_module_config_types.py +63 -0
  83. CountESS-0.0.1/countess/tests/test_module_dataframe.py +482 -0
  84. CountESS-0.0.1/countess/tests/test_module_enrich2_aligner.py +102 -0
  85. CountESS-0.0.1/countess/tests/test_module_fqreader.py +59 -0
  86. CountESS-0.0.1/countess/tests/test_module_options.py +775 -0
  87. CountESS-0.0.1/countess/tests/test_module_plugins_base.py +93 -0
  88. CountESS-0.0.1/countess/tests/test_module_types_basic.py +515 -0
  89. CountESS-0.0.1/countess/tests/test_module_types_libs.py +434 -0
  90. CountESS-0.0.1/countess/tests/test_module_types_sel_exp_cond.py +376 -0
  91. CountESS-0.0.1/countess/tests/test_module_variant.py +190 -0
  92. CountESS-0.0.1/countess/tests/test_module_wildtype.py +190 -0
  93. CountESS-0.0.1/countess/tests/test_selection_barcode_lib.py +331 -0
  94. CountESS-0.0.1/countess/tests/test_selection_barcodeid_lib.py +332 -0
  95. CountESS-0.0.1/countess/tests/test_selection_barcodevariant_lib_coding.py +487 -0
  96. CountESS-0.0.1/countess/tests/test_selection_barcodevariant_lib_noncoding.py +487 -0
  97. CountESS-0.0.1/countess/tests/test_selection_basic_lib_coding.py +487 -0
  98. CountESS-0.0.1/countess/tests/test_selection_basic_lib_noncoding.py +487 -0
  99. CountESS-0.0.1/countess/tests/test_selection_idonly_lib.py +334 -0
  100. CountESS-0.0.1/countess/tests/test_selection_timepoint_merge.py +52 -0
  101. CountESS-0.0.1/countess/tests/test_selection_valueerrors.py +40 -0
  102. CountESS-0.0.1/countess/tests/utilities.py +307 -0
  103. CountESS-0.0.1/docs/Makefile +153 -0
  104. CountESS-0.0.1/docs/_static/cartoons/data_hierarchy.png +0 -0
  105. CountESS-0.0.1/docs/_static/cartoons/overlap.png +0 -0
  106. CountESS-0.0.1/docs/_static/cartoons/overlap_reads.png +0 -0
  107. CountESS-0.0.1/docs/_static/gui_screenshots/complete_example.png +0 -0
  108. CountESS-0.0.1/docs/_static/gui_screenshots/context_menu.png +0 -0
  109. CountESS-0.0.1/docs/_static/gui_screenshots/empty.png +0 -0
  110. CountESS-0.0.1/docs/_static/gui_screenshots/new_child.png +0 -0
  111. CountESS-0.0.1/docs/_static/gui_screenshots/new_root.png +0 -0
  112. CountESS-0.0.1/docs/_static/gui_screenshots/seqlib.png +0 -0
  113. CountESS-0.0.1/docs/_static/gui_screenshots/seqlib_choice.png +0 -0
  114. CountESS-0.0.1/docs/_static/iD_icon.png +0 -0
  115. CountESS-0.0.1/docs/_static/notebook_plots/min_count_plot.png +0 -0
  116. CountESS-0.0.1/docs/_static/notebook_plots/unique_barcodes_plot.png +0 -0
  117. CountESS-0.0.1/docs/_static/plots/barcodes_per_variant.png +0 -0
  118. CountESS-0.0.1/docs/_static/plots/diversity.png +0 -0
  119. CountESS-0.0.1/docs/_static/plots/overlap_mismatches.png +0 -0
  120. CountESS-0.0.1/docs/_static/plots/regression_weights.png +0 -0
  121. CountESS-0.0.1/docs/_static/plots/se_pctile.png +0 -0
  122. CountESS-0.0.1/docs/_static/plots/selection_counts.png +0 -0
  123. CountESS-0.0.1/docs/_static/plots/seqlib_counts.png +0 -0
  124. CountESS-0.0.1/docs/_static/plots/sfmap.png +0 -0
  125. CountESS-0.0.1/docs/_static/plots/volcano.png +0 -0
  126. CountESS-0.0.1/docs/_static/plots/wt_shape.png +0 -0
  127. CountESS-0.0.1/docs/api.rst +178 -0
  128. CountESS-0.0.1/docs/conf.py +296 -0
  129. CountESS-0.0.1/docs/exported_notebooks/README +14 -0
  130. CountESS-0.0.1/docs/exported_notebooks/min_count.rst +429 -0
  131. CountESS-0.0.1/docs/exported_notebooks/unique_barcodes.rst +686 -0
  132. CountESS-0.0.1/docs/gui.rst +147 -0
  133. CountESS-0.0.1/docs/index.rst +27 -0
  134. CountESS-0.0.1/docs/installation.rst +46 -0
  135. CountESS-0.0.1/docs/introduction.rst +92 -0
  136. CountESS-0.0.1/docs/make.bat +190 -0
  137. CountESS-0.0.1/docs/notebooks/min_count.ipynb +658 -0
  138. CountESS-0.0.1/docs/notebooks/unique_barcodes.ipynb +1014 -0
  139. CountESS-0.0.1/docs/notebooks.rst +16 -0
  140. CountESS-0.0.1/docs/output.rst +98 -0
  141. CountESS-0.0.1/docs/plots.rst +81 -0
  142. CountESS-0.0.1/docs/scripting.rst +337 -0
  143. CountESS-0.0.1/docs/seqlib_config.rst +144 -0
  144. CountESS-0.0.1/setup.cfg +4 -0
  145. CountESS-0.0.1/setup.py +56 -0
  146. CountESS-0.0.1/tests/__init__.py +0 -0
  147. CountESS-0.0.1/tests/test_store/__init__.py +0 -0
  148. CountESS-0.0.1/tests/test_store/store_interface_tests.py +410 -0
  149. CountESS-0.0.1/tests/test_store/test_store_csv.py +19 -0
  150. CountESS-0.0.1/tests/test_store/test_store_hdf.py +19 -0
  151. CountESS-0.0.1/tests/test_store/test_store_parquet.py +19 -0
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.1
2
+ Name: CountESS
3
+ Version: 0.0.1
4
+ Summary: Analysis program for calculating variant scores from deep mutational scanning data.
5
+ Home-page: https://github.com/countess-project/countess
6
+ Author: Alan F Rubin
7
+ Author-email: alan.rubin@wehi.edu.au
8
+ License: UNKNOWN
9
+ Description: [![Build Status](https://travis-ci.com/CountESS-Project/CountESS.svg?branch=master)](https://travis-ci.com/CountESS-Project/CountESS)
10
+ [![Coverage Status](https://coveralls.io/repos/github/CountESS-Project/CountESS/badge.svg?branch=master)](https://coveralls.io/github/CountESS-Project/CountESS?branch=master)
11
+
12
+ CountESS
13
+ ========
14
+
15
+ CountESS (Count-based Experiment Scoring and Statistics) is a general software tool for processing, analyzing, and visualizing data from high-throughput functional genomics experiments based on count data, such as deep mutational scanning.
16
+
17
+ This project extends previous work on Enrich2 by moving from Python 2.7 to Python 3.6+ and add adding new features to improve performance and enable analysis of new types of data.
18
+
19
+ Questions?
20
+ ----------
21
+
22
+ Please use the [GitHub Issue Tracker](https://github.com/VariantEffect/CountESS/issues) to file bug reports or request features.
23
+
24
+ CountESS is maintained by [Alan F Rubin](mailto:alan.rubin@wehi.edu.au).
25
+
26
+ Platform: UNKNOWN
27
+ Classifier: Development Status :: 2 - Pre-Alpha
28
+ Classifier: Intended Audience :: Science/Research
29
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: License :: OSI Approved :: BSD License
32
+ Classifier: Operating System :: OS Independent
33
+ Description-Content-Type: text/markdown
@@ -0,0 +1,149 @@
1
+ MANIFEST.in
2
+ README.md
3
+ setup.py
4
+ CountESS.egg-info/PKG-INFO
5
+ CountESS.egg-info/SOURCES.txt
6
+ CountESS.egg-info/dependency_links.txt
7
+ CountESS.egg-info/entry_points.txt
8
+ CountESS.egg-info/requires.txt
9
+ CountESS.egg-info/top_level.txt
10
+ countess/__init__.py
11
+ countess/main.py
12
+ countess/base/__init__.py
13
+ countess/base/config_constants.py
14
+ countess/base/constants.py
15
+ countess/base/dataframe.py
16
+ countess/base/storemanager.py
17
+ countess/base/utils.py
18
+ countess/config/__init__.py
19
+ countess/config/config_check.py
20
+ countess/config/types.py
21
+ countess/experiment/__init__.py
22
+ countess/experiment/condition.py
23
+ countess/experiment/experiment.py
24
+ countess/gui/__init__.py
25
+ countess/gui/configurator.py
26
+ countess/gui/create_root_dialog.py
27
+ countess/gui/create_seqlib_dialog.py
28
+ countess/gui/delete_dialog.py
29
+ countess/gui/dialog.py
30
+ countess/gui/dialog_elements.py
31
+ countess/gui/edit_dialog.py
32
+ countess/gui/logging_frame.py
33
+ countess/gui/options_frame.py
34
+ countess/gui/plugin.py
35
+ countess/gui/plugin_source_window.py
36
+ countess/gui/seqlib_apply_dialog.py
37
+ countess/libraries/__init__.py
38
+ countess/libraries/barcode.py
39
+ countess/libraries/barcodeid.py
40
+ countess/libraries/barcodemap.py
41
+ countess/libraries/barcodevariant.py
42
+ countess/libraries/basic.py
43
+ countess/libraries/idonly.py
44
+ countess/libraries/seqlib.py
45
+ countess/libraries/variant.py
46
+ countess/plugins/__init__.py
47
+ countess/plugins/options.py
48
+ countess/plugins/scoring.py
49
+ countess/selection/__init__.py
50
+ countess/selection/selection.py
51
+ countess/sequence/__init__.py
52
+ countess/sequence/aligner.py
53
+ countess/sequence/fqread.py
54
+ countess/sequence/wildtype.py
55
+ countess/statistics/__init__.py
56
+ countess/statistics/random_effects.py
57
+ countess/statistics/ztest.py
58
+ countess/store/__init__.py
59
+ countess/store/csv.py
60
+ countess/store/hdf.py
61
+ countess/store/interface.py
62
+ countess/store/parquet.py
63
+ countess/tests/__init__.py
64
+ countess/tests/methods.py
65
+ countess/tests/test_enrich2.py
66
+ countess/tests/test_experiment_barcode_lib.py
67
+ countess/tests/test_experiment_barcodeid_lib.py
68
+ countess/tests/test_experiment_barcodevariant_lib_coding.py
69
+ countess/tests/test_experiment_barcodevariant_lib_noncoding.py
70
+ countess/tests/test_experiment_basic_lib_coding.py
71
+ countess/tests/test_experiment_basic_lib_noncoding.py
72
+ countess/tests/test_experiment_idonly_lib.py
73
+ countess/tests/test_lib_barcode.py
74
+ countess/tests/test_lib_barcodeid.py
75
+ countess/tests/test_lib_barcodevariant_coding.py
76
+ countess/tests/test_lib_barcodevariant_noncoding.py
77
+ countess/tests/test_lib_basic_coding.py
78
+ countess/tests/test_lib_basic_noncoding.py
79
+ countess/tests/test_lib_idonly.py
80
+ countess/tests/test_module_ambivert_aligner.py
81
+ countess/tests/test_module_config_check.py
82
+ countess/tests/test_module_config_types.py
83
+ countess/tests/test_module_dataframe.py
84
+ countess/tests/test_module_enrich2_aligner.py
85
+ countess/tests/test_module_fqreader.py
86
+ countess/tests/test_module_options.py
87
+ countess/tests/test_module_plugins_base.py
88
+ countess/tests/test_module_types_basic.py
89
+ countess/tests/test_module_types_libs.py
90
+ countess/tests/test_module_types_sel_exp_cond.py
91
+ countess/tests/test_module_variant.py
92
+ countess/tests/test_module_wildtype.py
93
+ countess/tests/test_selection_barcode_lib.py
94
+ countess/tests/test_selection_barcodeid_lib.py
95
+ countess/tests/test_selection_barcodevariant_lib_coding.py
96
+ countess/tests/test_selection_barcodevariant_lib_noncoding.py
97
+ countess/tests/test_selection_basic_lib_coding.py
98
+ countess/tests/test_selection_basic_lib_noncoding.py
99
+ countess/tests/test_selection_idonly_lib.py
100
+ countess/tests/test_selection_timepoint_merge.py
101
+ countess/tests/test_selection_valueerrors.py
102
+ countess/tests/utilities.py
103
+ docs/Makefile
104
+ docs/api.rst
105
+ docs/conf.py
106
+ docs/gui.rst
107
+ docs/index.rst
108
+ docs/installation.rst
109
+ docs/introduction.rst
110
+ docs/make.bat
111
+ docs/notebooks.rst
112
+ docs/output.rst
113
+ docs/plots.rst
114
+ docs/scripting.rst
115
+ docs/seqlib_config.rst
116
+ docs/_static/iD_icon.png
117
+ docs/_static/cartoons/data_hierarchy.png
118
+ docs/_static/cartoons/overlap.png
119
+ docs/_static/cartoons/overlap_reads.png
120
+ docs/_static/gui_screenshots/complete_example.png
121
+ docs/_static/gui_screenshots/context_menu.png
122
+ docs/_static/gui_screenshots/empty.png
123
+ docs/_static/gui_screenshots/new_child.png
124
+ docs/_static/gui_screenshots/new_root.png
125
+ docs/_static/gui_screenshots/seqlib.png
126
+ docs/_static/gui_screenshots/seqlib_choice.png
127
+ docs/_static/notebook_plots/min_count_plot.png
128
+ docs/_static/notebook_plots/unique_barcodes_plot.png
129
+ docs/_static/plots/barcodes_per_variant.png
130
+ docs/_static/plots/diversity.png
131
+ docs/_static/plots/overlap_mismatches.png
132
+ docs/_static/plots/regression_weights.png
133
+ docs/_static/plots/se_pctile.png
134
+ docs/_static/plots/selection_counts.png
135
+ docs/_static/plots/seqlib_counts.png
136
+ docs/_static/plots/sfmap.png
137
+ docs/_static/plots/volcano.png
138
+ docs/_static/plots/wt_shape.png
139
+ docs/exported_notebooks/README
140
+ docs/exported_notebooks/min_count.rst
141
+ docs/exported_notebooks/unique_barcodes.rst
142
+ docs/notebooks/min_count.ipynb
143
+ docs/notebooks/unique_barcodes.ipynb
144
+ tests/__init__.py
145
+ tests/test_store/__init__.py
146
+ tests/test_store/store_interface_tests.py
147
+ tests/test_store/test_store_csv.py
148
+ tests/test_store/test_store_hdf.py
149
+ tests/test_store/test_store_parquet.py
@@ -0,0 +1,6 @@
1
+ [console_scripts]
2
+ enrich_cmd = countess.main:main_cmd
3
+
4
+ [gui_scripts]
5
+ enrich_gui = countess.main:main_gui
6
+
@@ -0,0 +1,11 @@
1
+ numpy>=1.10.4
2
+ scipy>=0.16.0
3
+ pandas>=0.18.0
4
+ statsmodels>=0.6.1
5
+ matplotlib>=1.4.3
6
+ pyyaml>=3.12
7
+ sphinx_rtd_theme
8
+ sphinx>=1.5.6
9
+ tables>=3.2.0
10
+ dask[dataframe]
11
+ fastparquet
@@ -0,0 +1,2 @@
1
+ countess
2
+ tests
@@ -0,0 +1,2 @@
1
+ recursive-include docs *
2
+ prune docs/_build
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.1
2
+ Name: CountESS
3
+ Version: 0.0.1
4
+ Summary: Analysis program for calculating variant scores from deep mutational scanning data.
5
+ Home-page: https://github.com/countess-project/countess
6
+ Author: Alan F Rubin
7
+ Author-email: alan.rubin@wehi.edu.au
8
+ License: UNKNOWN
9
+ Description: [![Build Status](https://travis-ci.com/CountESS-Project/CountESS.svg?branch=master)](https://travis-ci.com/CountESS-Project/CountESS)
10
+ [![Coverage Status](https://coveralls.io/repos/github/CountESS-Project/CountESS/badge.svg?branch=master)](https://coveralls.io/github/CountESS-Project/CountESS?branch=master)
11
+
12
+ CountESS
13
+ ========
14
+
15
+ CountESS (Count-based Experiment Scoring and Statistics) is a general software tool for processing, analyzing, and visualizing data from high-throughput functional genomics experiments based on count data, such as deep mutational scanning.
16
+
17
+ This project extends previous work on Enrich2 by moving from Python 2.7 to Python 3.6+ and add adding new features to improve performance and enable analysis of new types of data.
18
+
19
+ Questions?
20
+ ----------
21
+
22
+ Please use the [GitHub Issue Tracker](https://github.com/VariantEffect/CountESS/issues) to file bug reports or request features.
23
+
24
+ CountESS is maintained by [Alan F Rubin](mailto:alan.rubin@wehi.edu.au).
25
+
26
+ Platform: UNKNOWN
27
+ Classifier: Development Status :: 2 - Pre-Alpha
28
+ Classifier: Intended Audience :: Science/Research
29
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: License :: OSI Approved :: BSD License
32
+ Classifier: Operating System :: OS Independent
33
+ Description-Content-Type: text/markdown
@@ -0,0 +1,16 @@
1
+ [![Build Status](https://travis-ci.com/CountESS-Project/CountESS.svg?branch=master)](https://travis-ci.com/CountESS-Project/CountESS)
2
+ [![Coverage Status](https://coveralls.io/repos/github/CountESS-Project/CountESS/badge.svg?branch=master)](https://coveralls.io/github/CountESS-Project/CountESS?branch=master)
3
+
4
+ CountESS
5
+ ========
6
+
7
+ CountESS (Count-based Experiment Scoring and Statistics) is a general software tool for processing, analyzing, and visualizing data from high-throughput functional genomics experiments based on count data, such as deep mutational scanning.
8
+
9
+ This project extends previous work on Enrich2 by moving from Python 2.7 to Python 3.6+ and add adding new features to improve performance and enable analysis of new types of data.
10
+
11
+ Questions?
12
+ ----------
13
+
14
+ Please use the [GitHub Issue Tracker](https://github.com/VariantEffect/CountESS/issues) to file bug reports or request features.
15
+
16
+ CountESS is maintained by [Alan F Rubin](mailto:alan.rubin@wehi.edu.au).
@@ -0,0 +1,11 @@
1
+ __all__ = [
2
+ "base",
3
+ "config",
4
+ "experiment",
5
+ "gui",
6
+ "libraries",
7
+ "plugins",
8
+ "selection",
9
+ "sequence",
10
+ "statistics" "tests",
11
+ ]
@@ -0,0 +1,10 @@
1
+ """
2
+ Enrich2 base module
3
+ ===================
4
+
5
+ This module contains core classes, constants and utility methods used by
6
+ other Enrich2 classes and methods.
7
+ """
8
+
9
+
10
+ __all__ = ["config_constants", "constants", "dataframe", "storemanager", "utils"]
@@ -0,0 +1,55 @@
1
+ """
2
+ Enrich2 configuration constants module
3
+ ======================================
4
+
5
+ This module contains all the constants used as keys in configuration files.
6
+ """
7
+
8
+
9
+ NAME = "name"
10
+ CONDITIONS = "conditions"
11
+ LIBRARIES = "libraries"
12
+ SELECTIONS = "selections"
13
+ TIMEPOINT = "timepoint"
14
+ OUTPUT_DIR = "output directory"
15
+ REPORT_FILTERED_READS = "report filtered reads"
16
+ STORE = "store"
17
+ OVERLAP = "overlap"
18
+
19
+ FASTQ = "fastq"
20
+ READS = "reads"
21
+ REVERSE = "reverse"
22
+ FILTERS = "filters"
23
+ FILTERS_MAX_N = "max N"
24
+ FILTERS_MIN_COUNT = "min count"
25
+ FILTERS_AVG_Q = "avg quality"
26
+ FILTERS_MIN_Q = "min quality"
27
+ FILTERS_CHASTITY = "chastity"
28
+ TRIM_START = "start"
29
+ TRIM_LENGTH = "length"
30
+ SCORER = "scorer"
31
+ SCORER_PATH = "scorer path"
32
+ SCORER_OPTIONS = "scorer options"
33
+
34
+
35
+ COUNTS_FILE = "counts file"
36
+ IDENTIFIERS = "identifiers"
37
+ IDENTIFIERS_MIN_COUNT = "min count"
38
+
39
+ VARIANTS = "variants"
40
+ VARIANTS_MIN_COUNT = "min count"
41
+ VARIANTS_MAX_MUTATIONS = "max mutations"
42
+ USE_ALIGNER = "use aligner"
43
+ WILDTYPE = "wild type"
44
+ CODING = "coding"
45
+ REF_OFFSET = "reference offset"
46
+ SEQUENCE = "sequence"
47
+
48
+ BARCODES = "barcodes"
49
+ BARCODE_MAP_FILE = "map file"
50
+ BARCODE_MIN_COUNT = "min count"
51
+
52
+ FORCE_RECALCULATE = "force_recalculate"
53
+ COMPONENT_OUTLIERS = "component_outliers"
54
+ TSV_REQUESTED = "tsv_requested"
55
+ OUTPUT_DIR_OVERRIDE = "output_dir_override"
@@ -0,0 +1,288 @@
1
+ """
2
+ Enrich2 constants module
3
+ ========================
4
+
5
+ This module contains all the constants used in the Enrich2 source code.
6
+ """
7
+
8
+
9
+ import re
10
+ import collections
11
+
12
+
13
+ #: Variant string for counting wild type sequences
14
+ WILD_TYPE_VARIANT = "_wt"
15
+
16
+
17
+ #: Variant string for synonymous variants in 'synonymous' DataFrame
18
+ SYNONYMOUS_VARIANT = "_sy"
19
+
20
+
21
+ #: Logging constants
22
+ CALLBACK = "callback"
23
+ MESSAGE = "msg"
24
+ KWARGS = "kwargs"
25
+
26
+
27
+ #: HDFStore keys used by enrich2
28
+ GROUP_RAW = "raw"
29
+ GROUP_MAIN = "main"
30
+ BARCODEMAP_TABLE = "barcodemap"
31
+ IDENTIFIERS_TABLE = "identifiers"
32
+ SYNONYMOUS_TABLE = "synonymous"
33
+ VARIANTS_TABLE = "variants"
34
+ BARCODES_TABLE = "barcodes"
35
+ COUNTS_TABLE = "counts"
36
+ COUNTS_UNFILTERED_TABLE = "counts_unfiltered"
37
+ SCORES_TABLE = "scores"
38
+ SCORES_SHARED_TABLE = "scores_shared"
39
+ SCORES_SHARED_FULL_TABLE = "scores_shared_full"
40
+ SCORES_PVALUES_WT = "scores_pvalues_wt"
41
+ SCORES_PVALUES = "scores_pvalues"
42
+ OUTLIERS_TABLE = "outliers"
43
+ LOG_RATIOS_TABLE = "log_ratios"
44
+ WEIGHTS_TABLE = "weights"
45
+
46
+
47
+ #: Element types
48
+ VARIANTS = "variants"
49
+ BARCODES = "barcodes"
50
+ IDENTIFIERS = "identifiers"
51
+ SYNONYMOUS = "synonymous"
52
+
53
+
54
+ #: Dataframe columns used by Enrich2
55
+ PVALUE_RAW = "pvalue_raw"
56
+ Z_STAT = "z"
57
+ SCORE = "score"
58
+ COUNT = "count"
59
+ SE = "SE"
60
+ EPSILON = "epsilon"
61
+ INDEX = "index"
62
+ REPLICATES = "replicates"
63
+ VARIANCE = "var"
64
+ PARENT = "parent"
65
+
66
+
67
+ #: Standard codon table for translating wild type and variant DNA sequences
68
+ CODON_TABLE = {
69
+ "TTT": "F",
70
+ "TCT": "S",
71
+ "TAT": "Y",
72
+ "TGT": "C",
73
+ "TTC": "F",
74
+ "TCC": "S",
75
+ "TAC": "Y",
76
+ "TGC": "C",
77
+ "TTA": "L",
78
+ "TCA": "S",
79
+ "TAA": "*",
80
+ "TGA": "*",
81
+ "TTG": "L",
82
+ "TCG": "S",
83
+ "TAG": "*",
84
+ "TGG": "W",
85
+ "CTT": "L",
86
+ "CCT": "P",
87
+ "CAT": "H",
88
+ "CGT": "R",
89
+ "CTC": "L",
90
+ "CCC": "P",
91
+ "CAC": "H",
92
+ "CGC": "R",
93
+ "CTA": "L",
94
+ "CCA": "P",
95
+ "CAA": "Q",
96
+ "CGA": "R",
97
+ "CTG": "L",
98
+ "CCG": "P",
99
+ "CAG": "Q",
100
+ "CGG": "R",
101
+ "ATT": "I",
102
+ "ACT": "T",
103
+ "AAT": "N",
104
+ "AGT": "S",
105
+ "ATC": "I",
106
+ "ACC": "T",
107
+ "AAC": "N",
108
+ "AGC": "S",
109
+ "ATA": "I",
110
+ "ACA": "T",
111
+ "AAA": "K",
112
+ "AGA": "R",
113
+ "ATG": "M",
114
+ "ACG": "T",
115
+ "AAG": "K",
116
+ "AGG": "R",
117
+ "GTT": "V",
118
+ "GCT": "A",
119
+ "GAT": "D",
120
+ "GGT": "G",
121
+ "GTC": "V",
122
+ "GCC": "A",
123
+ "GAC": "D",
124
+ "GGC": "G",
125
+ "GTA": "V",
126
+ "GCA": "A",
127
+ "GAA": "E",
128
+ "GGA": "G",
129
+ "GTG": "V",
130
+ "GCG": "A",
131
+ "GAG": "E",
132
+ "GGG": "G",
133
+ }
134
+
135
+
136
+ #: Conversions between single- and three-letter amino acid codes
137
+ AA_CODES = {
138
+ "Ala": "A",
139
+ "A": "Ala",
140
+ "Arg": "R",
141
+ "R": "Arg",
142
+ "Asn": "N",
143
+ "N": "Asn",
144
+ "Asp": "D",
145
+ "D": "Asp",
146
+ "Cys": "C",
147
+ "C": "Cys",
148
+ "Glu": "E",
149
+ "E": "Glu",
150
+ "Gln": "Q",
151
+ "Q": "Gln",
152
+ "Gly": "G",
153
+ "G": "Gly",
154
+ "His": "H",
155
+ "H": "His",
156
+ "Ile": "I",
157
+ "I": "Ile",
158
+ "Leu": "L",
159
+ "L": "Leu",
160
+ "Lys": "K",
161
+ "K": "Lys",
162
+ "Met": "M",
163
+ "M": "Met",
164
+ "Phe": "F",
165
+ "F": "Phe",
166
+ "Pro": "P",
167
+ "P": "Pro",
168
+ "Ser": "S",
169
+ "S": "Ser",
170
+ "Thr": "T",
171
+ "T": "Thr",
172
+ "Trp": "W",
173
+ "W": "Trp",
174
+ "Tyr": "Y",
175
+ "Y": "Tyr",
176
+ "Val": "V",
177
+ "V": "Val",
178
+ "Ter": "*",
179
+ "*": "Ter",
180
+ "???": "?",
181
+ "?": "???",
182
+ }
183
+
184
+
185
+ #: List of amino acids in row order for sequence-function maps.
186
+ AA_LIST = [
187
+ "H",
188
+ "K",
189
+ "R", # (+)
190
+ "D",
191
+ "E", # (-)
192
+ "C",
193
+ "M",
194
+ "N",
195
+ "Q",
196
+ "S",
197
+ "T", # Polar-neutral
198
+ "A",
199
+ "G",
200
+ "I",
201
+ "L",
202
+ "P",
203
+ "V", # Non-polar
204
+ "F",
205
+ "W",
206
+ "Y", # Aromatic
207
+ "*",
208
+ ]
209
+
210
+
211
+ #: List of tuples for amino acid physiochemical property groups.
212
+ #: Each tuple contains the label string and the corresponding start and end
213
+ #: indices in :py:const:`aa_list` (inclusive).
214
+ AA_LABEL_GROUPS = [
215
+ ("(+)", 0, 2),
216
+ ("(-)", 3, 4),
217
+ ("Polar-neutral", 5, 10),
218
+ ("Non-polar", 11, 16),
219
+ ("Aromatic", 17, 19),
220
+ ]
221
+
222
+
223
+ #: List of nucleotides in row order for sequence-function maps.
224
+ NT_LIST = ["A", "C", "G", "T"]
225
+
226
+
227
+ #: Dictionary specifying available scoring methods for the analysis
228
+ #: Key is the internal name of the method, value is the GUI label
229
+ #: For command line options, internal name is used for the option string itself
230
+ #: and the value is the help string
231
+ SCORING_METHODS = collections.OrderedDict(
232
+ [
233
+ ("WLS", "weighted least squares"),
234
+ ("ratios", "log ratios (Enrich2)"),
235
+ ("counts", "counts only"),
236
+ ("OLS", "ordinary least squares"),
237
+ ("simple", "log ratios (old Enrich)"),
238
+ ]
239
+ )
240
+
241
+
242
+ #: Dictionary specifying available scoring methods for the analysis
243
+ #: Key is the internal name of the method, value is the GUI label
244
+ #: For command line options, internal name is used for the option string itself
245
+ #: and the value is the help string
246
+ LOGR_METHODS = collections.OrderedDict(
247
+ [
248
+ ("wt", "wild type"),
249
+ ("complete", "library size (complete cases)"),
250
+ ("full", "library size (all reads)"),
251
+ ]
252
+ )
253
+
254
+
255
+ #: List specifying valid labels in their sorted order
256
+ #: Sorted order is the order in which they should be calculated in
257
+ ELEMENT_LABELS = ["barcodes", "identifiers", "variants", "synonymous"]
258
+
259
+
260
+ #: Default number of maximum mutation.
261
+ #: Must be set to avoid data frame performance errors.
262
+ DEFAULT_MAX_MUTATIONS = 10
263
+
264
+
265
+ #: Matches a single amino acid substitution in HGVS_ format.
266
+ re_protein = re.compile(
267
+ "(?P<match>p\.(?P<pre>[A-Z][a-z][a-z])(?P<pos>-?\d+)" "(?P<post>[A-Z][a-z][a-z]))"
268
+ )
269
+
270
+
271
+ #: Matches a single nucleotide substitution (coding or noncoding)
272
+ #: in HGVS_ format.
273
+ re_nucleotide = re.compile(
274
+ "(?P<match>[nc]\.(?P<pos>-?\d+)(?P<pre>[ACGT])>(?P<post>[ACGT]))"
275
+ )
276
+
277
+
278
+ #: Matches a single coding nucleotide substitution in HGVS_ format.
279
+ re_coding = re.compile(
280
+ "(?P<match>c\.(?P<pos>-?\d+)(?P<pre>[ACGT])>(?P<post>[ACGT]) "
281
+ "\(p\.(?:=|[A-Z][a-z][a-z]-?\d+[A-Z][a-z][a-z])\))"
282
+ )
283
+
284
+
285
+ #: Matches a single noncoding nucleotide substitution in HGVS_ format.
286
+ re_noncoding = re.compile(
287
+ "(?P<match>n\.(?P<pos>-?\d+)(?P<pre>[ACGT])>(?P<post>[ACGT]))"
288
+ )