Skip to content

Data from a drug trial of mice placed on four different drug regimens were cleaned and analyzed to compare the change in tumor volumes among regimens and create visualizations.

Notifications You must be signed in to change notification settings

MuratCKoc/Pymaceuticals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pymaceuticals

This project analyzes and visualizes results from a drug trial with four drug regimens for squamous cell carcinoma in mice.

Technology Used

  • Python
  • Jupyter notebooks
  • Pandas
  • Matplotlib
  • NumPy
  • SciPy

Process

  • Data were loaded from csvs and converted to dataframes
# Study data files
mouse_metadata_path = "data/Mouse_metadata.csv"
study_results_path = "data/Study_results.csv"

# Read the mouse data and the study results
mouse_metadata = pd.read_csv(mouse_metadata_path)
study_results = pd.read_csv(study_results_path)

# Combine the data into a single dataset
mouse_study = pd.merge(mouse_metadata,study_results, on='Mouse ID')
  • Some summary statistics were performed
# Using the aggregation method, produce the same summary statistics in a single line
reg2_df = combined_results.groupby(['Drug Regimen'])
tumor_vol_stats = reg2_df['Tumor Volume (mm3)'].agg(['mean','median','std','var','sem'])

Tumor Volume Statistics

  • Tumor volumes were compared across regimens
# Generate a box plot of the final tumor volume of each mouse across four regimens of interest
green_diamond = dict(markerfacecolor='g', marker='D')
fig3, ax3 = plt.subplots()
ax3.set_title('final tumor volume of each mouse')
ax3.boxplot(subset['Tumor Volume (mm3)'], flierprops=green_diamond)

Tumor Volume Comparison

  • Other correlations in the data were explored
# Linear Regression Model
# Perform a linear regression onmouse weight vs average tumor volume
ca_slope, ca_int, ca_r, ca_p, ca_std_err = st.linregress(weight_cap.values, capo_ave.values)

# Create equation of line to calculate predicted mouse weight
ca_fit = ca_slope * weight_cap.values + ca_int

Tumov Volume vs Weight

About

Data from a drug trial of mice placed on four different drug regimens were cleaned and analyzed to compare the change in tumor volumes among regimens and create visualizations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published