Skip to content

Commit

Permalink
Dom water validation (#157)
Browse files Browse the repository at this point in the history
* fixed #156
  • Loading branch information
terazus authored Mar 26, 2024
1 parent be466d4 commit 8449012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ two sheets:
- 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`.
- a second sheet containing general information about the experiment, such as the organisation, the species, the start and end date, etc.


The spreadsheets are then uploaded to a shared Google Drive folder and opened for editing for when users hit the lab. The
tool keeps track of the files uploaded to Google Drive, can import external files, and can validate the
content of the spreadsheets. These validation steps are mandatory and must be performed before the files and boxes can be shipped.
Expand Down
2 changes: 1 addition & 1 deletion ptmd/lib/validator/validate_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def validate_compound(validator: Any) -> None:

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

0 comments on commit 8449012

Please sign in to comment.