Skip to content

Commit e3327e9

Browse files
committed
2 parents e487d49 + 94580d8 commit e3327e9

2 files changed

Lines changed: 48 additions & 41 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
# Upload entire repository
40+
path: '.'
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

README.md

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,16 @@
1-
# Basics of R Programming
1+
# Basic R Programming Tutorial
22

33
![badge][badge-r]
44

5-
R is a powerful programming language and software environment widely used for statistical analysis, data visualization, and machine learning. It provides a vast array of tools and libraries that make it a popular choice among data scientists, statisticians, and researchers.
5+
Repository for the Bioinformatics Lab's basic R programming tutorial
66

7-
R excels in statistical analysis and is equipped with a rich set of functions for descriptive statistics, hypothesis testing, regression analysis, time series analysis, and multivariate techniques. This makes it a preferred choice for researchers and analysts working with data from various fields, such as social sciences, finance, healthcare, and environmental studies.
7+
The tutorial materials can be viewed at [https://bioinfodlsu.com/basic-r-tutorial/](https://bioinfodlsu.com/basic-r-tutorial/)
88

9-
Moreover, R offers exceptional data visualization capabilities. Its default plotting system allows users to create a wide variety of static and interactive visualizations to explore and present data effectively. Additionally, packages like [`ggplot2`](https://ggplot2.tidyverse.org/) provide a grammar of graphics approach, enabling users to construct complex and customizable plots with ease.
10-
11-
In recent years, R has gained popularity in the field of machine learning. Packages such as [`caret`](https://topepo.github.io/caret/), [`randomForest`](https://www.rdocumentation.org/packages/randomForest/versions/4.7-1.2), and [`keras`](https://cran.r-project.org/web/packages/keras/vignettes/) offer powerful tools for building and evaluating predictive models. R's integration with other languages, such as Python, allows users to leverage popular machine learning frameworks like TensorFlow and scikit-learn within their R workflow.
12-
13-
## 📢 Before Starting
14-
15-
1. Download and install both **R** and **RStudio**: https://posit.co/download/rstudio-desktop/
16-
1. This tutorial uses R markdown files. Kindly refer to this video on how to work with R markdown files on RStudio: https://www.youtube.com/watch?v=DNS7i2m4sB0
17-
1. Download this [file](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/phages.tsv) (`phages.tsv`), and place it inside the same folder as the R markdown files that you will be creating in this tutorial.
18-
19-
## 📜 Topic Outline
20-
21-
**R markdown** files (second column) can be directly opened and run on RStudio. However, when opened on GitHub, only the raw code is displayed and outputs (e.g., tables and plots) are stripped.
22-
23-
**GitHub markdown** files (third column) cannot be directly opened and run on RStudio. However, GitHub displays them nicely while also preserving the outputs.
24-
25-
| \# | Topic | R Markdown | GitHub Markdown |
26-
| --- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
27-
| 1 | Introduction to R Syntax | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/1.%20Introduction%20to%20R%20Syntax.Rmd) |
28-
| 2 | Groups of Data: Vectors, Matrices & Lists | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/2.%20Groups%20of%20Data%20-%20Vectors%2C%20Matrices%20%26%20Lists.Rmd) |
29-
| 3 | Data Frames | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/3.%20Dataframes.Rmd) |
30-
| 4 | Manipulating Data with `dplyr` | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/4.%20Manipulating%20Data%20with%20dplyr.Rmd) |
31-
| 5 | Fundamentals of Data Visualization with `ggplot2` | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/5.%20Fundamentals%20of%20Data%20Visualization%20with%20ggplot2.Rmd) |
32-
| 6 | Descriptive Statistics | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/6.%20Descriptive%20Statistics.Rmd) |
33-
| 7 | Inferential Statistics | [Link](https://github.com/bioinfodlsu/basic-r-tutorial/blob/main/7.%20Inferential%20Statistics.Rmd) |
34-
35-
## 📚 References
36-
37-
This tutorial references the following resources:
38-
39-
- Hamel, G. (2020). Intro to R: Index. _Kaggle_. https://www.kaggle.com/code/hamelg/intro-to-r-index/notebook
40-
- Gatto, L. (2021). Chapter 5 Manipulating and analyzing data with dplyr. In _UCLouvain-CBIO/WSBIM1207: Introduction to bioinformatics (Version v2.0.0)_. https://uclouvain-cbio.github.io/WSBIM1207/sec-dplyr.html
41-
42-
The dataset we use in this tutorial was downloaded using [INPHARED](http://doi.org/10.1089/phage.2021.0007) last September 2022:
43-
44-
- Cook, R., Brown, N., Redgwell, T., Rihtman, B., Barnes, M., Clokie, M., Stekel, D. J., Hobman, J. L., Jones, M. A., & Millard, A. (2021). INfrastructure for a PHAge REference Database: Identification of large-scale biases in the current collection of cultured phage genomes. _PHAGE, 2_(4), 214-223. http://doi.org/10.1089/phage.2021.0007
45-
46-
## 💻 Authors
9+
## Authors
4710

4811
- **Daphne Janelyn L. Go** <br>
4912
daphne_janelyn_go@dlsu.edu.ph
13+
5014
- **Mark Edward M. Gonzales** <br>
5115
mark_gonzales@dlsu.edu.ph
5216

0 commit comments

Comments
 (0)