Skip to main content

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.

Also installs bio1sc2tiff command-line executable to convert *.1sc files to *.tif images.

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

Current Status

  • Version 0.1

  • “Alpha” quality software
    • API subject to change

    • No known problems in operation.

  • Installs command-line executable: bio1sc2tiff (type ‘bio1sc2tiff –help’)

  • Reading Image Data OK

  • Saving Image from file to new TIFF file OK

  • Reading Image Metadata from Data Block 7 OK
    • 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
    • So far code works with python2 if you remove the maxsplit argument from split

    • I’m currently unwilling to support python2

    • If you’d like python2 support, it’s DIY. :)

Documentation

Examples

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

# get dict of metadata in Data Block 7 of 1sc file
my_img_metadata = myreader.get_img_metadata()

# 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)

Project details


Download files

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

Source Distribution

biorad1sc_reader-0.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distributions

biorad1sc_reader-0.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

biorad1sc_reader-0.1-py2-none-any.whl (13.1 kB view details)

Uploaded Python 2

File details

Details for the file biorad1sc_reader-0.1.tar.gz.

File metadata

File hashes

Hashes for biorad1sc_reader-0.1.tar.gz
Algorithm Hash digest
SHA256 b7c2f941e3908903d2f5a3f65db8586e0f604fbec8500a586ee35e8a03ed70dc
MD5 e485b2418c3c54d83910cab6f3404dc3
BLAKE2b-256 53f36abe175b821fc45203013462b021fb3560b7c13fa300fcc19f60261093c2

See more details on using hashes here.

File details

Details for the file biorad1sc_reader-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for biorad1sc_reader-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b86b0ece59c0e6647aa5e644c75d3aae8fe20890ed0e7446f32e6eacd79de90
MD5 c63146204db789cd5165302dfb14d14b
BLAKE2b-256 30ebd17992510b427f646f53e321574c84c06951afdcc4ee44de57764da36089

See more details on using hashes here.

File details

Details for the file biorad1sc_reader-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for biorad1sc_reader-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 e3ee0354587bd3c0bbc0fbdb292aab971c6961867db46e6851baa02866da5a0b
MD5 397538db861a3fa40539d79cb243daa5
BLAKE2b-256 76e0554db2b93edc1694eec35ac9a7f0e1fccae6b6c4584c165a1b873db2925d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page