Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Last active August 29, 2015 14:03
Show Gist options
  • Save jmmastey/bdcd351bf6088272c402 to your computer and use it in GitHub Desktop.
Save jmmastey/bdcd351bf6088272c402 to your computer and use it in GitHub Desktop.
locus1 = ["E","e"]
locus2 = ["A","A+","At","a"]
zombie_locus = ["prl", "n"]
real_genes = [
["G","g"],
["Cr","n"],
["D","d"],
["Ch","n"],
["prl","n"], //interacts with locus4; see notes
["R","r"], //interacts with locus 9,10,11; see notes
["T","t"],
["Sb","n"],
["W","w"], //cannot WW, dead horse syndrome
["Z","z"],
["F","f"],
["P","n"],
["Rb","n"],
["O","o"], //cannot OO, dead horse syndrome
["Spl","n"],
["Lp","n"],
["Sty","n"],
["PATN1","n"],
["PATN2","n"]
]
// ... more sets ...
var geneSets = {
real: real_genes,
fake1: real_genes + fake_genes_1,
fake2: real_genes + fake_genes_2,
fake3: real_genes + fake_genes_1 + fake_genes_2
}
// ... later in your maybeLocii
var candidateLocii = function() {
var selection = $(".myselection").value()
return geneSets[selection] + [locus1, locus2]
}
// example of removing genes
if(userDoesntWantToDieAZombie()) {
candidateLocii.delete(zombie_hocus)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment