Skip to content

Commit 7664fdf

Browse files
authored
Add dose category - Alternative (#139)
* Add dose category - Alternative * Update docs for dose groups
1 parent 9d9644a commit 7664fdf

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

docs/source/user_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ After clicking "Next", you will access the timepoints page where you are asked t
7878

7979
**Figure 4:** Creating a new sample collection spreadsheet - Exposure Information
8080

81-
The last page of the creator will contain information of the chemicals used for the exposure. They are organised in three
82-
groups based on the dose: **BMD10** (Low), **BMD25** (Medium), **10mg/L** (High). Each chemical can only be added to one
81+
The last page of the creator will contain information of the chemicals used for the exposure. They are organised in different
82+
groups, including: **BMD10** (Low), **BMD25** (Medium), **10mg/L** (High), or **Alternative** (Alternative). Each chemical can only be added to one
8383
group at a time and you will need to create a new batch to test a chemical at a different dose for the same species. At
8484
least one group must contain a chemical for the spreadsheet to be generated but you can add as many chemicals as you want
8585
in each group.

ptmd/const/spreadsheets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def extract_empty_columns() -> list[str]:
3434
"BMD10": "L",
3535
"BMD25": "M",
3636
"10mg/L": "H",
37+
"Alternative": "A",
3738
}
3839
TIME_POINT_MAPPING: dict = {
3940
"TP0": "S",

ptmd/resources/api/files/create_file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ definitions:
9595
dose:
9696
type: string
9797
description: The dose for these chemicals
98-
enum: ["BMD10", "BMD25", "10mg/L"]
98+
enum: ["BMD10", "BMD25", "10mg/L", "Alternative"]
9999
Create File Response:
100100
type: object
101101
properties:

ptmd/resources/schemas/creator/create_exposure_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"BMD10",
1616
"BMD25",
1717
"10mg/L",
18+
"Alternative",
1819
0
1920
]
2021
}

ptmd/resources/schemas/exposure_information_sheet_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"dose_code": {
128128
"type": ["string", "integer"],
129129
"description": "The dose code.",
130-
"enum": ["0", "BMD10", "BMD25", "10mg/L", 0],
130+
"enum": ["0", "BMD10", "BMD25", "10mg/L", "Alternative", 0],
131131
"_role": "admin"
132132
},
133133
"precisiontox_short_identifier": {

0 commit comments

Comments
 (0)