Skip to content

Commit 8449012

Browse files
authored
Dom water validation (#157)
* fixed #156
1 parent be466d4 commit 8449012

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ two sheets:
8080
- a first sheet containing specific information about the samples. This includes which replicates are exposed to which compound, at which dose, with which vehicle, and after how long they were collected. It also includes a unique identifier for each exposed replicate, each control and each empty tube based on a following pattern: `organism_code:exposure_batch_code:chemical_compound_code:dose_code:timepoint_code:replicate_code`.
8181
- a second sheet containing general information about the experiment, such as the organisation, the species, the start and end date, etc.
8282

83+
8384
The spreadsheets are then uploaded to a shared Google Drive folder and opened for editing for when users hit the lab. The
8485
tool keeps track of the files uploaded to Google Drive, can import external files, and can validate the
8586
content of the spreadsheets. These validation steps are mandatory and must be performed before the files and boxes can be shipped.

ptmd/lib/validator/validate_identifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def validate_compound(validator: Any) -> None:
116116

117117
compound_code_reference: int = int(validator.current_record['data'][PTX_ID_LABEL][3:6])
118118
compound_reference: str = validator.current_record['data'][COMPOUND_NAME_LABEL]
119-
if compound_code_reference < 1 or compound_code_reference > 999:
119+
if compound_code_reference < 0 or compound_code_reference > 999:
120120
validator.add_error(validator.current_record['label'],
121121
f"The identifier doesn't contain a valid compound code '{compound_code_reference}'.",
122122
PTX_ID_LABEL)

0 commit comments

Comments
 (0)