Skip to content

Instantly share code, notes, and snippets.

@Natay
Natay / pavian_report.R
Last active September 20, 2023 23:53
Generate a pavian report given a directory of files
# Load pavion
library(pavian)
# Load the command line arguments
args = commandArgs(trailingOnly=TRUE)
# Directory containing input data files.
INPUT_DIR = args[1]
# Directory to store the final HTML report.
@henrik
henrik / sky_tp_link.md
Created April 6, 2016 07:15
"Self-assigned IP" error with TP-link and Sky on OS X. #googlefood
@nathanhaigh
nathanhaigh / deinterleave_fastq.sh
Last active January 22, 2024 15:25
deinterleave FASTQ files
#!/bin/bash
# Usage: deinterleave_fastq.sh < interleaved.fastq f.fastq r.fastq [compress]
#
# Deinterleaves a FASTQ file of paired reads into two FASTQ
# files specified on the command line. Optionally GZip compresses the output
# FASTQ files using pigz if the 3rd command line argument is the word "compress"
#
# Can deinterleave 100 million paired reads (200 million total
# reads; a 43Gbyte file), in memory (/dev/shm), in 4m15s (255s)
#
@nhoffman
nhoffman / pyscript.py
Last active February 20, 2024 22:30
Python script template
#!/usr/bin/env python3
"""A simple python script template.
"""
import os
import sys
import argparse