Simple TnT tree using polymer web elements
Simple communication between web components
The scale method specifies if the tree should be rendered using the tree's branch lengths or not (true by default). Branch lengths are computed taking the branch_length property of the tree object. This is normally set automatically when your input is a newick formatted tree that includes branch lengths. If scale is set to false, branch lengths are ignored and the tree will display in an isometric layout (all paths from leaves to root having the same length).
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
type Header []byte | |
type Hit struct { | |
subject Header | |
gi int | |
qfrom, qto, sfrom, sto int | |
bitsc float32 | |
} | |
func parseLine (line Line) *Hit { |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) | |
func init() { | |
runtime.GOMAXPROCS(4) |
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
package main | |
import ( | |
"time" | |
"runtime" | |
"fmt" | |
) | |
var ( | |
closeRead = make(chan bool) |
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
package main | |
import ( | |
"time" | |
"runtime" | |
"fmt" | |
) | |
var ( | |
qstate = make(chan int, 8) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript" src="donut.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var innerRadius = 120; |
OlderNewer