Skip to content

Commit 2e4fcb5

Browse files
bug fix that gets rid of 0's in DOSE column. causes issues in curve fitting
1 parent c4457a8 commit 2e4fcb5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build/liverpdo/04-experiments-liverpdo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def merge_improve_samples_drugs(experiment_data:pd.DataFrame, samples_data_path:
121121
drugids_merged['sample_name'] = drugids_merged['sample_name'].apply(remove_zero_between_letter_and_digit) # need to apply this function bc some of the naming conventions for the sample names are inconsistent (ex: HCCO01 and HCCO1)
122122
all_merged = pd.merge(drugids_merged, improve_sample_df[['other_id','improve_sample_id']], how = 'left', left_on= "sample_name", right_on= "other_id")
123123
# now do some formatting
124+
all_merged = all_merged[all_merged['DOSE'] != 0] # get rid of any dose that is 0 bc that will cause issues during curve fitting
124125
all_merged['time'] = 72
125126
all_merged['time_unit'] = "hours"
126127
all_merged['study'] = "LiverPDO"

0 commit comments

Comments
 (0)