Skip to content

Commit a2edc35

Browse files
committed
release notes
1 parent 2345ced commit a2edc35

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

new_synthetic_tree.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ This is still a fairly manual process, although we aim to automate in the future
77

88
The steps to build and deploy a new version of the synthetic tree are:
99

10-
* build a new synthetic tree using
11-
[propinquity](https://github.com/OpenTreeOfLife/propinquity)
12-
* load the synthetic tree into a neo4j database using code in [treemachine](https://github.com/OpenTreeOfLife/treemachine)
13-
* deploy the database to development (devapi) using scripts in
14-
[germinator](https://github.com/OpenTreeOfLife/germinator). Test deployment on the development server before tackling production.
15-
* manually create the release notes, update the synthesis statistics and upload files for download
16-
* update the conflict service to use the new synthetic tree
17-
* deploy to production
10+
1. Build a new synthetic tree using
11+
[propinquity](https://github.com/OpenTreeOfLife/propinquity) and crate the tarballs for download.
12+
* Load the synthetic tree into a neo4j database using code in [treemachine](https://github.com/OpenTreeOfLife/treemachine)
13+
* Deploy the database to development (devapi) using scripts in
14+
[germinator](https://github.com/OpenTreeOfLife/germinator).
15+
* Manually create the release notes, update the synthesis statistics file, and upload tarballs for download
16+
* Update the conflict service to use the new synthetic tree
17+
* Deploy to production
1818

1919
## Building the tree
2020

@@ -36,8 +36,7 @@ the `[synthesis]` section of the config is:
3636
Increment the id by whole numbers, unless the change is trivial.
3737

3838
Create tarballs using the `bin/make_tarballs.sh` script. If you don't already
39-
have all of the output in one directory, use the `bin/move_outputs.sh` script.
40-
The `make_tarballs.sh` creates two archives:
39+
have all of the output in one directory, use the `bin/move_outputs.sh` script. Use the `make_tarballs.sh` to create two archives:
4140

4241
* a small summary archive called `opentree{#}_tree.tar.gz`, with files:
4342
* `labelled_supertree/labelled_supertree.tre`
@@ -85,15 +84,15 @@ Then copy it to the server using rsync or scp, e.g:
8584
where {host} is either the `devapi` or `api` server, depending on whether you
8685
are testing or deploying. Make sure there is adequate disk space before copying.
8786

88-
Next, use the `push.sh` script in the `deploy` directory to unpack the database, make it available to neo4j, and restart the
87+
Next, use the `push.sh` script in the `deploy` directory of this repository (germinator) to unpack the database, make it available to neo4j, and restart the
8988
neo4j service, as follows. Again, before doing this, make sure there is adequate
9089
disk space to unpack:
9190

9291
./push.sh -c {configfile} install-db downloads/treemachine-{20151104}.db.tgz treemachine
9392

9493
Check that the database is running with the correct version by calling the `tree_of_life/about` method:
9594

96-
curl -X POST {host}:/v3/tree_of_life/about -H "content-type:application/json" -d '{"include_source_list":false}'
95+
curl -X POST {host}/v3/tree_of_life/about -H "content-type:application/json" -d '{"include_source_list":false}'
9796

9897
## Updating the conflict service
9998

trees_report/extract_high_priority_trees.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Parses the trees_report.csv output from trees_report.py to extract
2+
# trees with certain properties
3+
14
import pandas as pd
25
import argparse
36

@@ -54,11 +57,14 @@ def split_tree_string(row):
5457
)
5558
args = parser.parse_args()
5659

60+
# read input file
5761
df = pd.read_csv(args.inputfile)
5862
print "read {n} trees".format(n=len(df.index))
5963

64+
# get trees that are sufficently curated
6065
curated = sufficiently_curated(df)
6166
print "{n} trees are sufficently curated".format(n=len(curated.index))
67+
curated.to_csv('curated_trees.csv',index=False)
6268

6369
# get just the trees not in synth, and drop some columns for simplicity
6470
not_in_synth = curated[

0 commit comments

Comments
 (0)