Skip to content

Instantly share code, notes, and snippets.

View ressy's full-sized avatar

Jesse Connell ressy

View GitHub Profile
@ressy
ressy / gnomad-batch-example.py
Last active April 14, 2022 15:36
gnomAD batch query example
#!/usr/bin/env python
import requests
import pprint
prettyprint = pprint.PrettyPrinter(indent=2).pprint
def fetch(jsondata, url="https://gnomad.broadinstitute.org/api"):
# The server gives a generic error message if the content type isn't
# explicitly set
headers = {"Content-Type": "application/json"}
@ressy
ressy / extraction_metrics_out.py
Created January 24, 2022 20:47
Quick clumsy script to convert an Illumina InterOp/ExtractionMetricsOut.bin v2 file into CSV
#!/usr/bin/env python
"""
Quick clumsy script to convert an Illumina InterOp/ExtractionMetricsOut.bin v2
file into CSV.
http://illumina.github.io/interop/extraction_v2.html
"""
import sys
@ressy
ressy / pdf-ify.sh
Created October 25, 2016 18:22
Slice a long image into a PDF of letter-sized pages
#!/usr/bin/env bash
#
# Slice a long image into a PDF of letter-sized pages.
# Requires ImageMagick.
# Page size
H="11"
W="8.5"
# Input handling
#script created by Matt Anderson, http://tonkapark.com
require 'rubygems'
require 'bigcartel'
require 'csv'
# SET YOUR BIGCARTEL ID HERE
STORE = 'ugmonk'
# SET THE BEST NAME FOR ANY DROP DOWN OPTIONS