Skip to content

Commit 66c815a

Browse files
authored
Merge branch 'main' into felipenarv/qiacuity_dpcr_get_unread
2 parents 849dc39 + 788f9d5 commit 66c815a

5 files changed

Lines changed: 491 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this packages will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.107] - 2025-10-09
9+
10+
### Added
11+
12+
- Thermo Fisher Scientific Genesys30 - add unread data (#1093)
13+
- Mabtech Apex - support files with different plate info (#1099)
14+
- Cytiva Biacore T200 Evaluation Module - initial implementation (#1075)
15+
16+
### Fixed
17+
18+
- Thermo Fisher Scientific Qubit Flex - added handling for sep header (#1101)
19+
820
## [0.1.106] - 2025-09-30
921

1022
### Added

src/allotropy/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.106"
1+
__version__ = "0.1.107"

src/allotropy/parsers/thermo_fisher_qubit_flex/thermo_fisher_qubit_flex_reader.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import numpy as np
44
import pandas as pd
55

6-
from allotropy.constants import DEFAULT_ENCODING
6+
from allotropy.exceptions import AllotropeConversionError
77
from allotropy.named_file_contents import NamedFileContents
8-
from allotropy.parsers.utils.pandas import read_csv, read_excel
8+
from allotropy.parsers.lines_reader import CsvReader
9+
from allotropy.parsers.utils.pandas import read_excel
910

1011

1112
class ThermoFisherQubitFlexReader:
@@ -27,11 +28,14 @@ def read(cls, named_file_contents: NamedFileContents) -> pd.DataFrame:
2728
AllotropeConversionError: If the file format is not supported.
2829
"""
2930
if named_file_contents.extension == "csv":
30-
df = read_csv(
31-
named_file_contents.contents,
32-
index_col=False,
33-
encoding=DEFAULT_ENCODING,
34-
)
31+
csv_reader = CsvReader.create(named_file_contents)
32+
# Skip lines until we find the "Run ID" header
33+
csv_reader.drop_until(r"Test Date")
34+
# Read the CSV block starting from the header
35+
df = csv_reader.pop_csv_block_as_df(index_col=False, header=0)
36+
if df is None:
37+
msg = "Unable to find 'Run ID' header in CSV file"
38+
raise AllotropeConversionError(msg)
3539
else:
3640
df = read_excel(named_file_contents.contents)
3741
df = df.replace(np.nan, None)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sep=,
2+
Run ID,Test Date,Assay Name,Sample Name,Original Sample Conc.,Original sample conc. units,Qubit Tube Conc.,Qubit tube conc. units,Sample Volume (uL),Dilution Factor,Extended Low Range,Core Range,Extended High Range,Excitation,Std 1 RFU,Std 2 RFU,Std 3 RFU,Sample RFU,Last Read Standards,Reagent Lot#,Plate Barcode,Well,Sample ID,Tags,Calibrated Tubes,Software Version,Selected Samples
3+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S1,528,ng/uL,2.64,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,3.19791240277,45.4272739973,,26.8,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6
4+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S2,610,ng/uL,3.05,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,2.94017020913,42.6888518933,,28.4,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6
5+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S3,534,ng/uL,2.67,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,2.74925006568,40.589712998,,24.2,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6
6+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S4,372,ng/uL,1.86,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,2.987900245,43.0991381318,,18.9,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6
7+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S5,546,ng/uL,2.73,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,2.8447101374,41.381660854,,25.1,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6
8+
131222-164034,13/12/2022 04:41:09 PM,RNA BR,S6,486,ng/uL,2.43,ug/mL,1,200,10.0-20.0,20.0-1000,1000-1200,RED,2.82561812305,40.2748421637,,22.2,13/12/2022 04:40:57 PM,,,,,,6,1.5.0,6

0 commit comments

Comments
 (0)