Last updated: 2023-04-20
Checks: 7 0
Knit directory: Cardiotoxicity/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20230109)
was run prior to running
the code in the R Markdown file. Setting a seed ensures that any results
that rely on randomness, e.g. subsampling or permutations, are
reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 33ec579. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for
the analysis have been committed to Git prior to generating the results
(you can use wflow_publish
or
wflow_git_commit
). workflowr only checks the R Markdown
file, but you know if there are other scripts or data files that it
depends on. Below is the status of the Git repository when the results
were generated:
Ignored files:
Ignored: .RData
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: data/BC_cell_lines.csv
Ignored: data/Clamp_Summary.csv
Ignored: data/Cormotif_24_k1-5_raw.RDS
Ignored: data/DAgostres24.RDS
Ignored: data/DAtable1.csv
Ignored: data/DDEMresp_list.csv
Ignored: data/DDE_reQTL.txt
Ignored: data/DDEresp_list.csv
Ignored: data/DEG-GO/
Ignored: data/DEG_cormotif.RDS
Ignored: data/DF_Plate_Peak.csv
Ignored: data/Da24counts.txt
Ignored: data/Dx24counts.txt
Ignored: data/Dx_reQTL_specific.txt
Ignored: data/Ep24counts.txt
Ignored: data/GOplots.R
Ignored: data/K_cluster
Ignored: data/K_cluster_kisthree.csv
Ignored: data/K_cluster_kistwo.csv
Ignored: data/LDH48hoursdata.csv
Ignored: data/Mt24counts.txt
Ignored: data/RINsamplelist.txt
Ignored: data/Seonane2019supp1.txt
Ignored: data/TOP2Bi-24hoursGO_analysis.csv
Ignored: data/TR24counts.txt
Ignored: data/Top2biresp_cluster24h.csv
Ignored: data/Viabilitylistfull.csv
Ignored: data/allexpressedgenes.txt
Ignored: data/allgenes.txt
Ignored: data/allmatrix.RDS
Ignored: data/avgLD50.RDS
Ignored: data/backGL.txt
Ignored: data/cormotif_3hk1-8.RDS
Ignored: data/cormotif_initalK5.RDS
Ignored: data/cormotif_initialK5.RDS
Ignored: data/cormotif_initialall.RDS
Ignored: data/counts24hours.RDS
Ignored: data/cpmnorm_counts.csv
Ignored: data/dat_cpm.RDS
Ignored: data/data_outline.txt
Ignored: data/efit2.RDS
Ignored: data/efit2results.RDS
Ignored: data/ensembl_backup.RDS
Ignored: data/ensgtotal.txt
Ignored: data/filenameonly.txt
Ignored: data/filtered_cpm_counts.csv
Ignored: data/filtered_raw_counts.csv
Ignored: data/filtermatrix_x.RDS
Ignored: data/folder_05top/
Ignored: data/gene_prob_tran3h.RDS
Ignored: data/gene_probabilityk5.RDS
Ignored: data/gostresTop2bi_ER.RDS
Ignored: data/gostresTop2bi_LR
Ignored: data/gostresTop2bi_LR.RDS
Ignored: data/gostresTop2bi_TI.RDS
Ignored: data/gostrescoNR
Ignored: data/heartgenes.csv
Ignored: data/individualDRCfile.RDS
Ignored: data/individual_LDH48.RDS
Ignored: data/knowles56.GMT
Ignored: data/knowlesGMT.GMT
Ignored: data/mymatrix.RDS
Ignored: data/nonresponse_cluster24h.csv
Ignored: data/norm_LDH.csv
Ignored: data/norm_counts.csv
Ignored: data/old_sets/
Ignored: data/plan2plot.png
Ignored: data/raw_counts.csv
Ignored: data/response_cluster24h.csv
Ignored: data/sigVDA24.txt
Ignored: data/sigVDA3.txt
Ignored: data/sigVDX24.txt
Ignored: data/sigVDX3.txt
Ignored: data/sigVEP24.txt
Ignored: data/sigVEP3.txt
Ignored: data/sigVMT24.txt
Ignored: data/sigVMT3.txt
Ignored: data/sigVTR24.txt
Ignored: data/sigVTR3.txt
Ignored: data/siglist.RDS
Ignored: data/table3a.omar
Ignored: data/tvl24hour.txt
Ignored: data/tvl24hourw.txt
Ignored: data/venn_code.R
Untracked files:
Untracked: .RDataTmp
Untracked: .RDataTmp1
Untracked: .RDataTmp2
Untracked: analysis/other_analysis.Rmd
Untracked: code/extra_code.R
Untracked: cormotif_probability_genelist.csv
Untracked: individual-legenddark2.png
Untracked: output/figure_1.Rmd
Untracked: output/output-old/
Untracked: output/plan2plot.png
Untracked: output/plan48ldh.png
Untracked: output/sequencing_info.txt
Untracked: output/tableNR.csv
Untracked: output/tabletop2Bi_ER.csv
Untracked: output/tabletop2Bi_LR.csv
Untracked: output/tabletop2Bi_TI.csv
Untracked: output/toplistall.csv
Untracked: reneebasecode.R
Unstaged changes:
Modified: code/venn_code.R
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were
made to the R Markdown (analysis/DRC_analysis.Rmd
) and HTML
(docs/DRC_analysis.html
) files. If you’ve configured a
remote Git repository (see ?wflow_git_remote
), click on the
hyperlinks in the table below to view the files as they were in that
past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 33ec579 | reneeisnowhere | 2023-04-20 | ld50 DRC image added |
html | 2cd8dbe | reneeisnowhere | 2023-04-20 | Build site. |
Rmd | 79c0445 | reneeisnowhere | 2023-04-20 | adding DRC analysis to github |
html | 3ff1a00 | reneeisnowhere | 2023-04-20 | Build site. |
Rmd | 7c0c02a | reneeisnowhere | 2023-04-20 | adding DRC analysis to github |
html | bea5c80 | reneeisnowhere | 2023-04-20 | Build site. |
Rmd | 2faf972 | reneeisnowhere | 2023-04-20 | adding DRC analysis to github |
Rmd | 6d925a2 | reneeisnowhere | 2023-04-16 | updating cormotif with updated RNAseq counts |
Rmd | 575fd81 | reneeisnowhere | 2023-04-11 | updating cormotif |
Rmd | 4e52216 | reneeisnowhere | 2023-03-31 | End of week updates |
Rmd | 3a26d52 | reneeisnowhere | 2023-03-22 | Wed poster analysis changes |
Rmd | 945460e | reneeisnowhere | 2023-03-19 | Updating go plot with reorder |
Rmd | 69b5d53 | reneeisnowhere | 2023-03-17 | updated DRC 6 plot with color for indivd |
Rmd | 11a2ab4 | reneeisnowhere | 2023-03-03 | updates |
Rmd | 49191f8 | reneeisnowhere | 2023-03-03 | more tracking and updates |
Rmd | 90a0227 | reneeisnowhere | 2023-02-27 | monday2-27 |
Rmd | accc241 | reneeisnowhere | 2023-02-10 | updates for the week |
Rmd | 1fc5c19 | reneeisnowhere | 2023-02-09 | Git update |
Rmd | 8c41736 | reneeisnowhere | 2023-02-07 | update with corrMotif |
This is my Dose Response Curve Code and data with summaries.
I hope to explain what and how I did things for future analysis, so that
the code and data are reproducible. All data was created by treating
cardiomyocytes at ~day 26 of diff with 0.01-50 \(\mu\)M concentrations of the drugs:
Daunorubicin (daun) Doxorubicin (doxo) Epirubicin (epi) Mitoxantrone
(mito) Trastuzumab (tras) [ note: Trastuzumab could only be used at
concentrations of 10 \(\mu\)M and
lower] Vehicle (veh)
Vehicle is the control and is effectively treated by water in volumes equivalent to the volume used to dilute the drugs in a 10 mM stock concentration. This is why it has values at different concentrations and why I analyze the data this way.
Cell viability was assessed using Presto Blue reagent according to
manufacturer’s protocols.
90 uL of Galactose media + 10 uL of Presto Blue reagent were added to
each well of the 96 well DRC plate for one hour. The cell media was then
extracted to a black, clear bottom plate and wrapped in foil and stored
at 4 degrees overnight (to allow bubbles to go away). A plate reader was
used to measure florescence and the RFLU values were exported to an
excel file.
Analysis was done as follows: The background wells were averaged and
the average value was subtracted from every well on the plate. Because
the wells on the plate were randomized, Matching the treatment with the
wells is critical and was done inefficiently in an excel file for each
experiment.
Percent Viability was calculated by averaging the RFLU from the vehicle
at each concentration, and dividing each drug’s RFLU at that
concentration by the Vehicle control average RFLU to give a ratio. All
values less than 0 were turned into zero in the excel document, and a
final compilation for each differentiation and dose curve treatment was
stored in an document called DRC_compilation.xlsx. ( note: I spelled
incorrectly in my computer) For calculation to control for plate to
plate variance, the “Empty_Blank” well RFLU2 values from each plate
within an experiment were averaged.
eg:
plate 1= empty average RFLU2 = 29000, plate 2 empty average RFLU2 =31000
normalized ratio plate 1/plate 2 or 29000/31000 =0.9355 this
normalization ratio then was divided into every RFLU2 value on plate 1.
Plate 2 would be divided by 1 to keep the formulas consistent
(31000/31000 or plate2/plate2) to create a column that contained the
adjusted RFLU2 values, called “adj”
Calculations then proceed as described originally. The first viability value is called “Percent”. The adjusted value for intra-plate differences is called “Padj” although this use was deprecated.
Part 2 of the analysis of data begins by entering data from the excel compilation to R. The data is stored as an excel file, which was then stored as an .RDS object for analysis retrieval.
Step one in R is loading the libraries needed for analysis:
library(car)
#library(dr4pl) no longer used
library(tidyverse)
library(tinytex)
library(readxl)
library(BiocGenerics)
library(data.table)
library(drc)
library(Hmisc)
library(cowplot)
library(grid)
library(ggsignif)
library(RColorBrewer)
Step 2 is importing the data from the DRC_compilation.xlsx file. Future ref will refer to the table.
Step 3:
The files “should” have a list of similar names:
‘Drug’ which is the short name of drug used ‘Conc’ which is the
concentration of drug added (in microMolar) ‘Sname’ the abbreviated name
of Drug and Conc ‘Well’ letter with two number format ‘Row’ # 1-8 for
A-G ‘Column’ numbers 1-12 ‘Plate’ will vary between two and three ‘RFLU’
the RFLU from the 0 hour reading with background subtracted (not all
experiments have them) ‘RFLU2’ the RFLU from the 48 hour reading with
background subtracted
I will first streamline the data into more simple formats: Individual 1 is cell line 75-1 (D04_75_1,D05_75_1 )
Individual 2 is cell line 87-1 (D04_87_1, D05_87_1)
Individual 3 is cell line 77-1 (D02_77_1, D03_77_1)
Individual 4 is 79-1 (D04_79_1, D05_79_1)
Individual 5 is 78-1 (D01_78_1, D03_78_1)
Individual 6 is 71-1 (D02_71_1, DJAG_71_1)
As of 6-2-22 I am implementing a new naming for R handles:
ind1a, ind1b etc, to make sure I process out the “empty_blanks”
I am also converting Conc column to numeric Part 4: ###file cleanup###
File cleanup first subsets each file imported by taking out the ‘Empty’ samples in the Drug column and then renaming the file to individual names and DRC a and b
I then need to convert the concentrations to as.numeric and select
the 5 columns that I really need for analysis, followed by dropping any
wells that were NA in the Percent column.
The next part of the code is to make analysis files and groups and
things for the iterations.
The data-frame called individuals is complied from each of the dataframes wrangled above and will be the “final” R object stored in the project folder.
##find the individuals rds Once they are all in a data from, a few functions need to be defined for ggplot: ##functions
I wanted to graph viability across all samples. Below are the results from a sample of concentrations.
###plot all together!#####
###LD50 extract
###drm extracting
##ld50 condensed
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] RColorBrewer_1.1-3 ggsignif_0.6.4 cowplot_1.1.1
[4] Hmisc_4.8-0 Formula_1.2-5 survival_3.5-3
[7] lattice_0.20-45 drc_3.0-1 MASS_7.3-58.2
[10] data.table_1.14.8 BiocGenerics_0.42.0 readxl_1.4.2
[13] tinytex_0.44 lubridate_1.9.2 forcats_1.0.0
[16] stringr_1.5.0 dplyr_1.1.0 purrr_1.0.1
[19] readr_2.1.4 tidyr_1.3.0 tibble_3.1.8
[22] ggplot2_3.4.1 tidyverse_2.0.0 car_3.1-1
[25] carData_3.0-5 workflowr_1.7.0
loaded via a namespace (and not attached):
[1] TH.data_1.1-1 colorspace_2.1-0 deldir_1.0-6
[4] ellipsis_0.3.2 rprojroot_2.0.3 htmlTable_2.4.1
[7] base64enc_0.1-3 fs_1.6.1 rstudioapi_0.14
[10] ggpubr_0.6.0 farver_2.1.1 fansi_1.0.4
[13] mvtnorm_1.1-3 codetools_0.2-19 splines_4.2.2
[16] cachem_1.0.7 knitr_1.42 jsonlite_1.8.4
[19] broom_1.0.3 cluster_2.1.4 png_0.1-8
[22] compiler_4.2.2 httr_1.4.5 backports_1.4.1
[25] Matrix_1.5-3 fastmap_1.1.1 cli_3.6.0
[28] later_1.3.0 htmltools_0.5.4 tools_4.2.2
[31] gtable_0.3.1 glue_1.6.2 Rcpp_1.0.10
[34] cellranger_1.1.0 jquerylib_0.1.4 vctrs_0.5.2
[37] nlme_3.1-162 xfun_0.37 ps_1.7.2
[40] timechange_0.2.0 lifecycle_1.0.3 gtools_3.9.4
[43] rstatix_0.7.2 getPass_0.2-2 zoo_1.8-11
[46] scales_1.2.1 ragg_1.2.5 hms_1.1.2
[49] promises_1.2.0.1 sandwich_3.0-2 yaml_2.3.7
[52] gridExtra_2.3 sass_0.4.5 rpart_4.1.19
[55] latticeExtra_0.6-30 stringi_1.7.12 highr_0.10
[58] plotrix_3.8-2 checkmate_2.1.0 systemfonts_1.0.4
[61] rlang_1.0.6 pkgconfig_2.0.3 evaluate_0.20
[64] htmlwidgets_1.6.1 labeling_0.4.2 processx_3.8.0
[67] tidyselect_1.2.0 magrittr_2.0.3 R6_2.5.1
[70] generics_0.1.3 multcomp_1.4-22 pillar_1.8.1
[73] whisker_0.4.1 foreign_0.8-84 withr_2.5.0
[76] mgcv_1.8-42 abind_1.4-5 nnet_7.3-18
[79] interp_1.1-3 utf8_1.2.3 tzdb_0.3.0
[82] rmarkdown_2.20 jpeg_0.1-10 callr_3.7.3
[85] git2r_0.31.0 digest_0.6.31 httpuv_1.6.9
[88] textshaping_0.3.6 munsell_0.5.0 bslib_0.4.2