Skip to content

Instantly share code, notes, and snippets.

@lbeltrame
lbeltrame / nonworking.yaml
Created December 22, 2014 10:54
Non working config file
details:
- algorithm:
aligner: bwa
archive: cram
clinical_reporting: true
coverage: my_regions
coverage_depth: high
coverage_interval: regional
effects: vep
indelcaller: scalpel

Keybase proof

I hereby claim:

  • I am lbeltrame on github.
  • I am einar (https://keybase.io/einar) on keybase.
  • I have a public key whose fingerprint is CBD6 EEE3 7132 027A A237 9659 013F A50B 6E1A 4E79

To claim this, I am signing this object:

@lbeltrame
lbeltrame / gogs.init
Last active April 16, 2016 04:42
CentOS Gogs init script
#!/bin/bash
#
# /etc/rc.d/init.d/gogs
#
# Runs the Gogs Go Git Service.
#
#
# chkconfig: - 85 15
#
@lbeltrame
lbeltrame / gist:9888910
Created March 31, 2014 09:47
Calculate coverage for a directory containing BAM files, given a BED file
#!/usr/bin/python3
# This file is part of utils
#
# Copyright (C) 2014 Luca Beltrame <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
#!/usr/bin/env python
# encoding: utf-8
import json
import os
import subprocess
import sys
import requests
from argparse import ArgumentParser
@lbeltrame
lbeltrame / create_ipython_notebook.py
Last active December 11, 2015 21:28
PyQt4 + PyKDE4 script to auto-create IPython notebooks based on date, including starting the interpreter and browser (chromium). Depends upon having a "nbserver" profile set up in IPython. Depends upon: pathlib, psutil, PyQt4, PyKDE4, Pynotify.
#!/usr/bin/env python
from datetime import datetime
import sys
from IPython.nbformat import current
from pathlib import Path
from PyKDE4.kdecore import KStandardDirs
from PyKDE4.kio import KRun
import PyQt4.QtCore as QtCore