Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bookdown/rmarkdown/knitr: Non-code sequential processing howto? #602

Closed
r-cheologist opened this issue Jul 18, 2018 · 3 comments
Closed

Comments

@r-cheologist
Copy link

This comes from an earlier post to stackoverflow ...

Programatically my bookdown project proceeds as follows:

  1. Reading in raw data - produces all kind of stats.
  2. Data preprocessing (logarithmization, normalization, imputation) - produces various plots for monitoring the population-level defects incurred.
  3. PCA for analysis QC - produces plots for PCA and loadings-dominating data points.
  4. Differential expression analysis - produces volcano plots and plots characterizing prominent differentially expressed features.
  5. Overrepresentation analysis of the differentially expressed features from 4. in various biological ontology systems - produces example bar plots for enriched categories.

I have analysis and narrative nicely integrated using bookdown, enabling efficient on fly discarding of temporary (sizable) data sets/ggplot2 objects (pre/post transformation data etc.).

HOWEVER: The target audience is mostly/only interested in 4. & 5., leading me to the aspired to following structure:

4., 5., Appendix(1., 2., 3.)

Is there any other way but precomputing 1.-5. and then revisiting in the targeted order - I would prefer to avoid accumulating all those ggplot2 objects in memory if at all possible.

@mschilli87
Copy link

@r-cheologist: I tried to answer your SO question. I hope it helps. If so, please close this issue.

PS: I wanted to point out that I saw your SO question before seeing this github issue (I follow bookdown on both platforms, but on SO there are likely more followers). So also without this issue you would have gotten my attention and answer. I'd suggest to at least wait for a couple of days before cross-posting (if at all), as not everyone has time every day or is even close to your time zone. 😉

@r-cheologist
Copy link
Author

Thank you! A indicated on stackoverflow, I am actively using your proposal and thus close this.

@github-actions
Copy link

github-actions bot commented Nov 6, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants