autoprotocol 2.0.1

Python library for generating Autoprotocol

Homepage: http://github.com/autoprotocol/autoprotocol-python

Platform: Pypi

Language: Python

License: BSD-3-Clause-Clear

Repository: https://github.com/autoprotocol/autoprotocol-python

View on registry: https://pypi.python.org/pypi/autoprotocol/


Autoprotocol Python

View Library Documentation

Documentation Status

Autoprotocol is a standard way to express experiments in life science. This repository contains a python library for generating Autoprotocol.

Installation

$ git clone https://github.com/autoprotocol/autoprotocol-python
$ cd autoprotocol-python
$ python setup.py install

or, alternatively:

$ pip install autoprotocol

check the releases tab on this repository to see the latest release that will be downloaded, to be completely up to date it's safest to clone and install this repository as above

Building a Protocol

A basic protocol object has empty "refs" and "instructions" stanzas. Various helper methods in the Protocol class are then used to append instructions and refs to the object such as in the simple protocol below:

import json
from autoprotocol.protocol import Protocol
#instantiate new Protocol object
p = Protocol()
#append refs (containers) to Protocol object
bacteria = p.ref("bacteria", cont_type="96-pcr", storage="cold_4")
medium = p.ref("medium", cont_type="micro-1.5", storage="cold_4")
reaction_plate = p.ref("reaction_plate", cont_type="96-flat", storage="warm_37")
#distribute medium from 1.5mL tube to reaction wells
p.distribute(medium.well(0).set_volume("1000:microliter"), reaction_plate.wells_from(0,4), "190:microliter")
#transfer bacteria from source wells to reaction wells
p.transfer(bacteria.wells_from(0,4), reaction_plate.wells_from(0,4),
 ["10:microliter", "20:microliter", "30:microliter", "40:microliter"])
#incubate bacteria at 37 degrees for 5 hours
p.incubate(reaction_plate, "warm_37", "5:hour")
#read absorbance of the first four wells on the reaction plate at 600 nanometers
p.absorbance(reaction_plate, reaction_plate.wells_from(0,4).indices(), "600:nanometer",
 "OD600_reading_01092014")
print json.dumps(p.as_dict(), indent=2)

The script above produces the following autoprotocol:

{
 "refs": {
 "medium": {
 "new": "micro-1.5",
 "store": {
 "where": "cold_4"
 }
 },
 "bacteria": {
 "new": "96-pcr",
 "store": {
 "where": "cold_4"
 }
 },
 "reaction_plate": {
 "new": "96-flat",
 "store": {
 "where": "warm_37"
 }
 }
 },
 "instructions": [
 {
 "groups": [
 {
 "distribute": {
 "to": [
 {
 "volume": "190.0:microliter",
 "well": "reaction_plate/0"
 },
 {
 "volume": "190.0:microliter",
 "well": "reaction_plate/1"
 },
 {
 "volume": "190.0:microliter",
 "well": "reaction_plate/2"
 },
 {
 "volume": "190.0:microliter",
 "well": "reaction_plate/3"
 }
 ],
 "from": "medium/0"
 }
 },
 {
 "transfer": [
 {
 "volume": "10.0:microliter",
 "to": "reaction_plate/0",
 "from": "bacteria/0"
 }
 ]
 },
 {
 "transfer": [
 {
 "volume": "20.0:microliter",
 "to": "reaction_plate/1",
 "from": "bacteria/0"
 }
 ]
 },
 {
 "transfer": [
 {
 "volume": "30.0:microliter",
 "to": "reaction_plate/2",
 "from": "bacteria/0"
 }
 ]
 },
 {
 "transfer": [
 {
 "volume": "40.0:microliter",
 "to": "reaction_plate/3",
 "from": "bacteria/0"
 }
 ]
 }
 ],
 "op": "pipette"
 },
 {
 "duration": "5:hour",
 "where": "warm_37",
 "object": "reaction_plate",
 "shaking": false,
 "op": "incubate"
 },
 {
 "dataref": "OD600_reading_01092014",
 "object": "reaction_plate",
 "wells": [
 "A1",
 "A2",
 "A3",
 "A4"
 ],
 "num_flashes": 25,
 "wavelength": "600:nanometer",
 "op": "absorbance"
 }
 ]
}

Contributing

The easiest way to contribute is to fork this repository and submit a pull request. You can also write an email to us if you want to discuss ideas or bugs.

autoprotocol-python is BSD licensed (see LICENSE). Before we can accept your pull request, we require that you sign a CLA (Contributor License Agreement) allowing us to distribute your work under the BSD license. Email one of the authors listed above for more details.

веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей

GitHub Repository

autoprotocol/autoprotocol-python autoprotocol/autoprotocol-python

Python library for generating Autoprotocol

https://www.autoprotocol.org

Language: Python

Created: December 16, 2014 06:49

Last updated: April 01, 2015 03:58

Last pushed: April 01, 2015 03:58

Size: 2.48 MB

Stars: 20

Forks: 8

Watchers: 20

Open issues: 3

Top Contributors

Tali Herzka Jeremy Apthorp Nader Morshed polarpine Low Kian Seong Timo Kyle Beauchamp

Releases

  • 2.0.1 - March 07, 2015 00:18
  • 2.0.0 - January 25, 2015 03:27
  • 1.0.0 - January 25, 2015 03:24
  • 1.0.0 - January 07, 2015 06:03

Related Projects

barcodegen 0.1
A Python module generating barcode images
Pypi - Python - GPL-3.0 - Published 6 months ago
sendgrid 1.3.0
SendGrid library for Python
Pypi - Python - MIT - Updated 2 months ago - 150 stars
shams 0.0.3
A Python library for generating fake data
Pypi - Python - Other - Updated 10 months ago
smsbox 0.1.0
Python library for smsbox.sk API
Pypi - Python - DSDP - Published over 1 year ago
ssdeep 3.1.1
Python wrapper for the ssdeep library
Pypi - Shell - Other - Updated 3 months ago - 28 stars
веселые картинки развлекательные гифки интресные факты смешные видео смешные истории из соцсетей