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.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

biorad1sc_reader-0.1.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for biorad1sc_reader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cb8b7ee2337168db3c49c8c910b4eda7ab323854588022a7ef79b7e6c1538f53
MD5 488ca0fc042981cf2f0eb855a19b4359
BLAKE2b-256 9ce805959d6cb89ecf4802b75fe6f2192233fcbeaf92b3b76540726362b9f682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for biorad1sc_reader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af6d1136110c16f385fef4816027057b4bb4968ec9ff3e7bc152276eaf2ed685
MD5 67cde68e265e4461bf5e7cc05266da6c
BLAKE2b-256 8f93ed13b1dbfdd11b16ba240741947bd3bcd54f916dc472bf65fc7f90c93e4c

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