Skip to content

Instantly share code, notes, and snippets.

@Wanagram
Wanagram / README.md
Last active May 5, 2016 14:07
final exam question 2

Without modifying the information in genes.json, use D3 to construct a pie chart that shows the relative fraction of genes in the forward and reverse directions. Your code must dynamically generate the pie chart from the data. In other words, if I modify the genes.json data file, the pie chart must update automatically. (15 points)

forked from scresawn's block: final exam question 2

forked from anonymous's block: final exam question 2

@Wanagram
Wanagram / README.md
Last active May 5, 2016 13:47
final exam question 1
@Wanagram
Wanagram / README.md
Last active April 21, 2016 13:33
Final Genome Browser
//The two sequences to compare
var sequence1 = "ATGCGAATCGC"
var sequence2 = "ATCCTACCG"
//Creates multi-dimensional array dependent on sequence lengths
var arr = new Array(sequence2.length + 1)
for (i = 0; i < sequence2.length + 1; i++) {
arr[i] = new Array(sequence1.length + 1);
}
@Wanagram
Wanagram / README.md
Created April 10, 2016 15:04
Wan's Site
@Wanagram
Wanagram / README.md
Last active April 7, 2016 11:21
genome browser with tool tip
@Wanagram
Wanagram / README.md
Created April 3, 2016 22:59
fresh block
@Wanagram
Wanagram / README.md
Last active April 4, 2016 03:39
Dynamic Programming
@Wanagram
Wanagram / README.md
Last active April 3, 2016 20:28
Amino Chain
var sequence = "ATGCTGATCGCGCGATCGTAGCTAGTTCGATCGATGTGACGTACTGACTGACGTTGGATCTGATGCTATTTATCGAGCGCTAGCATCGCGATCGCGCATGCGCCATACG";
var gCount=0;
var cCount=0;
var aCount=0;
var tCount=0;
for(i=0;i<sequence.length;i++){
switch(sequence[i]){
case "A":
aCount++
break;