megobin 0.1.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.
Files changed (195) hide show
  1. megobin-0.1.0/.github/workflows/ci.yml +137 -0
  2. megobin-0.1.0/.github/workflows/publish.yml +97 -0
  3. megobin-0.1.0/.gitignore +77 -0
  4. megobin-0.1.0/CHANGES.md +136 -0
  5. megobin-0.1.0/LICENSE +21 -0
  6. megobin-0.1.0/MANIFEST.in +8 -0
  7. megobin-0.1.0/PKG-INFO +204 -0
  8. megobin-0.1.0/README.md +156 -0
  9. megobin-0.1.0/THIRD_PARTY_NOTICES.md +78 -0
  10. megobin-0.1.0/configs/binner/dbscan_ensemble.yaml +8 -0
  11. megobin-0.1.0/configs/binner/dbscan_ensemble_semibin.yaml +14 -0
  12. megobin-0.1.0/configs/dataset/example.yaml +10 -0
  13. megobin-0.1.0/configs/encoder/semibin2.yaml +9 -0
  14. megobin-0.1.0/configs/encoder/uncertain_gen.yaml +5 -0
  15. megobin-0.1.0/configs/evaluate.yaml +6 -0
  16. megobin-0.1.0/configs/evaluator/checkm2.yaml +6 -0
  17. megobin-0.1.0/configs/experiment/semibin2_longread.yaml +39 -0
  18. megobin-0.1.0/configs/experiment/uncertain_gen_dbscan.yaml +36 -0
  19. megobin-0.1.0/configs/features/canonical_kmer.yaml +8 -0
  20. megobin-0.1.0/configs/features/canonical_kmer_abundance.yaml +10 -0
  21. megobin-0.1.0/configs/filter/no_op.yaml +1 -0
  22. megobin-0.1.0/configs/filter/uncertainty.yaml +3 -0
  23. megobin-0.1.0/configs/logger/mlflow.yaml +10 -0
  24. megobin-0.1.0/configs/logger/none.yaml +1 -0
  25. megobin-0.1.0/configs/logger/tensorboard.yaml +7 -0
  26. megobin-0.1.0/configs/logger/wandb.yaml +13 -0
  27. megobin-0.1.0/configs/loss/hinge.yaml +2 -0
  28. megobin-0.1.0/configs/loss/mahalanobis_bce.yaml +4 -0
  29. megobin-0.1.0/configs/optimizer/adam.yaml +5 -0
  30. megobin-0.1.0/configs/optimizer/adamw.yaml +5 -0
  31. megobin-0.1.0/configs/optimizer/sgd.yaml +5 -0
  32. megobin-0.1.0/configs/pair_sampler/semibin2.yaml +9 -0
  33. megobin-0.1.0/configs/pair_sampler/uncertain_gen.yaml +3 -0
  34. megobin-0.1.0/configs/pipeline/bin_raw_features.yaml +19 -0
  35. megobin-0.1.0/configs/pipeline/embed_and_bin.yaml +37 -0
  36. megobin-0.1.0/configs/scheduler/constant.yaml +4 -0
  37. megobin-0.1.0/configs/scheduler/cosine.yaml +4 -0
  38. megobin-0.1.0/configs/scheduler/step_lr.yaml +4 -0
  39. megobin-0.1.0/configs/trainer/single_phase.yaml +23 -0
  40. megobin-0.1.0/configs/trainer/two_phase.yaml +53 -0
  41. megobin-0.1.0/data/.gitkeep +0 -0
  42. megobin-0.1.0/docs/01-introduction/design-philosophy.md +51 -0
  43. megobin-0.1.0/docs/01-introduction/what-is-megobin.md +32 -0
  44. megobin-0.1.0/docs/02-getting-started/installation.md +199 -0
  45. megobin-0.1.0/docs/02-getting-started/reading-the-output.md +85 -0
  46. megobin-0.1.0/docs/03-architecture/contracts-and-stages.md +167 -0
  47. megobin-0.1.0/docs/03-architecture/hydra-configs.md +159 -0
  48. megobin-0.1.0/docs/03-architecture/slots-and-protocols.md +130 -0
  49. megobin-0.1.0/docs/04-tutorials/add-a-new-encoder.md +136 -0
  50. megobin-0.1.0/docs/04-tutorials/how-to-run-experiments-from-cli.md +229 -0
  51. megobin-0.1.0/docs/04-tutorials/notebooks.md +80 -0
  52. megobin-0.1.0/docs/05-experiment-tracking/checkpoints.md +86 -0
  53. megobin-0.1.0/docs/05-experiment-tracking/choosing-a-tracker.md +102 -0
  54. megobin-0.1.0/docs/05-experiment-tracking/tensorboard.md +95 -0
  55. megobin-0.1.0/docs/07-testing/how-megobin-is-tested.md +119 -0
  56. megobin-0.1.0/docs/07-testing/testing-new-components.md +176 -0
  57. megobin-0.1.0/docs/08-releasing/publishing-a-release.md +97 -0
  58. megobin-0.1.0/environment.def +29 -0
  59. megobin-0.1.0/hpc/Snakefile +205 -0
  60. megobin-0.1.0/megobin/__init__.py +24 -0
  61. megobin-0.1.0/megobin/_protocol_check.py +59 -0
  62. megobin-0.1.0/megobin/binners/__init__.py +0 -0
  63. megobin-0.1.0/megobin/binners/base.py +31 -0
  64. megobin-0.1.0/megobin/binners/semibin_2.py +347 -0
  65. megobin-0.1.0/megobin/configs/binner/dbscan_ensemble.yaml +8 -0
  66. megobin-0.1.0/megobin/configs/binner/dbscan_ensemble_semibin.yaml +14 -0
  67. megobin-0.1.0/megobin/configs/dataset/example.yaml +10 -0
  68. megobin-0.1.0/megobin/configs/encoder/semibin2.yaml +9 -0
  69. megobin-0.1.0/megobin/configs/encoder/uncertain_gen.yaml +5 -0
  70. megobin-0.1.0/megobin/configs/evaluate.yaml +6 -0
  71. megobin-0.1.0/megobin/configs/evaluator/checkm2.yaml +6 -0
  72. megobin-0.1.0/megobin/configs/experiment/semibin2_longread.yaml +39 -0
  73. megobin-0.1.0/megobin/configs/experiment/uncertain_gen_dbscan.yaml +36 -0
  74. megobin-0.1.0/megobin/configs/features/canonical_kmer.yaml +8 -0
  75. megobin-0.1.0/megobin/configs/features/canonical_kmer_abundance.yaml +10 -0
  76. megobin-0.1.0/megobin/configs/filter/no_op.yaml +1 -0
  77. megobin-0.1.0/megobin/configs/filter/uncertainty.yaml +3 -0
  78. megobin-0.1.0/megobin/configs/logger/mlflow.yaml +10 -0
  79. megobin-0.1.0/megobin/configs/logger/none.yaml +1 -0
  80. megobin-0.1.0/megobin/configs/logger/tensorboard.yaml +7 -0
  81. megobin-0.1.0/megobin/configs/logger/wandb.yaml +13 -0
  82. megobin-0.1.0/megobin/configs/loss/hinge.yaml +2 -0
  83. megobin-0.1.0/megobin/configs/loss/mahalanobis_bce.yaml +4 -0
  84. megobin-0.1.0/megobin/configs/optimizer/adam.yaml +5 -0
  85. megobin-0.1.0/megobin/configs/optimizer/adamw.yaml +5 -0
  86. megobin-0.1.0/megobin/configs/optimizer/sgd.yaml +5 -0
  87. megobin-0.1.0/megobin/configs/pair_sampler/semibin2.yaml +9 -0
  88. megobin-0.1.0/megobin/configs/pair_sampler/uncertain_gen.yaml +3 -0
  89. megobin-0.1.0/megobin/configs/pipeline/bin_raw_features.yaml +19 -0
  90. megobin-0.1.0/megobin/configs/pipeline/embed_and_bin.yaml +37 -0
  91. megobin-0.1.0/megobin/configs/scheduler/constant.yaml +4 -0
  92. megobin-0.1.0/megobin/configs/scheduler/cosine.yaml +4 -0
  93. megobin-0.1.0/megobin/configs/scheduler/step_lr.yaml +4 -0
  94. megobin-0.1.0/megobin/configs/trainer/single_phase.yaml +23 -0
  95. megobin-0.1.0/megobin/configs/trainer/two_phase.yaml +53 -0
  96. megobin-0.1.0/megobin/contracts.py +221 -0
  97. megobin-0.1.0/megobin/data/__init__.py +0 -0
  98. megobin-0.1.0/megobin/data/base.py +31 -0
  99. megobin-0.1.0/megobin/data/semibin2_sampler.py +92 -0
  100. megobin-0.1.0/megobin/data/uncertain_gen_sampler.py +73 -0
  101. megobin-0.1.0/megobin/encoders/__init__.py +0 -0
  102. megobin-0.1.0/megobin/encoders/base.py +66 -0
  103. megobin-0.1.0/megobin/encoders/semibin_2.py +128 -0
  104. megobin-0.1.0/megobin/encoders/uncertaingen.py +140 -0
  105. megobin-0.1.0/megobin/evaluate.py +57 -0
  106. megobin-0.1.0/megobin/evaluators/__init__.py +0 -0
  107. megobin-0.1.0/megobin/evaluators/base.py +11 -0
  108. megobin-0.1.0/megobin/evaluators/checkm2.py +109 -0
  109. megobin-0.1.0/megobin/features/__init__.py +0 -0
  110. megobin-0.1.0/megobin/features/feature_merge.py +446 -0
  111. megobin-0.1.0/megobin/features/generate_abundance.py +295 -0
  112. megobin-0.1.0/megobin/features/generate_kmers.py +58 -0
  113. megobin-0.1.0/megobin/features/run_features.py +82 -0
  114. megobin-0.1.0/megobin/features/views.py +122 -0
  115. megobin-0.1.0/megobin/filters/__init__.py +0 -0
  116. megobin-0.1.0/megobin/filters/base.py +19 -0
  117. megobin-0.1.0/megobin/filters/no_op.py +20 -0
  118. megobin-0.1.0/megobin/filters/uncertainty.py +59 -0
  119. megobin-0.1.0/megobin/losses/__init__.py +0 -0
  120. megobin-0.1.0/megobin/losses/base.py +26 -0
  121. megobin-0.1.0/megobin/losses/hinge_contrastive.py +38 -0
  122. megobin-0.1.0/megobin/losses/mahalanobis_bce.py +49 -0
  123. megobin-0.1.0/megobin/manifest.py +92 -0
  124. megobin-0.1.0/megobin/pipeline.py +261 -0
  125. megobin-0.1.0/megobin/ports.py +123 -0
  126. megobin-0.1.0/megobin/refiners/__init__.py +0 -0
  127. megobin-0.1.0/megobin/refiners/base.py +29 -0
  128. megobin-0.1.0/megobin/refiners/no_op.py +14 -0
  129. megobin-0.1.0/megobin/stages/__init__.py +0 -0
  130. megobin-0.1.0/megobin/stages/binner.py +56 -0
  131. megobin-0.1.0/megobin/stages/embedder.py +165 -0
  132. megobin-0.1.0/megobin/stages/features.py +101 -0
  133. megobin-0.1.0/megobin/stages/filter.py +49 -0
  134. megobin-0.1.0/megobin/stages/refiner.py +35 -0
  135. megobin-0.1.0/megobin/status.py +57 -0
  136. megobin-0.1.0/megobin/testrun.py +237 -0
  137. megobin-0.1.0/megobin/trainers/__init__.py +0 -0
  138. megobin-0.1.0/megobin/trainers/base.py +23 -0
  139. megobin-0.1.0/megobin/trainers/single_phase.py +177 -0
  140. megobin-0.1.0/megobin/trainers/two_phase.py +204 -0
  141. megobin-0.1.0/megobin/utils/SemiBin_utils.py +656 -0
  142. megobin-0.1.0/megobin/utils/__init__.py +0 -0
  143. megobin-0.1.0/megobin/utils/atomicwrite.py +223 -0
  144. megobin-0.1.0/megobin/utils/checkpoints.py +37 -0
  145. megobin-0.1.0/megobin/utils/external.py +133 -0
  146. megobin-0.1.0/megobin/utils/fasta.py +67 -0
  147. megobin-0.1.0/megobin/utils/logger.py +27 -0
  148. megobin-0.1.0/megobin/utils/marker.hmm +105657 -0
  149. megobin-0.1.0/megobin/utils/markers.py +240 -0
  150. megobin-0.1.0/megobin/utils/mlflow_logger.py +84 -0
  151. megobin-0.1.0/megobin/utils/naive_orffinder.py +143 -0
  152. megobin-0.1.0/megobin/utils/no_op_logger.py +30 -0
  153. megobin-0.1.0/megobin/utils/orffinding.py +139 -0
  154. megobin-0.1.0/megobin/utils/provenance.py +76 -0
  155. megobin-0.1.0/megobin/utils/tensorboard_logger.py +101 -0
  156. megobin-0.1.0/megobin/utils/wandb_logger.py +92 -0
  157. megobin-0.1.0/megobin/z.py +70 -0
  158. megobin-0.1.0/megobin.egg-info/PKG-INFO +204 -0
  159. megobin-0.1.0/megobin.egg-info/SOURCES.txt +194 -0
  160. megobin-0.1.0/megobin.egg-info/dependency_links.txt +1 -0
  161. megobin-0.1.0/megobin.egg-info/requires.txt +27 -0
  162. megobin-0.1.0/megobin.egg-info/top_level.txt +1 -0
  163. megobin-0.1.0/notebooks/__marimo__/session/swap_the_binner.py.json +477 -0
  164. megobin-0.1.0/notebooks/__marimo__/session/swap_the_loss.py.json +503 -0
  165. megobin-0.1.0/notebooks/swap_the_binner.py +792 -0
  166. megobin-0.1.0/notebooks/swap_the_loss.py +988 -0
  167. megobin-0.1.0/pixi.lock +14320 -0
  168. megobin-0.1.0/pixi.toml +96 -0
  169. megobin-0.1.0/pyproject.toml +145 -0
  170. megobin-0.1.0/setup.cfg +4 -0
  171. megobin-0.1.0/setup.py +77 -0
  172. megobin-0.1.0/tests/__init__.py +0 -0
  173. megobin-0.1.0/tests/conftest.py +85 -0
  174. megobin-0.1.0/tests/data/semibin_single_sample/LICENSE-SemiBin.txt +22 -0
  175. megobin-0.1.0/tests/data/semibin_single_sample/README.md +39 -0
  176. megobin-0.1.0/tests/data/semibin_single_sample/expected/data.csv +41 -0
  177. megobin-0.1.0/tests/data/semibin_single_sample/expected/data_split.csv +81 -0
  178. megobin-0.1.0/tests/data/semibin_single_sample/expected/markers.tsv +31 -0
  179. megobin-0.1.0/tests/data/semibin_single_sample/input.fasta +13400 -0
  180. megobin-0.1.0/tests/data/semibin_single_sample/input.sorted.bam +0 -0
  181. megobin-0.1.0/tests/test_contracts.py +81 -0
  182. megobin-0.1.0/tests/test_dataset_compatibility.py +107 -0
  183. megobin-0.1.0/tests/test_end_to_end.py +79 -0
  184. megobin-0.1.0/tests/test_external_tools.py +269 -0
  185. megobin-0.1.0/tests/test_interfaces.py +189 -0
  186. megobin-0.1.0/tests/test_loggers.py +295 -0
  187. megobin-0.1.0/tests/test_notebooks.py +136 -0
  188. megobin-0.1.0/tests/test_packaging.py +185 -0
  189. megobin-0.1.0/tests/test_pipeline_contracts.py +374 -0
  190. megobin-0.1.0/tests/test_real_sample.py +178 -0
  191. megobin-0.1.0/tests/test_semibin2_sampler.py +77 -0
  192. megobin-0.1.0/tests/test_semibin2_training.py +86 -0
  193. megobin-0.1.0/tests/test_testrun.py +71 -0
  194. megobin-0.1.0/tests/toy_components.py +77 -0
  195. megobin-0.1.0/tests/update_expected.py +75 -0
@@ -0,0 +1,137 @@
1
+ name: ci
2
+
3
+ # Builds the environments exactly as the installation page describes them, on
4
+ # Mac and on Linux, and checks MegoBin in each. If this is green, the install
5
+ # instructions work and the tests pass on both systems.
6
+ #
7
+ # pixi the default environment: test run, tests with coverage, lint, types
8
+ # tracking the optional trackers (MLflow, Weights & Biases)
9
+ # notebooks the marimo notebooks in notebooks/ run from start to finish
10
+ # checkm2 the CheckM2 environment installs and starts
11
+ # pyproject a plain `pip install`, without pixi and without HMMER or bedtools,
12
+ # then the built package on its own
13
+
14
+ on:
15
+ pull_request:
16
+ push:
17
+ branches: [main]
18
+
19
+ jobs:
20
+ pixi:
21
+ name: pixi (${{ matrix.os }})
22
+ runs-on: ${{ matrix.os }}
23
+ strategy:
24
+ fail-fast: false
25
+ matrix:
26
+ os: [ubuntu-latest, macos-latest]
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: prefix-dev/setup-pixi@v0.11.3
30
+ with:
31
+ pixi-version: v0.86.0
32
+ locked: true
33
+ cache: true
34
+ # Fails if HMMER or bedtools is missing from the environment.
35
+ - name: Test run (installation check)
36
+ run: pixi run testrun
37
+ # In this environment a test that needs HMMER or bedtools fails instead of
38
+ # being skipped (MEGOBIN_EXTERNAL_TOOLS=required, set in pixi.toml).
39
+ - name: Tests, with coverage
40
+ run: pixi run test-cov
41
+ - name: Coverage table
42
+ if: always()
43
+ run: pixi run python -m coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY" || true
44
+ - name: Lint
45
+ if: matrix.os == 'ubuntu-latest'
46
+ run: pixi run lint
47
+ - name: Type check
48
+ if: matrix.os == 'ubuntu-latest'
49
+ run: pixi run typecheck
50
+
51
+ tracking:
52
+ name: tracking environment (${{ matrix.os }})
53
+ runs-on: ${{ matrix.os }}
54
+ strategy:
55
+ fail-fast: false
56
+ matrix:
57
+ os: [ubuntu-latest, macos-latest]
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+ - uses: prefix-dev/setup-pixi@v0.11.3
61
+ with:
62
+ pixi-version: v0.86.0
63
+ locked: true
64
+ environments: tracking
65
+ # MLflow writes to a temporary SQLite file and W&B runs offline, so this
66
+ # needs no account and no network.
67
+ - name: Tracker tests (TensorBoard, MLflow, Weights & Biases)
68
+ run: pixi run -e tracking pytest tests/test_loggers.py
69
+
70
+ notebooks:
71
+ name: notebooks environment (${{ matrix.os }})
72
+ runs-on: ${{ matrix.os }}
73
+ strategy:
74
+ fail-fast: false
75
+ matrix:
76
+ os: [ubuntu-latest, macos-latest]
77
+ steps:
78
+ - uses: actions/checkout@v4
79
+ - uses: prefix-dev/setup-pixi@v0.11.3
80
+ with:
81
+ pixi-version: v0.86.0
82
+ locked: true
83
+ environments: notebooks
84
+ # marimo's own check of the notebook files: every cell parses, no name is
85
+ # defined in two cells, no cell depends on itself.
86
+ - name: Check the notebook files
87
+ run: pixi run -e notebooks marimo check notebooks/
88
+ # Runs every cell of both notebooks and compares the bins with the known
89
+ # answer. Each notebook trains a small network, so this takes a few minutes.
90
+ - name: Run the notebooks
91
+ run: pixi run -e notebooks pytest tests/test_notebooks.py
92
+
93
+ checkm2:
94
+ name: checkm2 environment (${{ matrix.os }})
95
+ runs-on: ${{ matrix.os }}
96
+ strategy:
97
+ fail-fast: false
98
+ matrix:
99
+ os: [ubuntu-latest, macos-latest]
100
+ steps:
101
+ - uses: actions/checkout@v4
102
+ - uses: prefix-dev/setup-pixi@v0.11.3
103
+ with:
104
+ pixi-version: v0.86.0
105
+ locked: true
106
+ environments: checkm2
107
+ # Only checks that CheckM2 installs and starts; its database is not downloaded.
108
+ - run: pixi run -e checkm2 checkm2 --version
109
+
110
+ pyproject:
111
+ # pixi brings extra packages along with PyTorch, so it can hide a package
112
+ # that is missing from pyproject.toml. This job installs from pyproject.toml
113
+ # alone, which is what a published package would do. HMMER and bedtools are
114
+ # absent here: the test run reports that, and the tests that need them are
115
+ # skipped.
116
+ name: pyproject.toml alone (pip, ubuntu-latest)
117
+ runs-on: ubuntu-latest
118
+ steps:
119
+ - uses: actions/checkout@v4
120
+ - uses: actions/setup-python@v5
121
+ with:
122
+ python-version: "3.11"
123
+ - run: pip install -e ".[dev]"
124
+ - name: Test run (installation check)
125
+ run: python -m megobin.testrun
126
+ - name: Tests
127
+ run: pytest
128
+ # The steps above use an editable install, which reads configs/ from this
129
+ # folder. A published package has to carry the config files itself. So:
130
+ # build the package, install it in place of the editable one, and run the
131
+ # test run from another folder, where this checkout cannot be imported.
132
+ - name: Test run from the built package
133
+ run: |
134
+ pip install --force-reinstall --no-deps .
135
+ cd "$RUNNER_TEMP"
136
+ python -c "import megobin; print('configs:', megobin.CONFIG_DIR); assert 'site-packages' in str(megobin.CONFIG_DIR)"
137
+ python -m megobin.testrun
@@ -0,0 +1,97 @@
1
+ name: package
2
+
3
+ # Builds the two files that make up a release of MegoBin, a source archive and
4
+ # a wheel, checks them, and uploads them to PyPI.
5
+ #
6
+ # on a pull request build and check only, so that the day of a release
7
+ # holds no surprise
8
+ # on a published release build, check, then upload to pypi.org
9
+ #
10
+ # The upload uses PyPI's "trusted publishing". pypi.org was told once that the
11
+ # workflow in this file, in this repository, may upload the project `megobin`,
12
+ # and at upload time GitHub proves that the request comes from here. No
13
+ # password and no token is stored anywhere.
14
+ #
15
+ # How to make a release: docs/08-releasing/publishing-a-release.md
16
+
17
+ on:
18
+ pull_request:
19
+ release:
20
+ types: [published]
21
+
22
+ permissions:
23
+ contents: read
24
+
25
+ jobs:
26
+ build:
27
+ name: build the package
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ with:
32
+ persist-credentials: false
33
+ - uses: actions/setup-python@v5
34
+ with:
35
+ python-version: "3.11"
36
+ - name: The tag of the release has to be v + the version in pyproject.toml
37
+ if: github.event_name == 'release'
38
+ env:
39
+ TAG: ${{ github.event.release.tag_name }}
40
+ run: |
41
+ version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
42
+ if [ "$TAG" != "v$version" ]; then
43
+ echo "::error::The release has the tag $TAG, but pyproject.toml says version $version, which needs the tag v$version. Nothing was uploaded."
44
+ exit 1
45
+ fi
46
+ - name: Build the source archive and the wheel
47
+ run: |
48
+ python -m pip install build twine
49
+ python -m build
50
+ - name: Check that pypi.org can show the description
51
+ run: python -m twine check --strict dist/*
52
+ # The wheel is the file that `pip install megobin` fetches. Install it on
53
+ # its own, away from this checkout, and let it bin the made-up dataset.
54
+ - name: Install the wheel and run the test run from another folder
55
+ run: |
56
+ python -m venv "$RUNNER_TEMP/venv"
57
+ "$RUNNER_TEMP/venv/bin/pip" install dist/*.whl
58
+ cd "$RUNNER_TEMP"
59
+ "$RUNNER_TEMP/venv/bin/python" -m megobin.testrun
60
+ - uses: actions/upload-artifact@v5
61
+ with:
62
+ name: python-package-distributions
63
+ path: dist/
64
+ if-no-files-found: error
65
+
66
+ # The upload job fetches the two files from the build job. On a pull request
67
+ # nothing is uploaded, so this job does the fetching alone, as a rehearsal.
68
+ fetch:
69
+ name: fetch the built files (rehearsal)
70
+ if: github.event_name == 'pull_request'
71
+ needs: build
72
+ runs-on: ubuntu-latest
73
+ steps:
74
+ - uses: actions/download-artifact@v6
75
+ with:
76
+ name: python-package-distributions
77
+ path: dist/
78
+ - run: ls -l dist/megobin-*.tar.gz dist/megobin-*.whl
79
+
80
+ upload:
81
+ name: upload to PyPI
82
+ if: github.event_name == 'release'
83
+ needs: build
84
+ runs-on: ubuntu-latest
85
+ environment:
86
+ name: pypi
87
+ url: https://pypi.org/p/megobin
88
+ permissions:
89
+ # Lets GitHub prove to pypi.org which repository and workflow the upload
90
+ # comes from. Trusted publishing does not work without it.
91
+ id-token: write
92
+ steps:
93
+ - uses: actions/download-artifact@v6
94
+ with:
95
+ name: python-package-distributions
96
+ path: dist/
97
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,77 @@
1
+ # Python
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ *.egg-info/
6
+ build/
7
+ dist/
8
+ *.eggs
9
+
10
+ # Data and model artifacts (not committed)
11
+ *.pt
12
+ *.npy
13
+ *.npz
14
+ *.h5
15
+ *.sif
16
+ data/*
17
+ !data/.gitkeep
18
+
19
+ # TensorBoard event files live under Hydra's outputs/ tree (already
20
+ # ignored below); also ignore a top-level tb/ from any ad-hoc scripts.
21
+ tb/
22
+
23
+ # Hydra outputs
24
+ outputs/
25
+ multirun/
26
+
27
+ # Pytest
28
+ .pytest_cache/
29
+
30
+ # Jupyter
31
+ .ipynb_checkpoints/
32
+
33
+ # Cluster scratch
34
+ /scratch/
35
+
36
+ # IDE
37
+ .vscode/
38
+ .idea/
39
+ *.swp
40
+ *.swo
41
+
42
+
43
+ # Type checker cache
44
+ .mypy_cache/
45
+
46
+ # OS
47
+ .DS_Store
48
+ Thumbs.db
49
+
50
+ # Env
51
+ .env
52
+ .venv/
53
+ .venv*/
54
+
55
+ CLAUDE-codebase.md
56
+ CLAUDE.md
57
+ .claude/
58
+
59
+ # local wiki setup
60
+ /.wiki/
61
+ CLAUDE.local.md
62
+ .wiki
63
+
64
+ # Local environments (pixi builds .pixi/)
65
+ .pixi/
66
+ .venv/
67
+
68
+ # Experiment trackers (local stores)
69
+ mlruns/
70
+ mlflow.db
71
+ wandb/
72
+
73
+ # Coverage data
74
+ .coverage
75
+ .coverage.*
76
+ coverage.xml
77
+ htmlcov/
@@ -0,0 +1,136 @@
1
+ # v2-contracts: what changed relative to 655b52e
2
+
3
+ Scope: the method and training layers. A run is now a DAG of contracted stages; stages declare what they need and provide by port and content label; the order is resolved backwards from the target; every contract is checked before any compute. The structure changes, the numbers do not (see "Numbers" below). The benchmark layer (Snakemake / cluster workflow) is not part of this branch.
4
+
5
+ Design write-up: [docs/03-architecture/contracts-and-stages.md](docs/03-architecture/contracts-and-stages.md).
6
+
7
+ ## Merged with main (2026-12-05)
8
+
9
+ This branch forked at 655b52e. `main` then gained two SemiBin2 fidelity fixes (9e4201e9: cannot-link pairs are drawn from whole contigs; 7ae7e334: `drop_last` in `SinglePhaseTrainer` and the hinge loss evaluated in float64 with `torch.norm`). The merge keeps both fixes inside the contract structure:
10
+
11
+ - `SemiBin2PairSampler` keeps the contract attributes and binds one more value, `features_whole`; the embedder stage hands it the matrix the encoder is fed (after the feature view).
12
+ - `HingeContrastiveLoss` reads `mu` from the labelled `Z` and then evaluates as on `main`.
13
+
14
+ So the SemiBin2 numbers now follow `main`, not 655b52e. Checked on the synthetic 24-contig test dataset (`semibin2_longread`, seed 42, 3 epochs, CPU): the trained encoder weights of `main` and of the merged tree are bit-identical. In the "Observations about the SemiBin2 path" section below, the first three points (half-contig cannot-links, float32 loss, last partial batch) describe 655b52e and are fixed by those two commits; the "Numbers" section compares against 655b52e and predates the merge.
15
+
16
+ ## After the merge: install, tests, trackers (2026-12-05)
17
+
18
+ These changes are not part of the contract refactor. They were made on top of it once v2 was on `main`.
19
+
20
+ - Install: `pixi.toml` and `pixi.lock` replace `environment.yml`. One command (`pixi install`) builds the same environment on a Mac (Apple Silicon) and on Linux, CPU by default, with separate `gpu`, `checkm2` and `tracking` environments. Python is 3.11 or newer. DVC is gone. See [installation.md](docs/02-getting-started/installation.md).
21
+ - Test run: `python -m megobin.testrun` (`pixi run testrun`) bins a made-up dataset with a known answer, lists the outside programs it finds, and tries `hmmsearch` once.
22
+ - Outside programs: `megobin/utils/external.py` is the one place that knows which programs MegoBin starts. A missing program is named, with its purpose and how to install it. The pipeline looks the programs up right after the contract check, so a missing `hmmsearch` stops a run before training (exit code 3) instead of after it. `hmmsearch`, `prodigal`, `bedtools` and CheckM2 failures raise `ExternalToolError` instead of calling `sys.exit` or leaving a half-written file.
23
+ - Tests: the suite gained a small stored sample in real formats (`tests/data/semibin_single_sample/`, from SemiBin, MIT) with expected results for the feature step and for marker calling, tests with fake outside programs that fail on purpose, and tests for the trackers. Coverage is measured (71%, floor 65%) and ruff lints the code. All of it runs on a Mac and on Linux for every pull request. See [how MegoBin is tested](docs/07-testing/how-megobin-is-tested.md).
24
+ - Trackers: `logger=mlflow` and `logger=wandb` are new beside the default `logger=tensorboard`. Both are optional packages. See [choosing a tracker](docs/05-experiment-tracking/choosing-a-tracker.md).
25
+ - CheckM2 evaluator: it now tells CheckM2 the extension of the bin files (`-x .fasta`; CheckM2 only reads `.fna` otherwise, so it used to find no bins), and can start CheckM2 through a launcher (`evaluator.command`), which is how `pixi run evaluate` reaches the `checkm2` environment.
26
+ - Notebooks: two marimo notebooks in `notebooks/` make a new experiment from start to finish on the dataset of the test run: `swap_the_binner.py` (a K-medoid binner written in the notebook, after the evaluation code of DNABERT-S, in place of the DBSCAN ensemble) and `swap_the_loss.py` (another loss inside the Encoder slot). They live in the pixi `notebooks` environment (`pixi run notebook-binner`, `pixi run notebook-loss`) and are run by `tests/test_notebooks.py` on a Mac and on Linux. See [the notebooks](docs/04-tutorials/notebooks.md).
27
+ - Package: a built package now carries the config files (`megobin/configs` is a link to `configs/`, and `megobin.CONFIG_DIR` points at them), so MegoBin also works when it is installed without a clone. The checks build the package and start the test run from it.
28
+ - `resume_from`: both experiment configs now declare `resume_from: null`, so `resume_from=<encoder.pt>` works as an override as the docs describe. Before, Hydra refused it ("Key 'resume_from' is not in struct").
29
+ - `binner.num_process: 0`: the default of the DBSCAN ensemble binner now means all CPUs, as in SemiBin. Before, the 0 reached the ORF finder as a pool of 0 processes, so `uncertain_gen_dbscan` stopped after training with `ValueError: Number of processes must be at least 1` unless `binner.num_process=1` was given.
30
+ - Small things: the scikit-learn `EfficiencyWarning` about unsorted sparse input is silenced around the DBSCAN sweep (taken from the closed pull request 6; the results are unchanged). The pair sampler link and the dataset link in the README slot table pointed at folders that do not exist and are fixed.
31
+
32
+ ## Getting ready for PyPI (2026-12-05)
33
+
34
+ Nothing in how MegoBin runs changes here. These changes prepare the first release on PyPI, version 0.1.0.
35
+
36
+ - License: MegoBin is under the MIT license (`LICENSE`). `THIRD_PARTY_NOTICES.md` carries the licenses of the code taken from SemiBin and from python-atomicwrites. Both files go into every built package.
37
+ - Release workflow: `.github/workflows/publish.yml` builds the source archive and the wheel, checks them, and uploads them to PyPI when a release is published on GitHub. It uses PyPI's trusted publishing, so no token is stored. On a pull request it builds and checks only. See [publishing a release](docs/08-releasing/publishing-a-release.md).
38
+ - Page on pypi.org: `setup.py` gives the package the README as its description, with the relative links turned into full addresses on GitHub at the tag of the release. The picture there is `msc/pipeline_1680.png`, a smaller copy that `pixi run small-picture` makes from `msc/pipeline.png`.
39
+ - `megobin/utils/UG.utils.py` moved to `msc/reference/UG.utils.py`. It is reference code adapted from the UncertainGen authors' repository, where no license file was found, so it is kept out of the package. MegoBin never imported it.
40
+ - The source archive leaves out `msc/` and `markers/` (`MANIFEST.in`). It is 3.7 MB, where it was 10 MB.
41
+ - Package metadata: keywords, classifiers and links to the repository. The build needs setuptools 77 or newer, which `pip` fetches by itself.
42
+
43
+ ## What moved where
44
+
45
+ | Before (655b52e) | After (v2-contracts) |
46
+ |---|---|
47
+ | `pipeline.py` ran a fixed sequence and read hidden flags with `getattr` / `hasattr` | `megobin/pipeline.py` composes stages from `cfg.pipeline`, calls `resolve()` and `check()` (`megobin/contracts.py`), then runs them in order |
48
+ | `_check_signal_compatibility(cfg)` (features `required_signals` vs dataset `signals`) | one case of the contract check: features stage *needs* `signals.<required_signals>`; the function remains as a thin wrapper over the same check |
49
+ | `consumes_depth` (class attr), `is_combined` read by `pipeline.py`; `norm_abundance` gate and combined-mode normalisation inline in `pipeline.py` | `Encoder.feature_view()` returns a view from `megobin/features/views.py` (`FullMatrixView`, `CombinedNormView`, `KmerGateView`); the embedder stage applies it |
50
+ | `encoder.include_std` + `loss.include_std`, flipped by `setattr` from `encoder_attrs` / `loss_attrs` in `configs/trainer/two_phase.yaml` | labelled `Z(mu, var=None, extra)` (`megobin/z.py`): encoder `provides`, loss `needs["z"]`; each phase of the two-phase trainer declares its own loss |
51
+ | `encode_with_uncertainty` found by `hasattr`; filter fed `side_outputs` | `Encoder.encode_z()` returns a labelled `Z`; `UncertaintyFilter.needs` asks for `var` |
52
+ | `_instantiate_sampler` / `_instantiate_binner` filtered kwargs by reading `__init__` signatures | `bindings` (constructor kwarg -> named value) declared on the component class; values come from the dataset manifest (`megobin/manifest.py`) and the stage |
53
+ | `CheckM2Evaluator` instantiated and called inside `main()` | not part of the run; separate entry point `python -m megobin.evaluate` (`megobin/evaluate.py`, `configs/evaluate.yaml`) |
54
+ | `.hydra/` only | plus `status.json` (`megobin/status.py`): resolved order, contract result, config sha256, seed, interventions ledger L0-L3, summary |
55
+ | no refiner slot, encoder always required | optional `refiner` stage (`megobin/refiners/`), resolved only for `pipeline.target: bins_refined`; `PassThroughEmbedder` for tools with no model |
56
+ | flat experiment configs | experiments pick `/pipeline: embed_and_bin` (`configs/pipeline/`) and set `pipeline.name` / `pipeline.interventions` |
57
+
58
+ New modules: `megobin/contracts.py`, `z.py`, `ports.py`, `manifest.py`, `status.py`, `evaluate.py`, `stages/{features,embedder,filter,binner,refiner}.py`, `refiners/{base,no_op}.py`, `features/views.py`. New configs: `configs/pipeline/{embed_and_bin,bin_raw_features}.yaml`, `configs/evaluate.yaml`. Unchanged: `megobin/features/*` (other than the new `views.py`), `megobin/utils/*`, `megobin/evaluators/*`, loggers, `hpc/Snakefile`.
59
+
60
+ ## Signatures that changed
61
+
62
+ Import paths and class names of existing components are unchanged. Changes:
63
+
64
+ | Component | Change |
65
+ |---|---|
66
+ | `megobin.pipeline` | removed private helpers `_load_data_csv`, `_load_data_split_csv`, `_load_sampler_inputs`, `_instantiate_sampler`, `_instantiate_binner` (loading moved to `Features` in `ports.py` / `stages/features.py`; introspection replaced by `bindings`). `_check_signal_compatibility(cfg)` kept; now raises `ContractError` (a `ValueError` subclass). `seed_everything`, `main` kept. New: `run_pipeline`, `build_stages`, `make_plan`, `RunContext`, `Plan`, `RunResult` |
67
+ | `Encoder` protocol | + `needs`, `provides`, `feature_view()`, `encode_z()` |
68
+ | `SemiBin2Encoder` | constructor unchanged. Removed class attribute `consumes_depth`. `training_step` now passes `Z` objects to the loss. + `needs = {features: {kmer, depth}}`, `provides = {mu}`, `feature_view()`, `encode_z()` |
69
+ | `UncertainGenEncoder` | constructor parameter `include_std` still accepted but **ignored with a `DeprecationWarning`** (default `False` -> `None`); instance attribute `include_std` removed. `training_step` computes only the heads in `loss_fn.needs["z"]` and passes `Z`. + `needs`, `provides = {mu, var}`, `z(x, want)`, `feature_view()`, `encode_z()`. `encode()` and `encode_with_uncertainty()` unchanged |
70
+ | `ContrastiveLoss` protocol | + `needs`; `__call__(z_i, z_j, label)` takes `Z` objects |
71
+ | `HingeContrastiveLoss` | `forward` accepts `Z` or a bare tensor (read as `Z(mu=tensor)`); + `needs` |
72
+ | `MahalanobisBCELoss` | `forward` takes `Z`; a bare tensor is read as `Z(mu=...)`. The old `include_std=True` input of concatenated `[mu \| var]` tensors is **no longer accepted** (it raises a `ContractError` naming the missing `var`). Constructor unchanged; `include_std` is now the loss's own declaration of what it needs (`needs` property) |
73
+ | `PairSampler` protocol | + `provides`, `needs`, `bindings` (class attributes on `SemiBin2PairSampler`, `UncertainGenPairSampler`; constructors unchanged) |
74
+ | `Trainer` protocol | + `phase_losses(default)`. `TwoPhaseTrainer`: phase keys `encoder_attrs` / `loss_attrs` now raise `ValueError` pointing to `phase["loss"]`; `phase["loss"]` is new. `fit(encoder, sampler, loss_fn)` unchanged |
75
+ | `Filter` protocol | + `needs` (`NoOpFilter`: `z.mu`; `UncertaintyFilter`: `z.mu`, `z.var`); `fit_transform` unchanged |
76
+ | `Binner` protocol | + `needs`, `provides`, `embedding`, `bindings`. `DBSCANEnsembleBinner`: constructor and `cluster` unchanged, class attributes added |
77
+ | `configs/trainer/two_phase.yaml` | `encoder_attrs` / `loss_attrs` replaced by `phases[i].loss` (full `MahalanobisBCELoss` config per phase) |
78
+ | `configs/experiment/*.yaml` | `/evaluator` removed from `defaults`; `/pipeline: embed_and_bin` added; `pipeline:` block added |
79
+
80
+ Behaviour changes that are not numerical:
81
+
82
+ - `data.csv` missing: the old run logged a warning and exited 0; now a `ContractError` (exit code 2).
83
+ - `SemiBin2Encoder` needs the `depth` label: a k-mer-only dataset now fails at start instead of a warning at encode time.
84
+ - The binner needs the `contigs.fasta` port: a dataset without it fails at start (it used to fail later, inside the binner).
85
+ - `bins/` and `markers/` are written under the Hydra run directory, not the current working directory (the old `markers/` path was the repository's tracked `markers/` directory when run from the repo root).
86
+ - The run no longer scores bins: no CheckM2 DataFrame / `eval/*` scalars in the experiment logger.
87
+ - A contract failure writes `status.json` (`CONTRACT_FAIL`), logs every problem and exits with code 2.
88
+
89
+ ## How to run
90
+
91
+ ```bash
92
+ # 1. features (unchanged): data.csv, data_split.csv, contigs.fasta in one directory
93
+ python -m megobin.features.run_features --contigs contigs.fasta --bams reads.sorted.bam --out data/mydata
94
+
95
+ # 2. SemiBin2 single-sample long-read path
96
+ python megobin/pipeline.py --config-name experiment/semibin2_longread dataset.path=data/mydata
97
+
98
+ # 3. UncertainGen
99
+ python megobin/pipeline.py --config-name experiment/uncertain_gen_dbscan dataset.path=data/mydata
100
+
101
+ # 4. standalone judge on a run's bins (needs CheckM2 on PATH)
102
+ python -m megobin.evaluate bins_dir=outputs/<date>/<time>/bins
103
+ ```
104
+
105
+ Each run directory holds `.hydra/`, `status.json`, `bins/`, `markers/`, `encoder.pt`, `pipeline.log`.
106
+
107
+ ## Numbers
108
+
109
+ Same-seed comparison of this tree against 655b52e, run outside the repository (script and tables are delivered separately, not part of the branch). Data: SemiBin v2.6.0 `test/single_sample_data` (`input.fasta`, 40 contigs x 20,000 bp = 800,000 bp, plus `input.sorted.bam`), CPU, one torch thread, each tree's own `run_features`. 116 old-vs-new rows in the summary table (166 in the detail table, which adds one row per epoch for the cannot-link pairs) covering feature matrices and file bytes, sampler input, must-link pairs, cannot-link pairs per epoch, per-batch and per-epoch loss, encoder initial and final weights, encoder inputs/outputs, final embeddings, contig -> bin labels, RNG state after the run, for `semibin2_longread` (seeds 42 and 7, plus a `binner.minfasta=50000` variant so that bins exist), `uncertain_gen_dbscan` (seeds 42 and 7, `binner.num_process=1`) and all branches of the feature views on synthetic matrices: **all bit-identical** (max abs diff 0). A control (655b52e against itself) is also bit-identical, 132 comparisons. CheckM2 was not run.
110
+
111
+ Why it holds: random-number consumption order is unchanged (encoder built right after seeding; samplers keep their own generators; the DataLoader shuffle and dropout use the global torch generator in the same sequence). One consequence of that requirement: during training the encoder computes only the heads the loss asks for (see open decisions).
112
+
113
+ ## Open and provisional decisions
114
+
115
+ 1. The encoder provides what it can, and training computes what the loss asks for. The brief was "each phase's loss declares what it needs, the encoder always provides what it has". Computing the covariance head in phase 1 would run its dropout (extra RNG draws) and update its BatchNorm statistics, changing the numbers. So `provides` is the capability, `loss.needs["z"]` selects what is computed in training, and inference (`encode_z`) returns everything. Provisional.
116
+ 2. The per-phase loss lives in the trainer config as a full loss config (`phases[i].loss`). `clamp_threshold` is therefore repeated there, and `loss=<other>` on the command line does not change the two-phase losses. Alternative: phases carry only a delta applied to the `loss` group by the embedder stage. Provisional.
117
+ 3. The pass-through embedder declares `z: {raw_features}` by default; a binner has to ask for exactly that. Declaring `mu` instead (`labels: [mu]`) lets raw features stand in for an embedding and should be recorded as an intervention.
118
+ 4. The filter is always a stage in `embed_and_bin` (default no-op) and forwards only `mu` as `z_kept`; `var` is not forwarded.
119
+ 5. `SemiBin2Encoder` strictly needs `depth` (it used to warn). `UncertainGenEncoder` needs only `kmer`; whether the abundance columns survive is still decided by `norm_abundance` at run time (`KmerGateView`), so the contract cannot yet say whether `encoder.input_dim` matches.
120
+ 6. The features stage reads the precomputed CSVs only; computing them stays in `megobin.features.run_features`. Label `depth` is derived from the `data.csv` header, `split` from the existence of `data_split.csv`.
121
+ 7. `Bins` holds one integer label per contig. Multi-label output of a refiner (a contig in two bins) is not writable to `bins/` yet.
122
+ 8. `check_inner` does not yet check that a trainer's `params` group exists in `encoder.parameter_groups()`.
123
+ 9. `hpc/Snakefile` is untouched. It already pointed at paths absent at 655b52e (`src/pipeline.py`, `src.features.kmer_profiles`); see the last section of `docs/03-architecture/contracts-and-stages.md` for what else no longer applies.
124
+ 10. The commits are ordered for review (contracts, labelled z, stages, pipeline and judge, configs, tests, docs). The test suite passes on every commit tree against the tests present at that commit (31, 33, 33, 33, 33, 56, 56 passed). Between the second and fourth commit the old `pipeline.py` is still in place next to the new components and is not exercised by any test, so only the later commits should be run end to end.
125
+
126
+ ## Observations about the SemiBin2 path (not changed here)
127
+
128
+ Read from the code of this repository and SemiBin 2.6.0 (file:line pairs are in the audit table delivered with this work). Numerical behaviour was deliberately left as it is.
129
+
130
+ - SemiBin draws cannot-link pairs from the N **whole-contig** feature rows and offsets the second index within N contigs (`self_supervised_model.py:135-138`); `SemiBin2PairSampler` draws from the 2N **half-contig** rows (`semibin2_sampler.py:44-49`), so a cannot-link pair can be the two halves of one contig, and the features differ.
131
+ - SemiBin computes the hinge loss in float64 with `d = ||z1 - z2||` (`self_supervised_model.py:18,164`); `HingeContrastiveLoss` uses float32 and `sqrt(sum + 1e-8)`.
132
+ - SemiBin's `DataLoader` uses `drop_last=True` (`:154`); `SinglePhaseTrainer` keeps the last partial batch.
133
+ - SemiBin's model also builds a decoder (`semi_supervised_model.py:102`), whose initialisation draws from the torch RNG; `SemiBin2Encoder` has none. Same seed therefore does not give the same draws as SemiBin, and the cannot-link generator differs (global numpy RNG vs `default_rng([seed, epoch])`).
134
+ - On the SemiBin test data (800 kb in total) `semibin2_longread` at the default `minfasta` (200,000 bp) outputs 0 bins in both trees; with `binner.minfasta=50000` it outputs 8 bins (29 of 40 contigs). This is a property of the tiny test set, not evidence about real data.
135
+ - `uncertain_gen_dbscan`: the default `binner.num_process: 0` raised `ValueError: Number of processes must be at least 1` when no marker cache existed (observed on 655b52e from an empty working directory; fixed after the merge, see above). In phase 2 the loss is constant at 0.4614 from the first epoch on this data: `log_q` is clamped at -1 for every pair (`mahalanobis_bce.py` clamp), which gives exactly that value for 40 positives and 8000 negatives, and the clamp passes no gradient, so the covariance head does not learn here (provisional: 40 contigs).
136
+ - `norm_abundance` hard-codes 136 as the k-mer width in both code bases.
megobin-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The MegoBin authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ # What stays out of the source archive that goes to PyPI. Neither folder is
2
+ # needed to build MegoBin or to run its tests.
3
+ #
4
+ # msc/ the pictures of the README, and a reference file from another
5
+ # project that is not passed on (msc/reference/)
6
+ # markers/ a stored output of hmmsearch
7
+ prune msc
8
+ prune markers