Skip to content

Instantly share code, notes, and snippets.

View audy's full-sized avatar

Austin Richardson audy

View GitHub Profile
#!/usr/bin/env python3
def main():
print(f'{syntax error}')
if __name__ == '__main__':
main()
#!/usr/bin/env python3
import pandas as pd
import numpy as np
df = pd.DataFrame([[1, 2], [3, 4]])
print(df.values)
# [[1 2]
# [3 4]]
#!/usr/bin/env Rscript
library(dada2)
library(ggplot2)
pdf('results.pdf')
path <- "reads/"
fns <- list.files(path)
from .helper import *
from genome_observatory import Genome
class GenomeTest(unittest.TestCase):
def setUp(self):
pass
def test_it_can_be_created(self):
#!/usr/bin/env Rscript
# combine the output of multiple dada2 runs into a single phyloseq experiment
library(tidyverse)
library(phyloseq)
load_seqtab <- function(seqtab_path) {
seqtab_path %>%
read.csv(stringsAsFactors=FALSE) %>%
@audy
audy / wtf.py
Last active June 23, 2017 21:21
#!/usr/bin/env python3
import numpy as np
import seaborn as sb
import matplotlib.pyplot as plt
# https://stackoverflow.com/questions/31594549/how-do-i-change-the-figure-size-for-a-seaborn-plot
dm = np.array([
[1, 2, 3],
#!/bin/bash
# list number of additions, deletions and LOC by user for the last month
set -euo pipefail
authors=(
)
source 'https://rubygems.org'
gem 'activerecord'
gem 'blamer'
gem 'pg'
gem 'pry'
gem 'parallel'
module Userstampable
extend ActiveSupport::Concern
def creator
User.find(self.created_by) if self.created_by
end
def creator=(creator)
self.created_by = creator.id
end
#!/bin/bash
set -euo pipefail
. ~/.secrets
echo "provisioning ${name} on Digital Ocean"
echo "token: ${DIGITAL_OCEAN_TOKEN}"
docker-machine \