forked from sinzlab/nndichromacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
executable file
·21 lines (15 loc) · 876 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python3
import datajoint as dj
dj.config["enable_python_native_blobs"] = True
dj.config['nnfabrik.schema_name'] = "nnfabrik_color_mei"
dj.config["display.limit"] = 70
schema = dj.schema("nnfabrik_color_mei")
from nndichromacy.tables.from_mei import MEI, MEIMethod, MEISeed
from nndichromacy.mei.initial import RandomNormalBehavior
print("import successful")
key = {'dataset_hash': 'a814c139b67e879a351442d71f62f3c2'}
from nndichromacy.tables.scores import TestCorrelationEnsemble, CorrelationToAvergeEnsemble
method_keys = (MEIMethod & "method_ts >'2021-03-31'").fetch("KEY")
unit_keys = (CorrelationToAvergeEnsemble.Units & key).fetch("KEY", limit=150, order_by="unit_avg_correlation DESC")
mei_key = dj.AndList([unit_keys, method_keys, dict(dataset_hash='a814c139b67e879a351442d71f62f3c2')])
MEI().populate(mei_key, display_progress=True, reserve_jobs=True)