-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathget_test_data.sh
executable file
·67 lines (61 loc) · 1.31 KB
/
get_test_data.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env bash
set -e
mkdir -p data
FILES=$(cat <<END
Dixon2012-J1-NcoI-R1-filtered.100kb.multires.cool
ctcf_known1_100.bed
END
)
for FILE in $FILES; do
[ -e data/$FILE ] || wget -P data/ https://s3.amazonaws.com/pkerp/public/$FILE
done
VIEWCONF=$(cat <<EOF
{
"uid": "test-123",
"viewconf": {
"editable": true,
"views": [
{
"uid": "myviewconf123",
"tracks": {
"top": [],
"center": [
{
"type": "heatmap",
"options": {
"valueScaleMax": 0.2
},
"tilesetUid": "a",
"server": "http://localhost:8123/api/v1/",
"height": 250
}
],
"left": [],
"right": [],
"bottom": []
},
"layout": {
"w": 12,
"h": 6,
"x": 0,
"y": 0
}
}
],
"trackSourceServers": [
"http://localhost:8123/api/v1/"
],
"locationLocks": {
"locksByViewUid": {},
"locksDict": {}
},
"zoomLocks": {
"locksByViewUid": {},
"locksDict": {}
},
"exportViewUrl": "http://localhost:8123/api/v1/viewconfs"
}
}
EOF
)
echo $VIEWCONF > data/test_viewconf.json