Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions html/js_examples.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.3.min.js" integrity="sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=" crossorigin="anonymous"></script>
</head>
<body>
<script>
var baseurl = "http://1kgenomes.ga4gh.org/";

function getVariants(query, callback) {
return $.ajax(baseurl + "variants/search", {
data : JSON.stringify(query),
contentType : 'application/json',
type : 'POST',
success: callback,
dataType: 'json'
});
}
console.log('hi');

var variantSetId = "WyIxa2dlbm9tZXMiLCJ2cyIsInJlbGVhc2UiXQ";

var query = {
"variantSetId": variantSetId,
"referenceName": "1",
"start": 0,
"end": 123123123123
}

function myCallback(response) {
console.log(response);
}

getVariants(query, myCallback);
</script>
</body>
</html>
Binary file added python_notebooks/Cigar-Notes : ClipSoft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion python_notebooks/pileup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Loading