Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions biolearn/data/Weidner.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CpGmarker,CoefficientTraining
cg02228185,-26.4
cg25809905,-23.7
cg17861230,164.7
12 changes: 12 additions & 0 deletions biolearn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,18 @@ def preprocess(df):
"file": "DepressionBarbu.csv",
},
},
"Weidner": {
"year": 2014,
"species": "Human",
"tissue": "Blood",
"source": "https://doi.org/10.1186/gb-2014-15-2-r24",
"output": "Age (Years)",
"model": {
"type": "LinearMethylationModel",
"file": "Weidner.csv",
"transform": lambda sum: sum + 38.0,
},
},
"TranscriptomicPredictionModel": {
"year": 2015,
"species": "Human",
Expand Down
11 changes: 11 additions & 0 deletions biolearn/test/data/expected_model_outputs/Weidner.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
,Predicted
GSM1009660,21.621698419999998
GSM1009661,20.56664234
GSM1009662,19.783706960000004
GSM1009663,12.604693744999999
GSM1009664,25.795075009999994
GSM1009665,19.8254108
GSM1009666,18.693493688000004
GSM1009667,21.979727899999997
GSM1009668,14.975790068000002
GSM1009669,15.486470720000007