Skip to content

Instantly share code, notes, and snippets.

View ryandward's full-sized avatar

Ryan David Ward ryandward

View GitHub Profile

Estimation of Bottleneck Size

The calculation of bottleneck size ($N_b$) follows the principle of effective population size estimation, adapted to quantify the 'founder' population size, i.e., the number of cells contributing descendants to the sample. The formula used in this study is taken from Krimbas and Tsakas and provides the best fit for estimating $N_b$ as per our data. It calculates $N_b$ using allele frequencies at initial and final time points ($f_{i_0}$ and $f_{i_s}$), the total number of sequence reads at both times ($s_0$ and $s_s$), and the number of generations.

This method is an attempt to formalize the intial development from this GitHub repository, which is based on the methodologies from this Nature Methods paper.

ryandward / Library
Last active February 13, 2024 03:52
Library Growth

Protocol for Library Growth with LB Media


This protocol outlines the steps to grow up your libraries and perform chemical genomics for sequence quantification.


  • Library
  • Culture tubes
  • Eppitubes

Protocol for Antibiotic Checkerboard Assay

I. Preparation of Antibiotic Serial Dilutions

  1. Add 200µL of DRUG A (100x) and 300µL of LB into the top-right well of a deep well plate, yielding a 40x concentration in a total volume of 500µL.
  2. Fill the rest of the wells in the top row with 250µL of LB.
  3. Perform a serial dilution across the top row by transferring 250µL sequentially from one well to the next.
  4. Discard 250µL from the penultimate well.
  5. Repeat steps 1-4 in the bottom-left well using DRUG B instead of DRUG A.
ryandward /
Last active September 26, 2020 03:50 — forked from egelev/
Connect bluetooth headphones on Arch Linux (Gnome settings can't do it)
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
= Arch Linux step-by-step installation =
= =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)