diffgrammar 0.1.0__py3-none-any.whl
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.
- diffgrammar/__init__.py +6 -0
- diffgrammar/adapters/__init__.py +21 -0
- diffgrammar/adapters/peak_npz.py +114 -0
- diffgrammar/align.py +195 -0
- diffgrammar/analysis.py +744 -0
- diffgrammar/attribute.py +445 -0
- diffgrammar/calibrate.py +279 -0
- diffgrammar/cli.py +659 -0
- diffgrammar/cluster.py +439 -0
- diffgrammar/config.py +213 -0
- diffgrammar/contrast.py +223 -0
- diffgrammar/effects.py +317 -0
- diffgrammar/export.py +185 -0
- diffgrammar/expression.py +399 -0
- diffgrammar/jaspar.py +185 -0
- diffgrammar/marginalize/__init__.py +4 -0
- diffgrammar/marginalize/backgrounds.py +107 -0
- diffgrammar/marginalize/cooperativity.py +344 -0
- diffgrammar/marginalize/design.py +209 -0
- diffgrammar/marginalize/plots.py +546 -0
- diffgrammar/marginalize/predictor.py +109 -0
- diffgrammar/marginalize/readout.py +86 -0
- diffgrammar/marginalize/run.py +223 -0
- diffgrammar/marginalize/store.py +191 -0
- diffgrammar/pair_regression.py +323 -0
- diffgrammar/plotting.py +1186 -0
- diffgrammar/scan.py +151 -0
- diffgrammar/selection.py +174 -0
- diffgrammar/seqlets.py +376 -0
- diffgrammar/sequence.py +22 -0
- diffgrammar/summaries.py +140 -0
- diffgrammar/toy.py +129 -0
- diffgrammar/view/__init__.py +0 -0
- diffgrammar/view/app.py +1942 -0
- diffgrammar/view/data.py +1950 -0
- diffgrammar/view/figures.py +400 -0
- diffgrammar/view/network/index.html +232 -0
- diffgrammar/view/network.py +21 -0
- diffgrammar/view/pages.py +257 -0
- diffgrammar/view/tracks/index.html +459 -0
- diffgrammar/view/tracks.py +153 -0
- diffgrammar-0.1.0.dist-info/METADATA +204 -0
- diffgrammar-0.1.0.dist-info/RECORD +47 -0
- diffgrammar-0.1.0.dist-info/WHEEL +5 -0
- diffgrammar-0.1.0.dist-info/entry_points.txt +2 -0
- diffgrammar-0.1.0.dist-info/licenses/LICENSE +57 -0
- diffgrammar-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffgrammar
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Differential motif grammar from sequence-to-function models: attributions of two conditions, contrast seqlets, clustering, JASPAR subfamilies and the cooperativity of motif pairs by in silico marginalization.
|
|
5
|
+
Author: Eleni Mourouzidou
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/sasselab/diffgrammar
|
|
8
|
+
Project-URL: Documentation, https://github.com/sasselab/diffgrammar/tree/main/docs
|
|
9
|
+
Project-URL: Changelog, https://github.com/sasselab/diffgrammar/blob/main/CHANGELOG.md
|
|
10
|
+
Keywords: genomics,deep learning,interpretability,motifs,attribution,sequence-to-function
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
19
|
+
Requires-Python: <3.13,>=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: numpy<2,>=1.26
|
|
23
|
+
Requires-Dist: scipy>=1.11
|
|
24
|
+
Requires-Dist: pandas<3,>=2.2
|
|
25
|
+
Requires-Dist: scikit-learn>=1.5
|
|
26
|
+
Requires-Dist: matplotlib>=3.9
|
|
27
|
+
Requires-Dist: logomaker>=0.8
|
|
28
|
+
Requires-Dist: pyarrow<20,>=17
|
|
29
|
+
Requires-Dist: requests
|
|
30
|
+
Requires-Dist: pyfaidx>=0.8
|
|
31
|
+
Requires-Dist: torch>=2.4
|
|
32
|
+
Requires-Dist: tangermeme>=1.0
|
|
33
|
+
Requires-Dist: memelite>=0.5
|
|
34
|
+
Requires-Dist: tomli>=2; python_version < "3.11"
|
|
35
|
+
Provides-Extra: view
|
|
36
|
+
Requires-Dist: streamlit>=1.66; extra == "view"
|
|
37
|
+
Provides-Extra: notebooks
|
|
38
|
+
Requires-Dist: ipykernel; extra == "notebooks"
|
|
39
|
+
Requires-Dist: ipywidgets; extra == "notebooks"
|
|
40
|
+
Requires-Dist: nbconvert; extra == "notebooks"
|
|
41
|
+
Provides-Extra: test
|
|
42
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
43
|
+
Provides-Extra: grelu
|
|
44
|
+
Requires-Dist: grelu==1.0.10; extra == "grelu"
|
|
45
|
+
Dynamic: license-file
|
|
46
|
+
|
|
47
|
+
# diffgrammar
|
|
48
|
+
|
|
49
|
+
Differential motif grammar from sequence-to-function models. Give diffgrammar a trained model and two conditions (two
|
|
50
|
+
cell types, two genotypes, two groups of output tracks). It picks the regions the model separates between them,
|
|
51
|
+
attributes each condition, finds the motif instances that drive the difference, groups them into motifs and JASPAR
|
|
52
|
+
families, and, for motif pairs you name, measures how they combine in each condition by in silico marginalization.
|
|
53
|
+
A browser viewer shows the result. The same pipeline also analyses output tracks one at a time, without a
|
|
54
|
+
comparison (single-track runs).
|
|
55
|
+
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
## Install
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git clone https://github.com/sasselab/diffgrammar.git
|
|
62
|
+
cd diffgrammar
|
|
63
|
+
conda env create -f environment.yml
|
|
64
|
+
conda activate diffgrammar
|
|
65
|
+
python -m ipykernel install --user --name diffgrammar --display-name diffgrammar # for the tutorial notebooks
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This one environment runs the whole pipeline, the viewer, the tests and the tutorials, gReLU models included. It
|
|
69
|
+
installs the CUDA 12.8 build of torch; on a machine without a GPU, change `cu128` to `cpu` in `environment.yml`.
|
|
70
|
+
|
|
71
|
+
To install into an environment you already have: `pip install -e ".[view]"`, adding `grelu` for gReLU model-zoo
|
|
72
|
+
models and `notebooks` for the tutorials. diffgrammar pins `numpy<2`, `pandas<3` and `pyarrow<20`.
|
|
73
|
+
|
|
74
|
+
**A model with its own environment.** Only two steps run the model, `attribute` and `marginalize`; the rest need only
|
|
75
|
+
diffgrammar. When a model needs packages that conflict with diffgrammar's pins, add diffgrammar to the model's
|
|
76
|
+
environment without its dependencies (`pip install --no-deps -e /path/to/diffgrammar`), run the model steps there,
|
|
77
|
+
and the rest in the diffgrammar environment. The Decima tutorial works this way.
|
|
78
|
+
|
|
79
|
+
## Quick start
|
|
80
|
+
|
|
81
|
+
A run is one TOML config. A minimal one:
|
|
82
|
+
|
|
83
|
+
```toml
|
|
84
|
+
[run]
|
|
85
|
+
out_dir = "results"
|
|
86
|
+
|
|
87
|
+
[attribute]
|
|
88
|
+
predictor = "my_model.py:make_predictor" # a function returning the model, see "Your model" below
|
|
89
|
+
regions = "regions.csv" # chrom, start, end, and a measured value per model track if you have them
|
|
90
|
+
genome = "hg38.fa"
|
|
91
|
+
seq_len = 200 # the model's input length
|
|
92
|
+
a = ["K562"] # condition A: model output tracks
|
|
93
|
+
b = ["HepG2"] # condition B
|
|
94
|
+
label_a = "K562"
|
|
95
|
+
label_b = "HepG2"
|
|
96
|
+
transform = "sigmoid" # the model output back to signal: sigmoid, pow2m1, exp or identity
|
|
97
|
+
holdout_chroms = ["chr10", "chr11"]
|
|
98
|
+
|
|
99
|
+
[marginalize] # optional: motif pairs to test
|
|
100
|
+
pairs = [["HNF4A", "FOXA2"], ["GATA", "AP1"]]
|
|
101
|
+
motifs = { HNF4A = "RGTCCAAAGGTCA", FOXA2 = "GTAAACA", GATA = "TTATCW", AP1 = "RTGACTCA" }
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
diffgrammar pipeline config.toml # every step, in order
|
|
106
|
+
diffgrammar pipeline config.toml --max-regions 200 # a quick check on the first regions
|
|
107
|
+
diffgrammar view # the result in the browser
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Each step also runs alone, `diffgrammar <step> config.toml`:
|
|
111
|
+
|
|
112
|
+
| Step | What it does | Writes, under `out_dir` |
|
|
113
|
+
|---|---|---|
|
|
114
|
+
| `attribute` | chooses the regions the model separates and attributes both conditions (runs the model) | `attributions/` |
|
|
115
|
+
| `seqlets` | calls seqlets on each condition and on their difference, at a cut calibrated on the run | `seqlets/`, `thresholds.csv`, `seqlet_settings.json` |
|
|
116
|
+
| `cluster` | merges each site's seqlets across tracks and clusters them into motifs | `cluster_summary.csv`, `cluster_consensus/`, `merged_seqlets/` |
|
|
117
|
+
| `families` | names each motif by its best JASPAR matrix, family and subfamily | `jaspar_matches.json`, `families/` |
|
|
118
|
+
| `report` | motif tables and figures | `report/` |
|
|
119
|
+
| `marginalize` | inserts motif pairs into backgrounds and reads their cooperativity (runs the model) | `marginalize/` |
|
|
120
|
+
| `pair-regression` | fits every motif pair against a measured fold change | `pair_regression/` |
|
|
121
|
+
|
|
122
|
+
`marginalize run` computes only the pairs a store does not hold yet, so pairs can be added later. Every step appends
|
|
123
|
+
its settings, the diffgrammar version and git commit to `run.json`.
|
|
124
|
+
|
|
125
|
+
## Your model
|
|
126
|
+
|
|
127
|
+
A model is a torch module that takes one-hot sequence `(N, 4, L)`, bases in the order A, C, G, T, and returns
|
|
128
|
+
`(N, tracks)` or `(N, tracks, bins)`. Wrap it with a name for each output track, in a function the config can name:
|
|
129
|
+
|
|
130
|
+
```python
|
|
131
|
+
# my_model.py
|
|
132
|
+
from diffgrammar.marginalize import TorchEnsemble
|
|
133
|
+
|
|
134
|
+
def make_predictor():
|
|
135
|
+
model = ... # load your trained model
|
|
136
|
+
return TorchEnsemble([model], member_names=['model'], all_tracks=['GM12878', 'HepG2', 'K562'])
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Several models (cross-validation folds) go in as several members. Any gReLU model-zoo model loads with
|
|
140
|
+
`predictor = "diffgrammar.marginalize.predictor:grelu_zoo"` and `predictor_kwargs = { project = "..." }`. From Python,
|
|
141
|
+
pass the object instead: `Analysis('config.toml', predictor=pred)` (`docs/python.md`).
|
|
142
|
+
|
|
143
|
+
Attributions made elsewhere can be read too: name them in `[attributions]` and the conditions in `[contrasts]`
|
|
144
|
+
instead of `[attribute]` (`docs/config.md`).
|
|
145
|
+
|
|
146
|
+
**One track at a time.** To ask what the model uses for each output on its own, without comparing two conditions,
|
|
147
|
+
list the tracks in place of `a` and `b`. Each becomes its own run in `results/<track>`, and every command takes
|
|
148
|
+
`--track` to pick one:
|
|
149
|
+
|
|
150
|
+
```toml
|
|
151
|
+
[attribute]
|
|
152
|
+
tracks = ["HepG2", "K562"]
|
|
153
|
+
min_signal = 0.5 # the track's measured signal, where the region table has it
|
|
154
|
+
min_pred = 0.5 # and its predicted signal
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
A seqlet then raises or lowers its track. See "Single-track runs" in `docs/config.md`.
|
|
158
|
+
|
|
159
|
+
## Tutorials
|
|
160
|
+
|
|
161
|
+
| Tutorial | What it shows | Needs |
|
|
162
|
+
|---|---|---|
|
|
163
|
+
| [`tutorials/toy`](https://github.com/sasselab/diffgrammar/blob/main/tutorials/toy/tutorial.ipynb) | every step on a toy model with a planted grammar, each output checked against the answer | a CPU, about a minute |
|
|
164
|
+
| [`tutorials/toy/single_tracks`](https://github.com/sasselab/diffgrammar/blob/main/tutorials/toy/single_tracks.ipynb) | the same toy as two single-track runs: what the model uses for each output on its own | a CPU, about a minute |
|
|
165
|
+
| [`tutorials/hepg2_vs_k562`](https://github.com/sasselab/diffgrammar/blob/main/tutorials/hepg2_vs_k562/README.md) | the same steps on a public gReLU model-zoo classifier, HepG2 against K562 accessibility | a GPU and the hg38 genome |
|
|
166
|
+
| [`tutorials/hepg2_vs_k562/single_tracks`](https://github.com/sasselab/diffgrammar/blob/main/tutorials/hepg2_vs_k562/single_tracks.ipynb) | HepG2 and K562 each on its own with the same model, next to the comparison: what each cell line uses, shared motifs such as CTCF included | a GPU and the hg38 genome |
|
|
167
|
+
| [`tutorials/decima`](https://github.com/sasselab/diffgrammar/blob/main/tutorials/decima/README.md) | a gene-expression model with 524 kb inputs (Decima), lung against heart macrophages, attributions made in the model's own environment | a GPU and a decima environment |
|
|
168
|
+
|
|
169
|
+
Start with the toy: it is the step-by-step guide, and its answers are known.
|
|
170
|
+
|
|
171
|
+
## Viewer
|
|
172
|
+
|
|
173
|
+

|
|
174
|
+
|
|
175
|
+
`diffgrammar view`, in the folder of a run's config, opens the run in the browser: the motif families with their
|
|
176
|
+
logos and regions down to single bases, which motifs occur together and whether that differs between the
|
|
177
|
+
conditions, one motif's effect against another's per region, and the cooperativity of the marginalized pairs. It
|
|
178
|
+
needs no GPU and no model. `diffgrammar export` packs a run into a small folder that someone else opens the same
|
|
179
|
+
way. See `docs/viewer.md`.
|
|
180
|
+
|
|
181
|
+
## Documentation
|
|
182
|
+
|
|
183
|
+
| | |
|
|
184
|
+
|---|---|
|
|
185
|
+
| [`docs/config.md`](https://github.com/sasselab/diffgrammar/blob/main/docs/config.md) | every config section and setting, with its default |
|
|
186
|
+
| [`docs/methods.md`](https://github.com/sasselab/diffgrammar/blob/main/docs/methods.md) | what each step computes, and the statistics of the viewer |
|
|
187
|
+
| [`docs/viewer.md`](https://github.com/sasselab/diffgrammar/blob/main/docs/viewer.md) | the viewer's pages and sharing a run |
|
|
188
|
+
| [`docs/python.md`](https://github.com/sasselab/diffgrammar/blob/main/docs/python.md) | `Analysis`, the model wrapper and the modules |
|
|
189
|
+
|
|
190
|
+
## Tests
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
pytest
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
The tests run on synthetic data, without project files or a GPU: the attribution convention against captum, region
|
|
197
|
+
selection, seqlet calling and calibration, clustering, marginalization (a linear model is exactly additive, a planted
|
|
198
|
+
interaction is recovered in the right condition), the whole pipeline on a toy model, and every viewer page rendered
|
|
199
|
+
headless.
|
|
200
|
+
|
|
201
|
+
## License
|
|
202
|
+
|
|
203
|
+
MIT, see `LICENSE`. The motif alignment (`diffgrammar.align`) reimplements functions of
|
|
204
|
+
[drg_tools](https://github.com/sasselab/DRG) by Alexander Sasse (BSD 3-clause), whose notice is included in `LICENSE`.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
diffgrammar/__init__.py,sha256=bpZDqfZkzplCjnos2Pp86VzlfcZd2-pB5gaY1d_BbuM,296
|
|
2
|
+
diffgrammar/align.py,sha256=lsYCuRNgNM77GoEnIIWVm859oIVxu9thSWxGBRinwfA,11028
|
|
3
|
+
diffgrammar/analysis.py,sha256=gXHeioUYxZc47Dhqwf0Pzrve-eaBCw1zjQ3r0TbHl9s,42617
|
|
4
|
+
diffgrammar/attribute.py,sha256=7aONFbZPO0ZWxM8HpembDO02arG3NcJeEjqfNbuwjUU,25051
|
|
5
|
+
diffgrammar/calibrate.py,sha256=W-oEhEpTt_XMLdHuTmpujm4TDmNHQQCpmJ4d9PxApUE,15988
|
|
6
|
+
diffgrammar/cli.py,sha256=RblKyUaJUJ_K11V6-jFdiYzhXYADUQCJU_3gBsFLIqE,37784
|
|
7
|
+
diffgrammar/cluster.py,sha256=2XEVK8i52_WYLJKI5d6LPeH-Ln8o2lZPVloKVDktHcI,25705
|
|
8
|
+
diffgrammar/config.py,sha256=RKGnoDFe2BN6q0mDdqpm6gU3HZr6tA26ihw4I_z7JVQ,11693
|
|
9
|
+
diffgrammar/contrast.py,sha256=dQR6PEjrdAUolGiTWl2-rRMrxisNnByrcnSOtkauig4,12288
|
|
10
|
+
diffgrammar/effects.py,sha256=YpU5txO37wZhcvCB_sAgpxkTbu4CPgBD7abDxvGoSt0,15936
|
|
11
|
+
diffgrammar/export.py,sha256=iiJgen3zDS1O-hdcKIfZ5w05igRBabLxrLmej66aK2g,9780
|
|
12
|
+
diffgrammar/expression.py,sha256=r4nYBmylYF_U2KOaluCc2QH9KKuulTD2zAt4vb-u8Yo,22869
|
|
13
|
+
diffgrammar/jaspar.py,sha256=Dkuk0_D3f02FaOL_T5EyLvYBTWNkXCpx-Ka0Rzog7_I,8817
|
|
14
|
+
diffgrammar/pair_regression.py,sha256=t0OSGxDEYZyF-vLJ9BLjsSMEr0G7C-Fxq8zLRKIYbn8,20101
|
|
15
|
+
diffgrammar/plotting.py,sha256=TI9qVghDBbazeyAiYzq6pcG1DQKdfXuPjMHIBSFJ5x8,69229
|
|
16
|
+
diffgrammar/scan.py,sha256=e6OGEeFfmfq4OTQW7AzBzCBUDjGTK7aJHHpHvvuMZlA,7928
|
|
17
|
+
diffgrammar/selection.py,sha256=NKYQCeyYRZnhqBPFq9OAsZ9c6nLfLX85yjgffEVwRJs,9632
|
|
18
|
+
diffgrammar/seqlets.py,sha256=DZ8kcvB4RstneIcAw72G2NusUHdoT678ZcqOs0lpCgY,18573
|
|
19
|
+
diffgrammar/sequence.py,sha256=x4xUmIYx2ReuKoGYJV2sUZcYzFZxqLEojo6WXmoERgA,671
|
|
20
|
+
diffgrammar/summaries.py,sha256=XK0N2HI3J99F19JlEQfPREoQ15_Cc29eSxZ24oELCAs,7179
|
|
21
|
+
diffgrammar/toy.py,sha256=iRvYdbozcUEC_XV5l8uoRdxDRgmbAol2hUijdRHmnE8,6351
|
|
22
|
+
diffgrammar/adapters/__init__.py,sha256=hJdCWij6BqGj8k4RtX5HMNJ2ivMQvwSXwa7tU-MZ508,834
|
|
23
|
+
diffgrammar/adapters/peak_npz.py,sha256=WfbXVFNwJ-Ay2hkXH_I0WVxF1v1hDFEOOJujBs22PB0,5429
|
|
24
|
+
diffgrammar/marginalize/__init__.py,sha256=7baSLx43J6IfYT_njSzUec9u41WRRie7yqVOpIyIZ1Q,230
|
|
25
|
+
diffgrammar/marginalize/backgrounds.py,sha256=RnFn-YXd2VHmud589L2wvRqdvQhBwonVm9_OliBWIQs,4592
|
|
26
|
+
diffgrammar/marginalize/cooperativity.py,sha256=JlMsGuU97SYZYT08QCBdhb_l4L-eUzKcCGpP7wIzhoQ,19010
|
|
27
|
+
diffgrammar/marginalize/design.py,sha256=M2y5nO2V8GgMHs1xF1Sf59BdiFcTTJaCOffqHkgNV3k,9799
|
|
28
|
+
diffgrammar/marginalize/plots.py,sha256=uzAohfYTWzVzHPvEH9VAd-fwwlFdbGJ-GCIgrUgV55M,30624
|
|
29
|
+
diffgrammar/marginalize/predictor.py,sha256=ziV7pQ6k5ygLsqlEhATz-GByfOMI_qf-ZJZt0uPDeKk,5532
|
|
30
|
+
diffgrammar/marginalize/readout.py,sha256=tKjKreFatxyy_O2GgqMN9JsaddjVoVskj2GvDUaWozI,4053
|
|
31
|
+
diffgrammar/marginalize/run.py,sha256=JtC8IXtXONG6ks3Dq1KwD2DP7KSjYe2uEWvU2hHrJPU,10778
|
|
32
|
+
diffgrammar/marginalize/store.py,sha256=OHKFIYbDcDr0lLVXJWs2dg9TgXs5qtmTDFqa9cX2wcM,10475
|
|
33
|
+
diffgrammar/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
diffgrammar/view/app.py,sha256=DHOmj-7SxLJbFnhR2LVbeIQ4ExZkfsNlUxWsOtvTe_U,128950
|
|
35
|
+
diffgrammar/view/data.py,sha256=MLQagNaxwNY250uSS606J1nh904fdoAISCt57WJuwuc,113966
|
|
36
|
+
diffgrammar/view/figures.py,sha256=66Bui36NUIgbwE34sTn8hnUfNCbubqzvAXu9qZnCLu0,21308
|
|
37
|
+
diffgrammar/view/network.py,sha256=22aBde9WDS5aYQ0KqEcYXaa2o8mhH9Ada3pTG4A5CJM,1257
|
|
38
|
+
diffgrammar/view/pages.py,sha256=36cfPejfsd78fd7_y6V2m7QptLoWFigFVVOEm4A1WlE,16588
|
|
39
|
+
diffgrammar/view/tracks.py,sha256=T7jaO2rd6XzS5tu0BouKm2bFyxkV3bkwjfb1b6lbYRA,9171
|
|
40
|
+
diffgrammar/view/network/index.html,sha256=_U17KQ1ShBjcSkJWMb1FWdFUUPZKWogYKfJFHE6QaWA,11063
|
|
41
|
+
diffgrammar/view/tracks/index.html,sha256=ey-o6Du-7L0z_lghRqpV6UGSDD4gYzgImr-fO9m5hG8,24771
|
|
42
|
+
diffgrammar-0.1.0.dist-info/licenses/LICENSE,sha256=LhH4nWoCCdcx5WN99GcS0I8nReqCM4bxT4TldILP5Qk,2917
|
|
43
|
+
diffgrammar-0.1.0.dist-info/METADATA,sha256=vBcMgMQHqsxUL-z7oOh8yyvKV9cg00GjOiiJiCBAIPI,11085
|
|
44
|
+
diffgrammar-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
45
|
+
diffgrammar-0.1.0.dist-info/entry_points.txt,sha256=SfgT7DTUvGTUzwj0klkDNxS81B_eL9dQpsajIdJgK54,53
|
|
46
|
+
diffgrammar-0.1.0.dist-info/top_level.txt,sha256=P7bNHtN7Yl6V-oMptWi8FxquNLn7HoNQYbibdY0i5lo,12
|
|
47
|
+
diffgrammar-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eleni Mourouzidou
|
|
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.
|
|
22
|
+
|
|
23
|
+
-------------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
src/diffgrammar/align.py rewrites the motif alignment and consensus functions of
|
|
26
|
+
drg_tools (https://github.com/sasselab/DRG), and the seqlet calling in
|
|
27
|
+
src/diffgrammar/seqlets.py follows its find_motifs. drg_tools is distributed
|
|
28
|
+
under the following license:
|
|
29
|
+
|
|
30
|
+
BSD 3-Clause License
|
|
31
|
+
|
|
32
|
+
Copyright (c) 2024, Alexander Sasse
|
|
33
|
+
|
|
34
|
+
Redistribution and use in source and binary forms, with or without
|
|
35
|
+
modification, are permitted provided that the following conditions are met:
|
|
36
|
+
|
|
37
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
38
|
+
list of conditions and the following disclaimer.
|
|
39
|
+
|
|
40
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
41
|
+
this list of conditions and the following disclaimer in the documentation
|
|
42
|
+
and/or other materials provided with the distribution.
|
|
43
|
+
|
|
44
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
45
|
+
contributors may be used to endorse or promote products derived from
|
|
46
|
+
this software without specific prior written permission.
|
|
47
|
+
|
|
48
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
49
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
50
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
51
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
52
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
53
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
54
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
55
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
56
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
57
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
diffgrammar
|