Skip to content

Commit

Permalink
[in-prog]fix: attempt chem file regeneration and linkml update
Browse files Browse the repository at this point in the history
  • Loading branch information
christinehc committed Jan 29, 2025
1 parent d6ddcba commit c8bdd1a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
1 change: 1 addition & 0 deletions build_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def runSampMap(
"""
run sample mapping
"""
print("drcfiles:", drcfiles)
drc = ",".join(drcfiles)
args = (
f" --sample_id={sid}"
Expand Down
2 changes: 1 addition & 1 deletion sampleChemMapping/map_samples_to_chemicals.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def main():
)

if args.is_chem:
nas = bmds["Chemical_ID"].isna()
nas = bmds[bmds["Chemical_ID"].isna()]["Chemical_ID"]
to_remove = set(nas) - set(chem_sample["chemical_id"])
bmds = bmds[~bmds["Chemical_ID"].isin(to_remove)]
curves = curves[~curves["Chemical_ID"].isin(to_remove)]
Expand Down
48 changes: 29 additions & 19 deletions srpAnalytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@ slots:
range: linkml:Any
identifier: true
slot_uri: schema:identifier
chemical_id:
description: Unique identifier for every chemical in the database
range: linkml:Any
identifier: true
slot_uri: schema:identifier
Sample_ID:
description: Unique identifier for every sample in the database
range: linkml:Any
identifier: true
slot_uri: schema:identifier
sample_id:
description: Unique identifier for every sample in the database
range: linkml:Any
identifier: true
slot_uri: schema:identifier
cas_number:
description: CAS identifier for a specific chemical
concentration:
Expand All @@ -29,52 +39,52 @@ slots:
description: Unit of concentration
Project:
description: name of project contributing the dataset
Model:
model:
description: Model with best fit to data
BMD10:
bmd10:
description: Dose at which 10% of fish are affected
range: linkml:Any
BMD50:
bmd50:
description: Dose at which 50% of fish are affected
range: linkml:Any
Min_Dose:
min_dose:
description: Minimum dose administered
range: linkml:Any
Max_Dose:
max_dose:
description: Maximum dose administered
range: linkml:Any
AUC_Norm:
auc_norm:
description: normalized area under the curve
range: linkml:Any
BMD_Analysis_Flag:
bmd_analysis_flag:
description: quality of curve fit
range: integer
IncludeInPortal:
include_in_portal:
description:
End_Point_Name:
end_point_name:
description:
Description:
description:
description: Name of endpoint
endPointLink:
end_point_link:
description: Link to endpoint description
DataQC_Flag:
data_qc_flag:
description: Quality of Data
Dose:
dose:
description: Dose of chemical
range: float
Response:
response:
description: Response in terms of percentage of fish alive
range: float
CI_Lo:
ci_lo:
description: Low range of confidence interval
range: float
CI_Hi:
ci_hi:
description: High range of confidence interval
range: float
X_vals:
x_vals:
description: X coordinates of fitted curve
range: linkml:Any
Y_vals:
y_vals:
description: Y coordinates of fitted curve
range: linkml:Any

Expand Down Expand Up @@ -193,7 +203,7 @@ classes:
- end_point_name
- description
- end_point_link
- data_qc_Flag
- data_qc_flag
zebrafishSampDoseResponse:
description: Dose response datapoints of sample extracts in zebrafish
slots:
Expand Down

0 comments on commit c8bdd1a

Please sign in to comment.