ViewBovine Server - oxfordfun/ViewBovine GitHub Wiki
Access to server
-
use SSH:
-
Attach to tmux session:
tmux a
Observe tmux windows:
0 - openvpn
1 - ViewBovine web server
2 - tree api
3 - map api
Update Cattle DB
Create a new window: C-b n
-
Update sample name - guid map table
-
Clean map data with clean.py
cd ~/apha/getree/clean/ python3 clean.py Cattle_db_20190311_113500.tsv > Cattle_db_20190311_113500-CLEAN.tsv
-
Generate distance matrix
cd ~/apha/getree/ python3 mk_outcsv.py Cattle_db_20190311_113500-CLEAN.tsv > ~/map-api/meta/out_20190311_113500.tsv
-
Restart map-api with new data files
python3 main.py --map_file 'meta/Cattle_db_20190311_113500-CLEAN.tsv' --movement_file 'meta/Cattle_movement_20190311_113900.tsv' --distance_file 'meta/out_20190311_apha.tsv'
-
Submit new trees to be generated:
cd ~/apha/getree/ python3 mktrees.py --out_csv_file meta/out_20190311_apha.tsv --map_file meta/Cattle_db_20190311_113500-CLEAN.tsv --regen_best_guids
-
Restart getree cd ~/apha/getree/ python3 main.py