Skip to main content

BioPrinter

Travis CI build status (Python 3)

Bioprinter (webpage here ) is a Python module to produce living art. It transforms an image into files that a liquid dispenser can use to print the image to a plate using pigmented yeast or bacteria.

Here are two examples of bio-art:

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/bioprinter/master/docs/_static/images/bioprint_dolly.jpeg

Dolly drawn with baker yeast (white), violacein-producing yeast (black), and carotene-producing yeast (orange)

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/bioprinter/master/docs/_static/images/bioprint_england.jpeg

England flag drawn with 3 different strains of the bacterium E. coli.

Bioprinter is released on Github under the MIT licence (¢ Edinburgh Genome Foundry), everyone is welcome to contribute !

Bioprinter was written at the Edinburgh Genome Foundry by Zulko after an original idea and Matlab code by Mike Shen (Mike’s project on Github).

Installation

If you have PIP installed:

(sudo) pip install ez_setup bioprinter

Or unzip the source code in a directory and type in a terminal:

sudo python setup.py install

Usage

In the same folder as your code, place an image. It can have any resolution, but keep in mind that the width/height ratio of the plate it is printed on is 1.5. Make sure that a specific color is used to mark the un-pigmented background of the image, here we use blue:

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/bioprinter/master/docs/_static/images/dolly.jpeg

Then write the following code in dolly.py:

from bioprinter import bioprint

bioprint(
    image_filename="../docs/_static/images/dolly.jpeg",
    output_filename="dolly.csv",
    bg_color=[0, 0, 255], # blue background represents empty wells
    pigments_wells={"A1": [0, 0, 0],  # black yeast in source well A1
                    "A2": [250, 120, 10],  # orange yeast in well A2
                    "A3": [255, 255, 255]},  # white yeast in well A3
    quantified_image_filename="dolly_preview.jpeg"
)

Execute in a terminal with python dolly.py. This will produce a dolly.csv file as well as a preview image of the final printing (so that you can check if the image looks good at this low resolution).

Prepare a source plate with the right pigmented yeasts in wells A1, A2, A3, use an agar plate as the destination plate, and feed dolly.csv to the Labcyte Echo. Once the printing is finished, incubate 2 days at 30C (it would be one day at 37C for bacteria). Enjoy the result !

Metadata

Release files for bioprinter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bioprinter 0.1.1
File Size Uploaded Provenance Actions
bioprinter-0.1.1.tar.gz 6.0 kB Without provenance Details for bioprinter-0.1.1.tar.gz

Release files / bioprinter-0.1.1.tar.gz

Download URL bioprinter-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a4f0f4b5bf47c0552bc754a4b5866cb40bb320744e6f80ee5be30181473b03d1
BLAKE2b-256 checksum
How to use checksums
d93da823c9ad7b67b1b27029c1784afb2bf72a7d48827912fc0ac78f4c634fc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for bioprinter 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page