Last updated: 2020-09-15
Checks: 7 0
Knit directory: DO_Opioid/
This reproducible R Markdown analysis was created with workflowr (version 1.6.2). 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(20200504)
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 6925d17. 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: analysis/Picture1.png
Untracked files:
Untracked: analysis/DDO_morphine1_second_set_69k.stdout
Untracked: analysis/DO_morphine1.R
Untracked: analysis/DO_morphine1.Rout
Untracked: analysis/DO_morphine1.sh
Untracked: analysis/DO_morphine1.stderr
Untracked: analysis/DO_morphine1.stdout
Untracked: analysis/DO_morphine1_SNP.R
Untracked: analysis/DO_morphine1_SNP.Rout
Untracked: analysis/DO_morphine1_SNP.sh
Untracked: analysis/DO_morphine1_SNP.stderr
Untracked: analysis/DO_morphine1_SNP.stdout
Untracked: analysis/DO_morphine1_combined.R
Untracked: analysis/DO_morphine1_combined.Rout
Untracked: analysis/DO_morphine1_combined.sh
Untracked: analysis/DO_morphine1_combined.stderr
Untracked: analysis/DO_morphine1_combined.stdout
Untracked: analysis/DO_morphine1_combined_69k.R
Untracked: analysis/DO_morphine1_combined_69k.Rout
Untracked: analysis/DO_morphine1_combined_69k.sh
Untracked: analysis/DO_morphine1_combined_69k.stderr
Untracked: analysis/DO_morphine1_combined_69k.stdout
Untracked: analysis/DO_morphine1_combined_69k_m2.R
Untracked: analysis/DO_morphine1_combined_69k_m2.Rout
Untracked: analysis/DO_morphine1_combined_69k_m2.sh
Untracked: analysis/DO_morphine1_combined_69k_m2.stderr
Untracked: analysis/DO_morphine1_combined_69k_m2.stdout
Untracked: analysis/DO_morphine1_combined_weight_DOB.R
Untracked: analysis/DO_morphine1_combined_weight_DOB.Rout
Untracked: analysis/DO_morphine1_combined_weight_DOB.err
Untracked: analysis/DO_morphine1_combined_weight_DOB.out
Untracked: analysis/DO_morphine1_combined_weight_DOB.sh
Untracked: analysis/DO_morphine1_combined_weight_DOB.stderr
Untracked: analysis/DO_morphine1_combined_weight_DOB.stdout
Untracked: analysis/DO_morphine1_combined_weight_age.R
Untracked: analysis/DO_morphine1_combined_weight_age.Rout
Untracked: analysis/DO_morphine1_combined_weight_age.err
Untracked: analysis/DO_morphine1_combined_weight_age.out
Untracked: analysis/DO_morphine1_combined_weight_age.sh
Untracked: analysis/DO_morphine1_combined_weight_age.stderr
Untracked: analysis/DO_morphine1_combined_weight_age.stdout
Untracked: analysis/DO_morphine1_cph.R
Untracked: analysis/DO_morphine1_cph.Rout
Untracked: analysis/DO_morphine1_cph.sh
Untracked: analysis/DO_morphine1_second_set.R
Untracked: analysis/DO_morphine1_second_set.Rout
Untracked: analysis/DO_morphine1_second_set.sh
Untracked: analysis/DO_morphine1_second_set.stderr
Untracked: analysis/DO_morphine1_second_set.stdout
Untracked: analysis/DO_morphine1_second_set_69k.R
Untracked: analysis/DO_morphine1_second_set_69k.Rout
Untracked: analysis/DO_morphine1_second_set_69k.sh
Untracked: analysis/DO_morphine1_second_set_69k.stderr
Untracked: analysis/DO_morphine1_second_set_SNP.R
Untracked: analysis/DO_morphine1_second_set_SNP.Rout
Untracked: analysis/DO_morphine1_second_set_SNP.sh
Untracked: analysis/DO_morphine1_second_set_SNP.stderr
Untracked: analysis/DO_morphine1_second_set_SNP.stdout
Untracked: analysis/DO_morphine1_second_set_weight_DOB.R
Untracked: analysis/DO_morphine1_second_set_weight_DOB.Rout
Untracked: analysis/DO_morphine1_second_set_weight_DOB.err
Untracked: analysis/DO_morphine1_second_set_weight_DOB.out
Untracked: analysis/DO_morphine1_second_set_weight_DOB.sh
Untracked: analysis/DO_morphine1_second_set_weight_DOB.stderr
Untracked: analysis/DO_morphine1_second_set_weight_DOB.stdout
Untracked: analysis/DO_morphine1_second_set_weight_age.R
Untracked: analysis/DO_morphine1_second_set_weight_age.Rout
Untracked: analysis/DO_morphine1_second_set_weight_age.err
Untracked: analysis/DO_morphine1_second_set_weight_age.out
Untracked: analysis/DO_morphine1_second_set_weight_age.sh
Untracked: analysis/DO_morphine1_second_set_weight_age.stderr
Untracked: analysis/DO_morphine1_second_set_weight_age.stdout
Untracked: analysis/DO_morphine1_weight_DOB.R
Untracked: analysis/DO_morphine1_weight_DOB.sh
Untracked: analysis/DO_morphine1_weight_age.R
Untracked: analysis/DO_morphine1_weight_age.sh
Untracked: analysis/Plot_DO_morphine1_SNP.R
Untracked: analysis/Plot_DO_morphine1_SNP.Rout
Untracked: analysis/Plot_DO_morphine1_SNP.sh
Untracked: analysis/Plot_DO_morphine1_SNP.stderr
Untracked: analysis/Plot_DO_morphine1_SNP.stdout
Untracked: analysis/Plot_DO_morphine1_second_set_SNP.R
Untracked: analysis/Plot_DO_morphine1_second_set_SNP.Rout
Untracked: analysis/Plot_DO_morphine1_second_set_SNP.sh
Untracked: analysis/Plot_DO_morphine1_second_set_SNP.stderr
Untracked: analysis/Plot_DO_morphine1_second_set_SNP.stdout
Untracked: analysis/workflow_proc.R
Untracked: analysis/workflow_proc.Rout
Untracked: analysis/workflow_proc.sh
Untracked: analysis/workflow_proc.stderr
Untracked: analysis/workflow_proc.stdout
Untracked: data/69k_grid_pgmap.RData
Untracked: data/GM_covar.csv
Untracked: data/GM_covar_07092018_morphine.csv
Untracked: data/MasterMorphine Second Set DO w DOB2.xlsx
Untracked: data/MasterMorphine Second Set DO.xlsx
Untracked: data/cc_variants.sqlite
Untracked: data/founder_geno.csv
Untracked: data/genetic_map.csv
Untracked: data/gm.json
Untracked: data/marker_grid_0.02cM_plus.txt
Untracked: data/mouse_genes_mgi.sqlite
Untracked: data/pheno.csv
Untracked: data/pheno_qtl2.csv
Untracked: data/pheno_qtl2_07092018_morphine.csv
Untracked: data/pheno_qtl2_w_dob.csv
Untracked: data/physical_map.csv
Untracked: data/sample_geno.csv
Untracked: output/DO_morphine_Min.depression.png
Untracked: output/DO_morphine_Min.depression_coefplot.pdf
Untracked: output/DO_morphine_Min.depression_coefplot_blup.pdf
Untracked: output/DO_morphine_Min.depression_coefplot_blup_chr5.png
Untracked: output/DO_morphine_Min.depression_coefplot_blup_chrX.png
Untracked: output/DO_morphine_Min.depression_coefplot_chr5.png
Untracked: output/DO_morphine_Min.depression_coefplot_chrX.png
Untracked: output/DO_morphine_Min.depression_peak_genes_chr5.png
Untracked: output/DO_morphine_Min.depression_violin_chr5.png
Untracked: output/DO_morphine_Recovery.Time.png
Untracked: output/DO_morphine_Recovery.Time_coefplot.pdf
Untracked: output/DO_morphine_Recovery.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_Recovery.Time_coefplot_blup_chr11.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_blup_chr4.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_blup_chr7.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_blup_chr9.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_chr11.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_chr4.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_chr7.png
Untracked: output/DO_morphine_Recovery.Time_coefplot_chr9.png
Untracked: output/DO_morphine_Status_bin.png
Untracked: output/DO_morphine_Status_bin_coefplot.pdf
Untracked: output/DO_morphine_Status_bin_coefplot_blup.pdf
Untracked: output/DO_morphine_Survival.Time.png
Untracked: output/DO_morphine_Survival.Time_coefplot.pdf
Untracked: output/DO_morphine_Survival.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_Survival.Time_coefplot_blup_chr17.png
Untracked: output/DO_morphine_Survival.Time_coefplot_blup_chr8.png
Untracked: output/DO_morphine_Survival.Time_coefplot_chr17.png
Untracked: output/DO_morphine_Survival.Time_coefplot_chr8.png
Untracked: output/DO_morphine_combined_69k_m2_Min.depression.png
Untracked: output/DO_morphine_combined_69k_m2_Min.depression_coefplot.pdf
Untracked: output/DO_morphine_combined_69k_m2_Min.depression_coefplot_blup.pdf
Untracked: output/DO_morphine_combined_69k_m2_Recovery.Time.png
Untracked: output/DO_morphine_combined_69k_m2_Recovery.Time_coefplot.pdf
Untracked: output/DO_morphine_combined_69k_m2_Recovery.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_combined_69k_m2_Status_bin.png
Untracked: output/DO_morphine_combined_69k_m2_Status_bin_coefplot.pdf
Untracked: output/DO_morphine_combined_69k_m2_Status_bin_coefplot_blup.pdf
Untracked: output/DO_morphine_combined_69k_m2_Survival.Time.png
Untracked: output/DO_morphine_combined_69k_m2_Survival.Time_coefplot.pdf
Untracked: output/DO_morphine_combined_69k_m2_Survival.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_coxph_24hrs_kinship_QTL.png
Untracked: output/DO_morphine_cphout.RData
Untracked: output/DO_morphine_operm.cph.RData
Untracked: output/DO_morphine_secondbatch_69k_Min.depression.png
Untracked: output/DO_morphine_secondbatch_69k_Min.depression_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_69k_Min.depression_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_69k_Recovery.Time.png
Untracked: output/DO_morphine_secondbatch_69k_Recovery.Time_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_69k_Recovery.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_69k_Status_bin.png
Untracked: output/DO_morphine_secondbatch_69k_Status_bin_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_69k_Status_bin_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_69k_Survival.Time.png
Untracked: output/DO_morphine_secondbatch_69k_Survival.Time_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_69k_Survival.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_Min.depression.png
Untracked: output/DO_morphine_secondbatch_Min.depression_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_Min.depression_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_Recovery.Time.png
Untracked: output/DO_morphine_secondbatch_Recovery.Time_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_Recovery.Time_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_Status_bin.png
Untracked: output/DO_morphine_secondbatch_Status_bin_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_Status_bin_coefplot_blup.pdf
Untracked: output/DO_morphine_secondbatch_Survival.Time.png
Untracked: output/DO_morphine_secondbatch_Survival.Time_coefplot.pdf
Untracked: output/DO_morphine_secondbatch_Survival.Time_coefplot_blup.pdf
Untracked: output/apr_69kchr_combined.RData
Untracked: output/apr_69kchr_k_loco_combined.rds
Untracked: output/apr_69kchr_second_set.RData
Untracked: output/combined_gm.RData
Untracked: output/combined_gm.k_loco.rds
Untracked: output/combined_gm.probs_36state.rds
Untracked: output/combined_gm.probs_8state.rds
Untracked: output/coxph/
Untracked: output/do.morphine.RData
Untracked: output/do.morphine.k_loco.rds
Untracked: output/do.morphine.probs_36state.rds
Untracked: output/do.morphine.probs_8state.rds
Untracked: output/old_temp/
Untracked: output/pr_69k_combined.RData
Untracked: output/pr_69kchr_combined.RData
Untracked: output/pr_69kchr_second_set.RData
Untracked: output/qtl.morphine.69k.out.combined.RData
Untracked: output/qtl.morphine.69k.out.combined_m2.RData
Untracked: output/qtl.morphine.69k.out.second_set.RData
Untracked: output/qtl.morphine.operm.RData
Untracked: output/qtl.morphine.out.RData
Untracked: output/qtl.morphine.out.combined_gm.RData
Untracked: output/qtl.morphine.out.combined_weight_DOB.RData
Untracked: output/qtl.morphine.out.combined_weight_age.RData
Untracked: output/qtl.morphine.out.second_set.RData
Untracked: output/qtl.morphine.out.second_set.weight_DOB.RData
Untracked: output/qtl.morphine.out.second_set.weight_age.RData
Untracked: output/qtl.morphine.out.weight_DOB.RData
Untracked: output/qtl.morphine.out.weight_age.RData
Untracked: output/qtl.morphine1.snpout.RData
Untracked: output/qtl.morphine2.snpout.RData
Untracked: output/second_set_apr_69kchr_k_loco.rds
Untracked: output/second_set_gm.RData
Untracked: output/second_set_gm.k_loco.rds
Untracked: output/second_set_gm.probs_36state.rds
Untracked: output/second_set_gm.probs_8state.rds
Untracked: output/topSNP_chr5_mindepression.csv
Unstaged changes:
Modified: _workflowr.yml
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/Plot_DO_morphine1_all_weight_age.Rmd
) and HTML (docs/Plot_DO_morphine1_all_weight_age.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 | 6925d17 | xhyuo | 2020-09-15 | age |
html | 7f32481 | xhyuo | 2020-09-15 | Build site. |
Rmd | 40a36d7 | xhyuo | 2020-09-15 | age |
Last update: 2020-09-15
library(qtl2)
rz.transform <- function(y) {
rankY=rank(y, ties.method="average", na.last="keep")
rzT=qnorm(rankY/(length(na.exclude(rankY))+1))
return(rzT)
}
load("code/do.colors.RData")
load("output/qtl.morphine.out.weight_age.RData")
load("output/do.morphine.RData")
#pmap and gmap
chr.names <- c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "X")
gmap <- list()
pmap <- list()
for (chr in chr.names){
gmap[[chr]] <- do.morphine$gmap[[chr]]
pmap[[chr]] <- do.morphine$pmap[[chr]]
}
attr(gmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
attr(pmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
#genome-wide plot
for(i in names(qtl.morphine.out)){
par(mar=c(5.1, 4.1, 1.1, 1.1))
ymx <- maxlod(qtl.morphine.out[[i]]) # overall maximum LOD score
plot(qtl.morphine.out[[i]], map=pmap, lodcolumn=1, col="slateblue", ylim=c(0, 10))
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[1]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[2]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[3]], col="red")
title(main = paste0("DO_morphine_",i))
}
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
#peaks coeff plot
for(i in names(qtl.morphine.out)){
print(i)
peaks <- find_peaks(qtl.morphine.out[[i]], map=pmap, threshold=6, drop=1.5)
for(p in 1:dim(peaks)[1]) {
print(p)
chr <-peaks[p,3]
#coeff plot
par(mar=c(4.1, 4.1, 0.6, 0.6))
# plot_coefCC(coef_c1[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
plot_coefCC(coef_c2[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
}
}
# [1] "Survival.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Recovery.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Min.depression"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Status_bin"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 4
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 5
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 6
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 7
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 8
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
load("output/qtl.morphine.out.second_set.weight_age.RData")
do.morphine <- get(load("output/second_set_gm.RData"))
#pmap and gmap
chr.names <- c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "X")
gmap <- list()
pmap <- list()
for (chr in chr.names){
gmap[[chr]] <- do.morphine$gmap[[chr]]
pmap[[chr]] <- do.morphine$pmap[[chr]]
}
attr(gmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
attr(pmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
#genome-wide plot
for(i in names(qtl.morphine.out)){
par(mar=c(5.1, 4.1, 1.1, 1.1))
ymx <- maxlod(qtl.morphine.out[[i]]) # overall maximum LOD score
plot(qtl.morphine.out[[i]], map=pmap, lodcolumn=1, col="slateblue", ylim=c(0, 10))
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[1]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[2]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[3]], col="red")
title(main = paste0("DO_morphine_",i))
}
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
#peaks coeff plot
for(i in names(qtl.morphine.out)){
print(i)
peaks <- find_peaks(qtl.morphine.out[[i]], map=pmap, threshold=6, drop=1.5)
for(p in 1:dim(peaks)[1]) {
print(p)
chr <-peaks[p,3]
#coeff plot
par(mar=c(4.1, 4.1, 0.6, 0.6))
# plot_coefCC(coef_c1[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
plot_coefCC(coef_c2[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
}
}
# [1] "Survival.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 4
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Recovery.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Min.depression"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Status_bin"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
load("output/qtl.morphine.out.combined_weight_age.RData")
do.morphine <- get(load("output/second_set_gm.RData"))
#pmap and gmap
chr.names <- c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "X")
gmap <- list()
pmap <- list()
for (chr in chr.names){
gmap[[chr]] <- do.morphine$gmap[[chr]]
pmap[[chr]] <- do.morphine$pmap[[chr]]
}
attr(gmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
attr(pmap, "is_x_chr") <- structure(c(rep(FALSE,19),TRUE), names=1:20)
#genome-wide plot
for(i in names(qtl.morphine.out)){
par(mar=c(5.1, 4.1, 1.1, 1.1))
ymx <- maxlod(qtl.morphine.out[[i]]) # overall maximum LOD score
plot(qtl.morphine.out[[i]], map=pmap, lodcolumn=1, col="slateblue", ylim=c(0, 10))
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[1]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[2]], col="red")
abline(h=summary(qtl.morphine.operm[[i]], alpha=c(0.10, 0.05, 0.01))[[3]], col="red")
title(main = paste0("DO_morphine_",i))
}
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
#peaks coeff plot
for(i in names(qtl.morphine.out)){
print(i)
peaks <- find_peaks(qtl.morphine.out[[i]], map=pmap, threshold=6, drop=1.5)
for(p in 1:dim(peaks)[1]) {
print(p)
chr <-peaks[p,3]
#coeff plot
par(mar=c(4.1, 4.1, 0.6, 0.6))
# plot_coefCC(coef_c1[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
plot_coefCC(coef_c2[[i]][[p]], pmap[chr], scan1_output=qtl.morphine.out[[i]], bgcolor="gray95", legend="topright")
}
}
# [1] "Survival.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Recovery.Time"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Min.depression"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] "Status_bin"
# [1] 1
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 2
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 3
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 4
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 5
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
# [1] 6
Version | Author | Date |
---|---|---|
7f32481 | xhyuo | 2020-09-15 |
sessionInfo()
# R version 4.0.0 (2020-04-24)
# Platform: x86_64-pc-linux-gnu (64-bit)
# Running under: Ubuntu 18.04.4 LTS
#
# Matrix products: default
# BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
#
# locale:
# [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
# [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
# [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=C
# [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
# [9] LC_ADDRESS=C LC_TELEPHONE=C
# [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
#
# other attached packages:
# [1] qtl2_0.22-8 workflowr_1.6.2
#
# loaded via a namespace (and not attached):
# [1] Rcpp_1.0.4.6 knitr_1.28 whisker_0.4 magrittr_1.5
# [5] bit_1.1-15.2 R6_2.4.1 rlang_0.4.6 blob_1.2.1
# [9] stringr_1.4.0 tools_4.0.0 parallel_4.0.0 data.table_1.12.8
# [13] xfun_0.13 DBI_1.1.0 git2r_0.27.1 htmltools_0.4.0
# [17] yaml_2.2.1 bit64_0.9-7 digest_0.6.25 rprojroot_1.3-2
# [21] later_1.0.0 vctrs_0.3.1 promises_1.1.0 fs_1.4.1
# [25] memoise_1.1.0 glue_1.4.0 evaluate_0.14 RSQLite_2.2.0
# [29] rmarkdown_2.3 stringi_1.4.6 compiler_4.0.0 backports_1.1.6
# [33] httpuv_1.5.4
This R Markdown site was created with workflowr