This file contains hidden or 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
| _treemachine() | |
| { | |
| local cur=${COMP_WORDS[COMP_CWORD]} | |
| local prev=${COMP_WORDS[COMP_CWORD-1]} | |
| if test $prev = "treemachine" | |
| then | |
| # if the previous word was treemachine, prompt with the commands | |
| COMPREPLY=( $(compgen -W "addtree reprocess deletetrees jsgol fulltree fulltree_sources fulltreelist mrpdump graphml csvdump justtrees sourceexplorer listsources biparts mapsupport getlicanames counttips diversity labeltips getupdatedlist" -- $cur)) | |
| else | |
| #otherwise do file completion. Which seems tougher than it should be... |
This file contains hidden or 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
| calc.F_Tt <- function (r_Tb, n_Tt, r_Tt, param.vec) { | |
| if (r_Tt > n_Tt) { | |
| return (0.0); | |
| } | |
| # unnumbered eqn on the bottom of page 5 | |
| Ne <- param.vec[2]; | |
| mu <- param.vec[3]; | |
| tau <- param.vec[4]; | |
| # The probability of coalescence along the Turkish branch goes to 1 as tau gets big or Ne gets small |
This file contains hidden or 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 calc_F_Tt(r_Tb, n_Tt, r_Tt, param_vec): | |
| if r_Tt > n_Tt: | |
| return 0.0 | |
| Ne = param_vec[ParamOrder.PopSize].value | |
| mu = param_vec[ParamOrder.MutRate].value | |
| tau = param_vec[ParamOrder.DivTime].value | |
| # The probability of coalescence along the Turkish branch goes to 1 as tau gets big or Ne gets small | |
| prob_coalescence = 1 - exp(-tau/(2.0*Ne)) | |
| prob_no_coalescence = 1 - prob_coalescence |
This file contains hidden or 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
| sudo apt-get install git | |
| git clone git://github.com/mtholder/ot-vagrant.git | |
| cd ot-vagrant/ | |
| git pull origin | |
| cat >web2py_passwords.sh <<ENDOFHEREDOC | |
| #!/bin/sh | |
| export WEB2PY_DB_USER=greatusernamehere | |
| export WEB2PY_DB_PASSWD=somepassword | |
| ENDOFHEREDOC |
This file contains hidden or 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
| #!/bin/sh | |
| PREFIX_PARENT="${HOME}/envs" | |
| set -x | |
| mkdir -p "${PREFIX_PARENT}/beagle" || exit | |
| svn checkout https://beagle-lib.googlecode.com/svn/trunk/ beagle-lib || exit | |
| cd beagle-lib | |
| sh autogen.sh | |
| mkdir build || exit |
This file contains hidden or 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
| #!/bin/sh | |
| PREFIX_PARENT="${HOME}/envs" | |
| set -x | |
| mkdir -p "${PREFIX_PARENT}/beagle" || exit | |
| svn checkout https://beagle-lib.googlecode.com/svn/trunk/ beagle-lib || exit | |
| cd beagle-lib | |
| sh autogen.sh | |
| mkdir build || exit |
This file contains hidden or 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
| #!/bin/sh | |
| for repo in api.opentreeoflife.org deployed-systems gcmdr opentree ot-base oti ott peyotl phylografter taxomachine reference-taxonomy treemachine ; | |
| do | |
| for suffix in .java .py .sh | |
| do | |
| find "$OPEN_TREE_REPO_ROOT/$repo" -name "*$suffix" -exec grep -H $@ {} \; | sed -e "s+$OPEN_TREE_REPO_ROOT/++" | |
| done | |
| done |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import sys | |
| from peyotl.api.phylografter import Phylografter | |
| pg = Phylografter() | |
| for study_id in sys.argv[1:]: | |
| pg.fetch_study(study_id, study_id + '.json') |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.nexml.org/2009" | |
| xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns="http://www.nexml.org/2009" | |
| xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sawsdl="http://www.w3.org/ns/sawsdl" | |
| xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
| xmlns:xhtml="http://www.w3.org/1999/xhtml/datatypes/" elementFormDefault="qualified"> | |
| <!-- <xs:annotation> | |
| <xs:documentation> | |
| This module defines annotations that can be attached to |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import sys | |
| from peyotl.api import APIWrapper | |
| aw = APIWrapper(phylesystem_api_kwargs={'get_from':'api'}) | |
| pa = aw.phylesystem_api | |
| o = aw.oti | |
| for line in open(sys.argv[1], 'rU'): | |
| ls = line.strip() | |
| if '_' in ls: | |
| continue |