Metadata-Version: 2.1
Name: tbwk-opener
Version: 0.1.1
Summary: An tool to open tbwk files generated by NanoDrop 2000
Home-page: https://github.com/Gillingham-Lab/tbwk-opener
Author: Basilius Sauter
Author-email: basilius.sauter@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: defusedxml

# tbwk-opener
A python package to open and read tbwk files generated from the NanoDrop 2000 software.

Testing: ![Python application](https://github.com/Gillingham-Lab/tbwk-opener/workflows/Python%20application/badge.svg)

## Features
This library has so far only been tested with Nucleic Acid worksheets.

- Can import tbwk files to read measurements contained within the file
- Successfully reads y- and x-values of a recorded spectrum
- Also reports on tabled data contained in the worksheet (such as A260 for nucleic acids, 
or direct nucleic concentration as chosen by the method)

A protein worksheet (no example provided) showed similar behaviour and should work without any issues.

## Installation

Make sure you've installed numpy and scipy before attempting to install tbwk-opener from pip, then use:

```shell script
pip install tbwk-opener
```

## Usage

Get all measurements from a worksheet and report on concentration using the absorption at 260 nm:

```python
from tbwk import Worksheet

worksheet = Worksheet.import_worksheet("examples/nanodrop-dna-measurements-01.twbk")

factor = (2.05 + 2.30)/2 # Î¼M per absorption unit
for measurement in worksheet:
    print(f"{measurement.title:20}{measurement.get_absorption_at(260)*factor:.2f} Î¼M")
```

```text
wash                0.18 Î¼M
blank               0.02 Î¼M
BSD01               61.47 Î¼M
BSD01               61.11 Î¼M
BSD01 cntl A1       37.87 Î¼M
wash                0.57 Î¼M
BSD01 cntl A2       33.94 Î¼M
wash                0.27 Î¼M
BSD01 cntl A3       44.39 Î¼M
BSD01 cntl A3       0.35 Î¼M
BSD01 cntl A4       40.00 Î¼M
wash                0.05 Î¼M
wash                0.02 Î¼M
```
