Sadly, the authors of the various ontology tools I use (goseq/clusterprofiler/topgo/gostats/gprofiler) keep changing the input requirements and make it hard for me to keep up. Lets see how well I did.
I want to search the set of up/down genes using goseq, since they changed how they accept annotations, I am changing the goseq search to match the new methods. I think they will be better but am not yet certain.
deseq_sigup <- isc_mm_sig$deseq$ups[[1]]
deseq_sigdown <- isc_mm_sig$deseq$downs[[1]]
goseq_up <- sm(simple_goseq(sig_genes=deseq_sigup, go_db=mm_go, length_db=mm_lengths))
goseq_down <- sm(simple_goseq(sig_genes=deseq_sigup, go_db=mm_go, length_db=mm_lengths))
gprofiler_up <- sm(simple_gprofiler(sig_genes=deseq_sigup, species="mmusculus",
first_col="deseq_logfc"))
gprofiler_down <- sm(simple_gprofiler(sig_genes=deseq_sigup, species="mmusculus",
first_col="deseq_logfc"))
goseq_up_write <- sm(write_goseq_data(goseq_up,
excel=paste0("tables/goseq_deseq_sigup-v", ver, ".xlsx")))
goseq_down_write <- sm(write_goseq_data(goseq_down,
excel=paste0("tables/goseq_deseq_sigdown-v", ver, ".xlsx")))
gprofiler_up_write <- sm(write_gprofiler_data(gprofiler_result=gprofiler_up,
excel=paste0("tables/gprofiler_deseq_sigup-v", ver, ".xlsx")))
gprofiler_down_write <- sm(write_gprofiler_data(gprofiler_result=gprofiler_down,
excel=paste0("tables/gprofiler_deseq_sigdown-v", ver, ".xlsx")))
index.html sample_estimation.html
pander::pander(sessionInfo())
R version 3.3.3 (2017-03-06)
**Platform:** x86_64-pc-linux-gnu (64-bit)
locale: LC_CTYPE=en_US.utf8, LC_NUMERIC=C, LC_TIME=en_US.utf8, LC_COLLATE=en_US.utf8, LC_MONETARY=en_US.utf8, LC_MESSAGES=en_US.utf8, LC_PAPER=en_US.utf8, LC_NAME=C, LC_ADDRESS=C, LC_TELEPHONE=C, LC_MEASUREMENT=en_US.utf8 and LC_IDENTIFICATION=C
attached base packages: grid, parallel, stats4, stats, graphics, grDevices, utils, datasets, methods and base
other attached packages: Vennerable(v.3.1.0.9000), Rgraphviz(v.2.18.0), graph(v.1.52.0), SparseM(v.1.77), topGO(v.2.26.0), GO.db(v.3.4.0), AnnotationDbi(v.1.36.2), IRanges(v.2.8.2), S4Vectors(v.0.12.2), Biobase(v.2.34.0), BiocGenerics(v.0.20.0) and hpgltools(v.2017.01)
loaded via a namespace (and not attached): minqa(v.1.2.4), colorspace(v.1.3-2), colorRamps(v.2.3), rprojroot(v.1.2), qvalue(v.2.6.0), htmlTable(v.1.9), XVector(v.0.14.1), GenomicRanges(v.1.26.4), base64enc(v.0.1-3), roxygen2(v.6.0.1), ggrepel(v.0.6.5), bit64(v.0.9-7), xml2(v.1.1.1), codetools(v.0.2-15), splines(v.3.3.3), doParallel(v.1.0.10), robustbase(v.0.92-7), geneplotter(v.1.52.0), knitr(v.1.16), Formula(v.1.2-1), nloptr(v.1.0.4), gProfileR(v.0.6.1), Rsamtools(v.1.26.2), pbkrtest(v.0.4-7), annotate(v.1.52.1), cluster(v.2.0.6), geneLenDataBase(v.1.10.0), backports(v.1.1.0), Matrix(v.1.2-10), lazyeval(v.0.2.0), limma(v.3.30.13), acepack(v.1.4.1), htmltools(v.0.3.6), tools(v.3.3.3), gtable(v.0.2.0), reshape2(v.1.4.2), Rcpp(v.0.12.11), Biostrings(v.2.42.1), gdata(v.2.18.0), nlme(v.3.1-131), rtracklayer(v.1.34.2), iterators(v.1.0.8), stringr(v.1.2.0), openxlsx(v.4.0.17), testthat(v.1.0.2), lme4(v.1.1-13), gtools(v.3.5.0), devtools(v.1.13.2), XML(v.3.98-1.9), DEoptimR(v.1.0-8), zlibbioc(v.1.20.0), MASS(v.7.3-47), scales(v.0.4.1), RBGL(v.1.50.0), SummarizedExperiment(v.1.4.0), RColorBrewer(v.1.1-2), yaml(v.2.1.14), memoise(v.1.1.0), goseq(v.1.26.0), gridExtra(v.2.2.1), pander(v.0.6.0), ggplot2(v.2.2.1), biomaRt(v.2.30.0), rpart(v.4.1-11), latticeExtra(v.0.6-28), stringi(v.1.1.5), RSQLite(v.2.0), genefilter(v.1.56.0), foreach(v.1.4.3), checkmate(v.1.8.3), GenomicFeatures(v.1.26.4), caTools(v.1.17.1), BiocParallel(v.1.8.2), GenomeInfoDb(v.1.10.3), matrixStats(v.0.52.2), rlang(v.0.1.1), pkgconfig(v.2.0.1), commonmark(v.1.2), bitops(v.1.0-6), evaluate(v.0.10.1), lattice(v.0.20-35), GenomicAlignments(v.1.10.1), htmlwidgets(v.0.8), labeling(v.0.3), bit(v.1.1-12), plyr(v.1.8.4), magrittr(v.1.5), variancePartition(v.1.4.2), DESeq2(v.1.14.1), R6(v.2.2.2), gplots(v.3.0.1), Hmisc(v.4.0-3), DBI(v.0.7), foreign(v.0.8-69), withr(v.1.0.2), mgcv(v.1.8-17), survival(v.2.41-3), RCurl(v.1.95-4.8), nnet(v.7.3-12), tibble(v.1.3.3), crayon(v.1.3.2), KernSmooth(v.2.23-15), rmarkdown(v.1.6), locfit(v.1.5-9.1), data.table(v.1.10.4), blob(v.1.1.0), digest(v.0.6.12), xtable(v.1.8-2), munsell(v.0.4.3) and BiasedUrn(v.1.07)
this_save <- paste0(gsub(pattern="\\.Rmd", replace="", x=rmd_file), "-v", ver, ".rda.xz")
message(paste0("Saving to ", this_save))
## Saving to 04_gene_ontology_mmusculus-v20170703.rda.xz
tmp <- sm(saveme(filename=this_save))