Skip to content

Instantly share code, notes, and snippets.

@bmiles
bmiles / LICENSE.md
Last active August 29, 2015 14:13 — forked from davefp/LICENSE.md
Chart Plotting with Chartist in Dashing

The MIT License (MIT)

Copyright (c) 2015 Ben Miles

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@bmiles
bmiles / biocoder_python_Oct_2015.py
Created September 24, 2015 18:46
This code uses Autoprotocol-Python to generate Autoprotocol JSON for a simple bacterial incubation and OD600 measurement.
from autoprotocol.protocol import Protocol
p = Protocol()
# Set up the containers being referenced
ctrl_bacteria = p.ref("DH5a", id="3209xifd029", cont_type="micro-1.5", discard=True)
growth_plate = p.ref("growth_plate", id="3208kfhf394", cont_type="96-flat", storage="cold_4")
# Dispense, transfer, cover the plate, incubate, measure OD600
p.dispense(growth_plate, "lb-broth-noAB", [{"column": "0", "volume": "150:microliter"}])
p.transfer(ctrl_bacteria.well(0), growth_plate.wells_from(0,4, columnwise=True), "2:microliter")
@bmiles
bmiles / biocoder_autoprotocol_oct_2015.json
Created September 24, 2015 18:48
This file is an example of a simple bacterial incubation and OD600 experiment documented in the Autoprotocol JSON data standard.
{
"refs": {
"growth_plate": {
"id": "3208kfhf394",
"store": {
"where": "cold_4"
}
},
"DH5a": {
"discard": true,
import requests
import json
# Use autoprotocol-python package to generate autoprotocol
import autoprotocol as ap
# Example protocol
p = ap.Protocol()
con = p.ref("name", id=None, cont_type="96-flat", storage=None, discard=True)
p.cover(con)
@bmiles
bmiles / mag.py
Created July 25, 2016 11:11
Example of using some of the mag bead operations in autoprotocol.
from autoprotocol_utilities.magnetic_helpers import get_mag_amplicenter, get_mag_frequency
source_plate = protocol.ref(
block_name,
cont_type="96-deep-kf",
storage="cold_80")
protocol.dispense_full_plate(
source_plate,
"water",
"900:microliter")