-
Notifications
You must be signed in to change notification settings - Fork 0
/
epiviz.py
31 lines (24 loc) · 1.19 KB
/
epiviz.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from epivizfileserver import setup_app, create_fileHandler, MeasurementManager
from epivizfileserver.trackhub import TrackHub
mMgr = MeasurementManager()
# create file handler
mHandler = create_fileHandler()
# add genome
genome = mMgr.add_genome("hg19")
trackhubs = [
"http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/ATAC/Subclass/"
# "http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/ATAC/Class/",
# "http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/ATAC/Cluster/",
"http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/ATAC/Subclass/",
"http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/dnaMethylation/MajorCluster/CGN/",
"http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/dnaMethylation/MajorCluster/CHN/",
# "http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/dnaMethylation/SubCluster/CGN/",
# "http://data.nemoarchive.org/nemoHub/CrossSpeciesPaperMOp/Human/dnaMethylation/SubCluster/CHN/"
]
for th in trackhubs:
tth = TrackHub(th)
mMgr.measurements.extend(tth.measurements)
# start app
app = setup_app(mMgr)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000)