Skip to content

Instantly share code, notes, and snippets.

View piroyon's full-sized avatar
🎼

Hiroyo NISHIDE piroyon

🎼
View GitHub Profile
@fnielsen
fnielsen / Federated queries with Virtuoso.py
Created May 10, 2017 12:11
Federated queries with Virtuoso
"""Federated queries with Virtuoso."""
import sys
from SPARQLWrapper import SPARQLWrapper, JSON
QUERY_WIKIDATA = """
PREFIX wd: <http://www.wikidata.org/entity/>
#! /bin/bash
for bam in *bam
do
echo $bam
genomeCoverageBed -ibam $bam -bg -g hg19.genome.info > $(basename $bam .bam).bdg
done
for bdg in *bdg
do
@kueda
kueda / d3.phylogram.js
Last active May 8, 2024 17:33
Right-angle phylograms and circular dendrograms with d3. To preview see http://bl.ocks.org/kueda/1036776
/*
d3.phylogram.js
Wrapper around a d3-based phylogram (tree where branch lengths are scaled)
Also includes a radial dendrogram visualization (branch lengths not scaled)
along with some helper methods for building angled-branch trees.
Copyright (c) 2013, Ken-ichi Ueda
All rights reserved.