Skip to content

Instantly share code, notes, and snippets.

View stevenweaver's full-sized avatar

Steven Weaver stevenweaver

View GitHub Profile
@stevenweaver
stevenweaver / hyphy.vim
Last active April 15, 2016 15:11
HyPhy Batch Language - Vim Syntax File
" Vim syntax file
" Language: HyPhy Batch Language
" Maintainer: Steven Weaver <steven@stevenweaver.org>
" Last Change: 2016 Apr 13
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
syntax clear
@stevenweaver
stevenweaver / README.md
Created May 17, 2016 14:13 — forked from spond/README.md
Vanilla tree

Non-interactive tree using phylotree.js

This is an example of using phylotree.js settings to create a tree which is suitable for a static display: no clickable nodes, nothing is selectable, fixed sizes in both dimensions.

The Newick string is loaded from a file using an asynchronous d3.text call.

@stevenweaver
stevenweaver / README.md
Last active May 17, 2016 14:51
Coloring Node Labels

Coloring node labels

This is an example of using phylotree.js using the style_nodes method.

The Newick string is loaded from a file using an asynchronous d3.text call.

@stevenweaver
stevenweaver / README.md
Last active June 2, 2016 21:11
tree_layout

Using update_layout

This is an example of using phylotree.js using the update_layout method.

The Newick string is loaded from a file using an asynchronous d3.text call.

Coloring clades

This is an example of using phylotree.js using css.

The Newick string is loaded from a file using an asynchronous d3.text call.

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
/**
* A parser for augur. This is a separate function
* Compatible with augur schema v2
* strain - name
This file has been truncated, but you can view the full file.
(('A/BULGARIA/874/2000':1.8020696140256867,(('A/BULGARIA/113/2000':0.07820663811869899,'A/BULGARIA/28/2001':1.0342066381186026):0.8242012603224786,'A/BANGKOK/62/2000':0.9054078984411067):0.899661715584509):0.7425794505239871,((((((('A/EspiritoSanto/128/00':0.007648701751422848,('A/BANGKOK/86/2001':0.6216001724068327,'A/HIROSHIMA/182/2000':0.3269210763533348):0.09775825949126116):0.7046657648231207,'A/Missouri/NHRC0001/2000':0.35202419672132557):0.1618607446318041,((('A/New_York/439/2000':0.1124493222284535,'A/RiodeJaneiro/28/00':0.26079983680216934):0.11114771265688539,((((('A/Hong_Kong/CUHK22078/2000':0.14533995071516692,'A/BRAZIL/4b/2000':0.4903399507151942):0.0016433530537067753,'A/Denmark/206/2000':0.264173606444043):0.041343158830763116,(('A/Denmark/207/2000':0.022358611461520184,'A/SINGAPORE/2/2000':0.17189406347945635):0.003942259287526895,'A/Hong_Kong/CUHK22087/2000':0.15383632276682135):0.03449013983281546):0.06466990403160366,'A/Hong_Kong/CUHK20169/2000':0.10199636663140055):0.02375928965530072,'A/D
This file has been truncated, but you can view the full file.
(('A/BULGARIA/874/2000':1.8020696140256867,(('A/BULGARIA/113/2000':0.07820663811869899,'A/BULGARIA/28/2001':1.0342066381186026):0.8242012603224786,'A/BANGKOK/62/2000':0.9054078984411067):0.899661715584509):0.7425794505239871,((((((('A/EspiritoSanto/128/00':0.007648701751422848,('A/BANGKOK/86/2001':0.6216001724068327,'A/HIROSHIMA/182/2000':0.3269210763533348):0.09775825949126116):0.7046657648231207,'A/Missouri/NHRC0001/2000':0.35202419672132557):0.1618607446318041,((('A/New_York/439/2000':0.1124493222284535,'A/RiodeJaneiro/28/00':0.26079983680216934):0.11114771265688539,((((('A/Hong_Kong/CUHK22078/2000':0.14533995071516692,'A/BRAZIL/4b/2000':0.4903399507151942):0.0016433530537067753,'A/Denmark/206/2000':0.264173606444043):0.041343158830763116,(('A/Denmark/207/2000':0.022358611461520184,'A/SINGAPORE/2/2000':0.17189406347945635):0.003942259287526895,'A/Hong_Kong/CUHK22087/2000':0.15383632276682135):0.03449013983281546):0.06466990403160366,'A/Hong_Kong/CUHK20169/2000':0.10199636663140055):0.02375928965530072,'A/D
Degree, Count
549,1
324,1
257,1
230,1
228,1
219,1
217,1
212,1
205,1