Skip to content

Instantly share code, notes, and snippets.

View Phlya's full-sized avatar

Ilya Flyamer Phlya

  • FMI
  • Basel, Switzerland
  • 17:24 (UTC +01:00)
  • X @phlya
View GitHub Profile
@votti
votti / adjust_label_example.ipynb
Created October 24, 2018 14:40
Shows how the AdjustText package can be used together with plotnine
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alimanfoo
alimanfoo / find_runs.py
Created November 5, 2017 23:53
Find runs of consecutive items in a numpy array.
import numpy as np
def find_runs(x):
"""Find runs of consecutive items in an array."""
# ensure array
x = np.asanyarray(x)
if x.ndim != 1:
raise ValueError('only 1D array supported')
@nvictus
nvictus / ucsc.py
Created August 26, 2016 21:02
UCSC fetcher
# -*- coding: utf-8 -*-
"""
Request snapshots from the UCSC Genome Browser.
"""
from __future__ import division, print_function, unicode_literals
from collections import OrderedDict
import sys
import re