Skip to content

Instantly share code, notes, and snippets.

View SamStudio8's full-sized avatar

Sam Nicholls SamStudio8

View GitHub Profile
@SamStudio8
SamStudio8 / template.j2
Created September 17, 2023 19:52
Samposium v1 index
---
title: "Samposium v1"
url: "/v1/"
layout: "old_archive"
---
This listing enumerates the posts from the previous iteration of Samposium.
Posts range between long rambling posts about my PhD that I never expected anyone to read, and things that I did to distract myself from finishing my PhD that I hoped people would read.
Each link will take you to a static snapshot of the decommissioned Wordpress post.
@SamStudio8
SamStudio8 / subset_xam
Last active October 25, 2023 16:15
Safely subset a BAM or CRAM with samtools+picard
#!/usr/bin/env bash
# Name subset_xam
# Description Safely subset a BAM (or CRAM) with samtools+picard
# Author @samstudio8
# Date 2022-11-01
# Version 1.0.3
PICARD_JAR=${PICARD_JAR:-}
xam=$1
ref=$2
seq=$3
@SamStudio8
SamStudio8 / acct_parse.py
Last active November 28, 2023 16:12
SGE QACCT Parsing
"""
Provides functions for the purpose of parsing a Sun Grid Engine (SGE)
accounting file for job metadata.
"""
__author__ = "Sam Nicholls <msn@aber.ac.uk>"
__copyright__ = "Copyright (c) Sam Nicholls"
__version__ = "0.0.32"
__maintainer__ = "Sam Nicholls <msn@aber.ac.uk>"