maradoner 0.14.2__tar.gz → 0.15.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.
Potentially problematic release.
This version of maradoner might be problematic. Click here for more details.
- {maradoner-0.14.2 → maradoner-0.15.0}/PKG-INFO +5 -5
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/__init__.py +3 -2
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/grn.py +11 -6
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/main.py +4 -3
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/PKG-INFO +5 -5
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/requires.txt +1 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/setup.py +3 -4
- {maradoner-0.14.2 → maradoner-0.15.0}/README.md +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/create.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/dataset_filter.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/export.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/fit.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/mara/__init__.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/mara/export.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/mara/fit.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/mara/main.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/mara.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/meta_optimizer.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/select.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/synthetic_data.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner/utils.py +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/SOURCES.txt +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/dependency_links.txt +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/entry_points.txt +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/maradoner.egg-info/top_level.txt +0 -0
- {maradoner-0.14.2 → maradoner-0.15.0}/setup.cfg +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maradoner
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.0
|
|
4
4
|
Summary: Variance-adjusted estimation of motif activities.
|
|
5
|
-
Home-page: https://github.com/autosome-ru/
|
|
5
|
+
Home-page: https://github.com/autosome-ru/maradoner
|
|
6
6
|
Author: Georgy Meshcheryakov
|
|
7
7
|
Author-email: iam@georgy.top
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
8
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
11
|
Classifier: Topic :: Scientific/Engineering
|
|
13
12
|
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.11
|
|
15
14
|
Description-Content-Type: text/markdown
|
|
16
15
|
Requires-Dist: pip>=24.0
|
|
17
16
|
Requires-Dist: typer>=0.13
|
|
@@ -27,6 +26,7 @@ Requires-Dist: dill>=0.3.9
|
|
|
27
26
|
Requires-Dist: rich>=12.6.0
|
|
28
27
|
Requires-Dist: tqdm>=4.0
|
|
29
28
|
Requires-Dist: scikit-learn>=1.6
|
|
29
|
+
Requires-Dist: tables>=3.10
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
**MARADONER**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
__version__ = '0.
|
|
2
|
+
__version__ = '0.15.0'
|
|
3
3
|
import importlib
|
|
4
4
|
|
|
5
5
|
|
|
@@ -17,7 +17,8 @@ __min_reqs__ = [
|
|
|
17
17
|
'dill>=0.3.9',
|
|
18
18
|
'rich>=12.6.0',
|
|
19
19
|
'tqdm>=4.0',
|
|
20
|
-
'scikit-learn>=1.6'
|
|
20
|
+
'scikit-learn>=1.6',
|
|
21
|
+
'tables>=3.10'
|
|
21
22
|
]
|
|
22
23
|
|
|
23
24
|
def versiontuple(v):
|
|
@@ -60,6 +60,8 @@ def estimate_promoter_variance(project_name: str, prior_top=0.90):
|
|
|
60
60
|
B_hat = B ** 2 * fit.motif_variance.motif
|
|
61
61
|
B_hat = B_hat.sum(axis=1)
|
|
62
62
|
var = list()
|
|
63
|
+
jax.config.update('jax_enable_x64', True)
|
|
64
|
+
jax.config.update('jax_platform_name', 'cpu')
|
|
63
65
|
for inds, prior_mean, nu in tqdm(list(zip(group_inds, prior_means, fit.motif_variance.group))):
|
|
64
66
|
Yt = Y[:, inds].sum(axis=1)
|
|
65
67
|
s = len(inds)
|
|
@@ -120,7 +122,7 @@ def bayesian_fdr_control(p0, alpha=0.05):
|
|
|
120
122
|
return discoveries, threshold
|
|
121
123
|
|
|
122
124
|
def grn(project_name: str, output: str, use_hdf=False, save_stat=True,
|
|
123
|
-
fdr_alpha=0.05, prior_h1=1/100):
|
|
125
|
+
fdr_alpha=0.05, prior_h1=1/100, include_mean: bool = True):
|
|
124
126
|
data = read_init(project_name)
|
|
125
127
|
fmt = data.fmt
|
|
126
128
|
with openers[fmt](f'{project_name}.fit.{fmt}', 'rb') as f:
|
|
@@ -176,13 +178,16 @@ def grn(project_name: str, output: str, use_hdf=False, save_stat=True,
|
|
|
176
178
|
os.makedirs(folder_stat, exist_ok=True)
|
|
177
179
|
os.makedirs(folder_belief, exist_ok=True)
|
|
178
180
|
for sigma, nu, name, inds in zip(promvar.T[..., None], nus, group_names, group_inds):
|
|
179
|
-
# if name != 'anconeus':
|
|
180
|
-
# continue
|
|
181
181
|
print(name)
|
|
182
182
|
var = (B_hat * nu + sigma)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
theta = B[..., None] * U[:, inds]
|
|
183
|
+
|
|
184
|
+
Y_ = Y[:, inds][..., None, :]
|
|
185
|
+
theta = B[..., None] * U[:, inds]
|
|
186
|
+
if include_mean:
|
|
187
|
+
Y_ = Y_ + BM
|
|
188
|
+
theta = theta + BM
|
|
189
|
+
|
|
190
|
+
|
|
186
191
|
loglr = 2 * B * (Y_ * theta).sum(axis=-1) - B_pow * (theta ** 2).sum(axis=-1)
|
|
187
192
|
del Y_
|
|
188
193
|
del theta
|
|
@@ -314,18 +314,19 @@ def _select_motifs(name: str = Argument(..., help='Project name'),
|
|
|
314
314
|
|
|
315
315
|
__grn_doc = 'Tests each promoter against each motif per each group. Some people call it GRN.'
|
|
316
316
|
@app.command('grn',
|
|
317
|
-
help=
|
|
317
|
+
help=__grn_doc)
|
|
318
318
|
def _grn(name: str = Argument(..., help='Project name'),
|
|
319
319
|
folder: Path = Argument(..., help='Output folder where results will be stored. In total, expect number_of_groups tables of size'
|
|
320
320
|
' comparable to the expression file size.'),
|
|
321
321
|
hdf: bool = Option(True, help='Use HDF format instead of tar.gz files. Typically eats much less space'),
|
|
322
322
|
stat: bool = Option(True, help='Save statistics alongside probabilities.'),
|
|
323
|
-
prior_h1: float = Option(1/10, help='Prior belief on the expected fraction of motifs active per promoter.')
|
|
323
|
+
prior_h1: float = Option(1/10, help='Prior belief on the expected fraction of motifs active per promoter.'),
|
|
324
|
+
means: bool = Option(True, help='Include motif-specific means in both H_0 and H_1 models, otherwise only activities deviations are being tested.')):
|
|
324
325
|
t0 = time()
|
|
325
326
|
p = Progress(SpinnerColumn(speed=0.5), TextColumn("[progress.description]{task.description}"), transient=True)
|
|
326
327
|
p.add_task(description="Building GRN...", total=None)
|
|
327
328
|
p.start()
|
|
328
|
-
grn(name, output=folder, use_hdf=hdf, save_stat=stat, prior_h1=prior_h1)
|
|
329
|
+
grn(name, output=folder, use_hdf=hdf, save_stat=stat, prior_h1=prior_h1, include_mean=means)
|
|
329
330
|
p.stop()
|
|
330
331
|
dt = time() - t0
|
|
331
332
|
rprint(f'[green][bold]✔️[/bold] Done![/green]\t time: {dt:.2f} s.')
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maradoner
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.0
|
|
4
4
|
Summary: Variance-adjusted estimation of motif activities.
|
|
5
|
-
Home-page: https://github.com/autosome-ru/
|
|
5
|
+
Home-page: https://github.com/autosome-ru/maradoner
|
|
6
6
|
Author: Georgy Meshcheryakov
|
|
7
7
|
Author-email: iam@georgy.top
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
8
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
11
|
Classifier: Topic :: Scientific/Engineering
|
|
13
12
|
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.11
|
|
15
14
|
Description-Content-Type: text/markdown
|
|
16
15
|
Requires-Dist: pip>=24.0
|
|
17
16
|
Requires-Dist: typer>=0.13
|
|
@@ -27,6 +26,7 @@ Requires-Dist: dill>=0.3.9
|
|
|
27
26
|
Requires-Dist: rich>=12.6.0
|
|
28
27
|
Requires-Dist: tqdm>=4.0
|
|
29
28
|
Requires-Dist: scikit-learn>=1.6
|
|
29
|
+
Requires-Dist: tables>=3.10
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
**MARADONER**
|
|
@@ -23,13 +23,12 @@ setup(
|
|
|
23
23
|
author='Georgy Meshcheryakov',
|
|
24
24
|
author_email='iam@georgy.top',
|
|
25
25
|
install_requires=__min_reqs__,
|
|
26
|
-
python_requires='>=3.
|
|
27
|
-
url="https://github.com/autosome-ru/
|
|
26
|
+
python_requires='>=3.11',
|
|
27
|
+
url="https://github.com/autosome-ru/maradoner",
|
|
28
28
|
classifiers=[
|
|
29
|
-
"Programming Language :: Python :: 3.9",
|
|
30
|
-
"Programming Language :: Python :: 3.10",
|
|
31
29
|
"Programming Language :: Python :: 3.11",
|
|
32
30
|
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Programming Language :: Python :: 3.13",
|
|
33
32
|
"Topic :: Scientific/Engineering",
|
|
34
33
|
"Operating System :: OS Independent"]
|
|
35
34
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|