Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Allows reading Bio-Rad *.1sc image/analysis files.

Project Description

Python Package to read, parse, convert *.1sc files generated by Bio-Rad Quantity One software.

Documentation at: http://biorad1sc-reader.readthedocs.io/

An optional dependency: numpy. If present, image operations in biorad1sc_reader will run 4x to 5x faster.

Also installs the following command-line executables:

bio1sc2tiff
converts *.1sc files to *.tif images. (type bio1sc2tiff --help)
bio1scmeta
reports all metadata contained in each *.1sc file to a text file. (type bio1scmeta --help)
bio1scread
reports details on a *.1sc file’s internal structure. (type bio1scread --help)

Current Status

  • “Alpha” quality software
    • API subject to change
    • No known problems in operation.
  • Reading Image Data OK
  • Saving Image from file to new TIFF file OK
    • Reader.save_img_as_tiff()
    • Reader.save_img_as_tiff_sc()
  • Reading all metadata OK
    • Reader.get_metadata()
    • Reader.get_metadata_compact()
  • Reading certain image Metadata from Data Block 7 OK
    • Reader.get_img_summary()
    • Includes:
      • Scanner Name: <Scanner Name>
      • Number of Pixels: (<img_size_x> x <img_size_y>)
      • Image Area: (<img_size_x> mm x <img_size_y> mm)
      • Scan Memory Size: <total_img_size> Kb
      • Old file name: <old_file_name>
      • New file name: <new_file_name>
      • <File Directory>
      • New Image Acquired
      • Save As…
      • Quantity One <Quantity One Version String>
  • python2 (lack of) support
    • I’m currently unwilling to support python2
    • If you’d like python2 support, it’s DIY. :)

Examples

# setup reader with input file
import bio1sc_reader
myreader = bio1sc_reader.Reader("my_biorad_file.1sc")

# get list/dict of all metadata in 1sc file
my_img_metadata = myreader.get_metadata()

# get a more succinct data structure of all metadata in 1sc file
my_img_metadata = myreader.get_metadata_compact()

# get a quick summary of some metadata about the image in the 1sc file
my_img_metadata = myreader.get_img_summary()

# Different options for writing image data out as a TIFF file
myreader.save_img_as_tif("unscaled_brightness.tif")
myreader.save_img_as_tif("unscaled_inverted_brightness.tif", invert=True)
myreader.save_img_as_tif_sc("scaled_brightness.tif")
myreader.save_img_as_tif_sc("scaled_brightness_more.tif", scale=0.8)
myreader.save_img_as_tif_sc("scaled_inverted_brightness.tif", invert=True)

File Format Documentation

Release History

Release History

This version
History Node

0.6

History Node

0.5.1

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
biorad1sc_reader-0.6-py3-none-any.whl (33.9 kB) Copy SHA256 Checksum SHA256 py3 Wheel Nov 15, 2017
biorad1sc_reader-0.6.tar.gz (27.8 kB) Copy SHA256 Checksum SHA256 Source Nov 15, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting