- DrugBank FDA Approved drug dataset (1908 drugs, permitted to use under Creative Common’s by-nc 4.0 License)
- Written by Kiwiii v0.13.1 https://github.com/mojaie/kiwiii
Last active
April 8, 2018 14:14
-
-
Save mojaie/fe6db9906cd3c4ccc38463f177e4a6a7 to your computer and use it in GitHub Desktop.
Drug dataset table (DrugBank5.0.5 FDA Approved)
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 | |
height: 650 |
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
d3.buffer("https://mojaie.github.io/kiwiii/resources/DrugBank5.0.5_FDA_Approved.ndc") | |
.then(res => { | |
const data = JSON.parse(pako.inflate(res, {to: 'string'})); | |
const state = new kwdatagrid.DatagridState(kwdatagrid.legacy.convertTable(data)); | |
state.data.fields.find(e => e.key === 'structure').widthf = 1.5; | |
d3.select('#dgview') | |
.call(kwdatagrid.view.datagrid, state) | |
.call(kwdatagrid.sort.setSort, state); | |
}); |
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
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<link rel="stylesheet" type="text/css" href="https://mojaie.github.io/kiwiii/default.css"/> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | |
<script src="https://unpkg.com/dexie@latest/dist/dexie.min.js"></script> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> | |
<script src="https://vega.github.io/vega/vega-core.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.5/pako.min.js"></script> | |
<script src="https://mojaie.github.io/kiwiii/kwdatagrid.js"></script> | |
<div id="dgview"></div> | |
<script src="dgview.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment