This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
const attributesToRemove = [ | |
'spellcheck', | |
'data-gramm', | |
'data-gramm_editor', | |
'data-enable-grammarly', | |
'data-enabled-grammarly', | |
'data-language' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
import itertools as it | |
import typing | |
from matplotlib import pyplot as plt | |
from matplotlib import text as mpl_text | |
import numpy as np | |
import outset as otst | |
import opytional as opyt | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text eol=lf filter=cleanWhitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/.cloudshell/ | |
touch ~/.cloudshell/no-apt-get-warning | |
sudo apt-get update -y | |
sudo apt-get install -y aptitude | |
sudo aptitude install -y libgdal-dev libproj-dev r-base | |
sudo Rscript -e "install.packages(c('codetools', 'dplyr', 'gen3sis', 'gdistance', 'ggplot2', 'Matrix', 'raster', 'rgdal'))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _estimate_rank_of_mrca_between_unbiased( | |
first: HereditaryStratigraphicColumn, | |
second: HereditaryStratigraphicColumn, | |
) -> typing.Optional[float]: | |
ranks_of_retained_commonality_between = [ | |
*iter_ranks_of_retained_commonality_between_generic(first, second) | |
] | |
if not ranks_of_retained_commonality_between: | |
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
import numpy as np | |
import pandas as pd | |
from ..._auxiliary_lib import indices_of_unique | |
from ._compile_phylogeny_from_lineage_iters import ( | |
compile_phylogeny_from_lineage_iters, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cppimport | |
#include <memory> | |
#include <pybind11/pybind11.h> | |
namespace py = pybind11; | |
struct PerfectBacktrackHandleNative { | |
py::object parent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import typing | |
class PerfectBacktrackDatabase: | |
"""Breadcrumb for perfectly backtracking a phylogenetic chain of descent. | |
Because only backwards references are held, Python garbage collection takes | |
care of pruning away extinct lineages. | |
""" |
NewerOlder