Skip to content

Instantly share code, notes, and snippets.

Peter Kerpedjiev pkerpedjiev

Block or report user

Report or block pkerpedjiev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View d3.svg.circularbrush.js
d3.svg.circularbrush = function() {
var _extent = [0,Math.PI * 2];
var _circularbrushDispatch = d3.dispatch('brushstart', 'brushend', 'brush');
var _arc = d3.svg.arc().innerRadius(50).outerRadius(100);
var _brushData = [
{startAngle: _extent[0], endAngle: _extent[1], class: "extent"},
{startAngle: _extent[0] - .2, endAngle: _extent[0], class: "resize e"},
{startAngle: _extent[1], endAngle: _extent[1] + .2, class: "resize w"}
];
var _newBrushData = [];
@pkerpedjiev
pkerpedjiev / block_trees.json
Last active Feb 13, 2017
Cambridge Tree Map
View block_trees.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cnv_calls.txt
{ "views":
[
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromInfo.txt",
"domain": [
0,
3000000000
],
"viewStyle": {
"float": "left",
@pkerpedjiev
pkerpedjiev / config.json
Created Nov 19, 2016
Various 1D tracks
View config.json
{
"views": [
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromInfo.txt",
"domain": [
0,
3000000000
],
"viewStyle": {
"float": "left",
View higlass-examples.json
[
{
"url": "http://higlass.io/app/?config=L4nKi6eGSzWOpi-rU2DAMA",
"title": "Epilogos",
"description": "The epilogos track type (https://epilogos.altiusinstitute.org/) shows an overview of the epigenetic states found along the genome.",
"category": "Useful view configurations",
"image": "https://user-images.githubusercontent.com/2143629/42416058-b698b002-8232-11e8-9952-b43108cfdbd2.png",
"columns": 2,
"locations": ["chr3:180,376,342-180,443,561 & chr3:180,405,434-180,415,676 [offset 0,0:0,0]"]
},
@pkerpedjiev
pkerpedjiev / index.html
Created Apr 19, 2017
D3 event filtering
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<div id="zoom-filtering-div" style="width: 400px; margin: auto">
</div>
<link href="style.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.js"></script>
<script src="script.js"></script>
<script>
You can’t perform that action at this time.