Skip to content

Commit

Permalink
Merge pull request #548 from GavinHuttley/develop
Browse files Browse the repository at this point in the history
MAINT: refactor of Table
  • Loading branch information
GavinHuttley committed Mar 2, 2020
2 parents e15b8a9 + 87683b8 commit 1917865
Show file tree
Hide file tree
Showing 64 changed files with 7,016 additions and 5,633 deletions.
12 changes: 5 additions & 7 deletions doc/app/available-apps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,8 @@
" hypothesis_result. aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo model True Define a substitution model + tree for maximum likelihood evaluation.\n",
" Returns model_result. aligned, serialisable result, model_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo natsel_neutral True Test of selective neutrality by assessing whether omega equals 1.\n",
" Under the alternate, there is one omega for all branches and all sites.\n",
" aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo natsel_neutral True Test of selective neutrality by assessing whether omega equals 1.\n",
" Under the alternate, there is one omega for all branches and all sites. aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo natsel_sitehet True Test for site-heterogeneity in omega. Under null, there are 2 site-classes,\n",
" omega < 1 and omega = 1. Under the alternate, an additional site-class of\n",
" omega > 1 is added. aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
Expand All @@ -429,12 +428,11 @@
" alternate that a user specified subset of branches have a distinct value\n",
" (or values) of omega.\n",
" aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo natsel_zhang True The branch by site-class hypothesis test for natural selection of\n",
" cogent3.app.evo natsel_zhang True The branch by site-class hypothesis test for natural selection of\n",
" Zhang et al MBE 22: 2472-2479.\n",
"\n",
" Note: Our implementation is not as parametrically succinct as that of\n",
" Zhang et al, we have 1 additional bin probability.\n",
" aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" Zhang et al, we have 1 additional bin probability. aligned, serialisable result, hypothesis_result, serialisable ArrayAlignment, Alignment\n",
" cogent3.app.evo tabulate_stats True Extracts all model statistics from model_result as Table. model_result, serialisable result, tabular_result, serialisable model_result\n",
" cogent3.app.io load_aligned True Loads aligned sequences. Returns an Alignment object. aligned, serialisable DataStoreMember, str, Path\n",
" cogent3.app.io load_db True Loads json serialised cogent3 objects from a TinyDB file. \n",
Expand Down Expand Up @@ -506,7 +504,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.7.3"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions doc/app/dstore.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"<style>\n",
"tr:last-child {border-bottom: 1px solid #000;} tr > th {text-align: center !important;} tr > td {text-align: left !important;}\n",
"</style>\n",
"<caption style=\"color: rgb(250, 250, 250); background: rgba(30, 140, 200, 1); align=top;\"><span style=\"font-weight: bold;\">Locked db store. Locked to pid=8582, current pid=13845</span><span></span></caption>\n",
"<caption style=\"color: rgb(250, 250, 250); background: rgba(30, 140, 200, 1); align=top;\"><span style=\"font-weight: bold;\">Locked db store. Locked to pid=8582, current pid=77006</span><span></span></caption>\n",
"<thead style=\"background: rgba(161, 195, 209, 0.75); font-weight: bold; text-align: center;\">\n",
"<th>record type</th>\n",
"<th>number</th>\n",
Expand All @@ -243,7 +243,7 @@
"3 rows x 2 columns</p>"
],
"text/plain": [
"Locked db store. Locked to pid=8582, current pid=13845\n",
"Locked db store. Locked to pid=8582, current pid=77006\n",
"=====================\n",
"record type number\n",
"---------------------\n",
Expand Down Expand Up @@ -409,7 +409,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.7.3"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
104 changes: 46 additions & 58 deletions doc/app/evo-ancestral-states.ipynb

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions doc/app/evo-dt-nuc-model.ipynb

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions doc/app/evo-extract-model-stats.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,57 +90,57 @@
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Galago</td>\n",
"<td>Galago</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.1735</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">HowlerMon</td>\n",
"<td>HowlerMon</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0450</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Rhesus</td>\n",
"<td>Rhesus</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0215</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Orangutan</td>\n",
"<td>Orangutan</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0078</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Gorilla</td>\n",
"<td>Gorilla</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0025</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Human</td>\n",
"<td>Human</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0061</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Chimpanzee</td>\n",
"<td>Chimpanzee</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0028</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.0</td>\n",
"<td>edge.0</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0000</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.1</td>\n",
"<td>edge.1</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0033</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.2</td>\n",
"<td>edge.2</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0121</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.3</td>\n",
"<td>edge.3</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0077</td>\n",
"</tr>\n",
Expand Down Expand Up @@ -353,7 +353,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.7.3"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
52 changes: 26 additions & 26 deletions doc/app/evo-hypothesis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
"============================================================\n",
"hypothesis key lnL nfp DLC unique_Q\n",
"------------------------------------------------------------\n",
" null 'GTR' -6992.5741 19 True \n",
" alt 'GN' -6987.8834 25 True \n",
" null 'GTR' -6992.5741 19 True None\n",
" alt 'GN' -6987.8834 25 1 None\n",
"------------------------------------------------------------"
]
},
Expand Down Expand Up @@ -224,7 +224,7 @@
"============================================\n",
"key lnL nfp DLC unique_Q\n",
"--------------------------------------------\n",
" -6992.5741 19 True \n",
" -6992.5741 19 True None\n",
"--------------------------------------------\n",
"\n",
"1 rows x 5 columns"
Expand Down Expand Up @@ -285,57 +285,57 @@
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Galago</td>\n",
"<td>Galago</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.1727</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">HowlerMon</td>\n",
"<td>HowlerMon</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0448</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Rhesus</td>\n",
"<td>Rhesus</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0215</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Orangutan</td>\n",
"<td>Orangutan</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0077</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Gorilla</td>\n",
"<td>Gorilla</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0025</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Human</td>\n",
"<td>Human</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0060</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Chimpanzee</td>\n",
"<td>Chimpanzee</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0028</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.0</td>\n",
"<td>edge.0</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0000</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.1</td>\n",
"<td>edge.1</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0034</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.2</td>\n",
"<td>edge.2</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0119</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.3</td>\n",
"<td>edge.3</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0076</td>\n",
"</tr>\n",
Expand Down Expand Up @@ -476,57 +476,57 @@
"</thead>\n",
"<tbody>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Galago</td>\n",
"<td>Galago</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.1735</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">HowlerMon</td>\n",
"<td>HowlerMon</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0450</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Rhesus</td>\n",
"<td>Rhesus</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0215</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Orangutan</td>\n",
"<td>Orangutan</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0078</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Gorilla</td>\n",
"<td>Gorilla</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0025</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Human</td>\n",
"<td>Human</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0061</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">Chimpanzee</td>\n",
"<td>Chimpanzee</td>\n",
"<td>edge.0</td>\n",
"<td style=\"font-family: monospace !important;\">0.0028</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.0</td>\n",
"<td>edge.0</td>\n",
"<td>edge.1</td>\n",
"<td style=\"font-family: monospace !important;\">0.0000</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.1</td>\n",
"<td>edge.1</td>\n",
"<td>edge.2</td>\n",
"<td style=\"font-family: monospace !important;\">0.0033</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.2</td>\n",
"<td>edge.2</td>\n",
"<td>edge.3</td>\n",
"<td style=\"font-family: monospace !important;\">0.0121</td>\n",
"</tr>\n",
"<tr>\n",
"<td style=\"background: rgba(161, 195, 209, 0.25); font-weight: 600;\">edge.3</td>\n",
"<td>edge.3</td>\n",
"<td>root</td>\n",
"<td style=\"font-family: monospace !important;\">0.0077</td>\n",
"</tr>\n",
Expand Down Expand Up @@ -637,7 +637,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.7.3"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down

0 comments on commit 1917865

Please sign in to comment.