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.

Also installs bio1scmeta command-line executable to report all metadata contained in each *.1sc file to a text file.

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

Current Status

  • Version 0.2

  • “Alpha” quality software
    • API subject to change

    • No known problems in operation.

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

    • bio1scmeta (type ‘bio1scmeta –help’)

  • 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()

  • Reading Image Metadata from Data Block 7 OK
    • Reader.get_img_summary()

    • Current info
      • 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. :)

Documentation

Examples

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

# get list/dict of metadata in 1sc file
my_img_metadata = myreader.get_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.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

biorad1sc_reader-0.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for biorad1sc_reader-0.2.tar.gz
Algorithm Hash digest
SHA256 40fed5877b6875c10d884e0b166e3628eab0dbc7946fc851d191e0baf24f6736
MD5 1fc30bd2e10a419fa4a03feb1c3190b2
BLAKE2b-256 60368f63bc1206ac846400c8ee2ac536ffe2c0af1f0bc04698e9ff5f0bcbe402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for biorad1sc_reader-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2f909bb1f1e614a96593e59c8c909aa7806c0a1769c57046edbf1972ae35bc
MD5 af44e626cf00c0048d632f56eefcdc06
BLAKE2b-256 aad14bc3ccf42932bfb9d193ee7307c6dd8054d0a599e55b5e819845c03561e2

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