Built with blockbuilder.org
Last active
April 10, 2018 16:14
-
-
Save greenmna/b466567361521aa2f59e2b6d6b19d9e9 to your computer and use it in GitHub Desktop.
bLAH
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
license: mit |
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
Isolate | Source | Serotype | AMR_Phenotype | gene_number | |
---|---|---|---|---|---|
HJ1 | Muddy Creek | Give | - | 0 | |
HJ2 | Muddy Creek | Give | - | 0 | |
HJ3 | Pleasant Run | Uganda | Strep Sulf Tet | 0 | |
HJ4 | Pleasant Run | Uganda | - | 0 | |
HJ5 | Cook's Creek Rt. 11 | Litchfield | - | 0 | |
HJ6 | Cook's Creek Rt. 11 | Schwarzengrund | - | 0 | |
HJ7 | Pleasant Run | Muenster | Strep Sulf Tet | 4 | |
HJ8 | Pleasant Run | Muenster | Strep Sulf Tet | 4 | |
HJ9 | Cook's Creek Rt. 704 | Mbandaka | - | 0 | |
HJ10 | Muddy Creek | Anatum | Tet | 1 | |
HJ11 | Cook's Creek Rt. 704 | Schwarzengrund | - | 0 | |
HJ12 | Cook's Creek Rt. 704 | Senftenberg | - | 0 | |
HJ13 | Cook's Creek Rt. 11 | Hadar | Amp Gent Strep Tet | 6 | |
HJ14 | Cook's Creek Rt. 11 | Hadar | Amp Gent Strep Tet | 6 | |
HJ15 | Cook's Creek Rt. 11 | Hadar | Amp Gent Strep Tet | 6 | |
HJ16 | Poultry Litter | Cerro | - | 0 | |
HJ17 | Poultry Litter | Typhimurium | Gent Strep Sulf Tet | 6 | |
HJ18 | Poultry Litter | Typhimurium | Gent Strep Sulf Tet | 6 | |
HJ19 | Poultry Litter | Typhimurium | Gent Strep Sulf Tet | 6 | |
HJ20 | Poultry Litter | Typhimurium | Gent Strep Sulf Tet | 6 | |
HJ21 | Cook's Creek Rt. 11 | Typhimurium | - | 6 | |
HJ22 | Cook's Creek Rt. 704 | Muenchen | - | 0 | |
HJ23 | Cook's Creek Rt. 704 | Muenchen | - | 0 | |
HJ24 | Pleasant Run | Montevideo | - | 0 | |
HJ25 | Pleasant Run | Montevideo | Strep | 0 | |
HJ26 | Muddy Creek | Senftenberg | - | 0 | |
HJ27 | Cook's Creek Rt. 704 | Cerro | - | 0 | |
HJ28 | Cook's Creek Rt. 704 | Cerro | - | 0 | |
HJ29 | Cook's Creek Rt. 704 | Anatum | - | 0 | |
HJ30 | Cook's Creek Park | Braenderup | - | 0 | |
HJ31 | Cook's Creek Park | Braenderup | - | 0 | |
HJ32 | Cook's Creek Park | Braenderup | - | 0 | |
HJ33 | Muddy Creek | Montevideo | - | 0 | |
HJ38 | Cook's Creek Park | Typhimurium | - | 0 | |
HJ39 | Cook's Creek Park | Typhimurium | - | 0 |
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
</style> | |
</head> | |
<body> | |
<script> | |
var salmonella_data=[] | |
var entries = d3.nest() | |
.key(function (d) {return d.Isolate}) | |
.entries(salmonella_data) | |
d3.csv("BIO583_Salmonella_data.csv", function(data){ | |
data.forEach(function(d){ | |
salmonella_data.push({"Isolate": d.Isolate, "Source": d.Source, "Serotype": d.Serotype, "AMR Phenotype": d.AMR_Phenotype})}) | |
var entries = d3.nest() | |
.key(function (d) {return d.Isolate}) | |
.entries(salmonella_data) | |
console.log(entries) | |
}) | |
//console.log(salmonella_data) | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment