-
Notifications
You must be signed in to change notification settings - Fork 47
/
update.VIPInterface_V0.sh
executable file
·41 lines (35 loc) · 1.54 KB
/
update.VIPInterface_V0.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
#!/usr/bin/env bash
if [ -n "$1" ]; then
echo "usually update once"
fi
## finished setting up ------
strPath="$(python -c 'import site; print(site.getsitepackages()[0])')"
strweb="${strPath}/server/common/web/static/."
cp VIPInterface_V0.py $strPath/server/app/VIPInterface.py
cp interface.html $strweb
cp vip.env $strPath/server/app/. 2>/dev/null | true
cp fgsea.R $strPath/server/app/.
mkdir -p $strPath/server/app/gsea
cp gsea/*gmt $strPath/server/app/gsea
cp complexHeatmap.R $strPath/server/app/.
cp volcano.R $strPath/server/app/.
if [ -n "$1" ]; then
cp Density2D.R $strPath/server/app/.
cp bubbleMap.R $strPath/server/app/.
cp violin.R $strPath/server/app/.
cp volcano.R $strPath/server/app/.
cp browserPlot.R $strPath/server/app/.
cp complexHeatmap.R $strPath/server/app/.
cp proteinatlas_protein_class.csv $strPath/server/app/.
cp complex_vlnplot_multiple.R $strPath/server/app/.
if [ "$(uname -s)" = "Darwin" ]; then
sed -i .bak "s|route(request.data,current_app.app_config, \"/tmp\")|route(request.data,current_app.app_config)|" "$strPath/server/app/app.py"
sed -i .bak "s|MAX_LAYOUTS *= *[0-9]\+|MAX_LAYOUTS = 300|" "$strPath/server/common/constants.py"
else
sed -i "s|route(request.data,current_app.app_config, \"/tmp\")|route(request.data,current_app.app_config)|" "$strPath/server/app/app.py"
sed -i "s|MAX_LAYOUTS *= *[0-9]\+|MAX_LAYOUTS = 300|" "$strPath/server/common/constants.py"
fi
find ./cellxgene/server/ -name "decode_fbs.py" -exec cp {} $strPath/server/app/. \;
fi
echo -e "\nls -l $strweb\n"
ls -l $strweb