This repository contains beginner-level teaching material for bioinformatics students who are learning R programming, with a specific focus on control structures.
The content focuses on:
forloopsif / elseconditional statements- Using control structures together
- Applying these concepts to simple biological examples
The material is designed to be clear, minimal, and pedagogically consistent with introductory bioinformatics curricula (e.g., YBVA).
This material covers the following topics:
- Iterating over vectors
- Accessing elements one by one
- Storing results in vectors
- Everyday-life analogies for loops
- Logical conditions (
TRUE/FALSE) - Single and multiple conditions
- Decision-making in code
- Classifying numerical data
- Making decisions for each element in a dataset
All examples are intentionally simple and explicit, avoiding advanced R functions.
Examples include:
- DNA nucleotide inspection (GC vs AT)
- GC content calculation using counters
- Simple motif detection (e.g., start codon ATG)
- Enzyme activity at different temperatures
This repository is intended for:
- Undergraduate bioinformatics and biotechnology students
- Students new to R programming
- Instructors looking for simple teaching examples
- Anyone learning control flow with biological context
- R
- R Markdown (
.Rmd) - Output formats: HTML and PDF
No external packages are required.
Short Topic Summary: for + if / else.Rmd— The source documentShort Topic Summary: for + if / else.pdf— Compiled PDF output
This project follows a step-by-step and learner-centered approach:
- No advanced or previously unseen R functions are used
- All logic is built gradually and clearly
- Emphasis is placed on understanding how the computer processes instructions
- Biological meaning is explained alongside programming logic
You can read the material online here:
https://oguzhanisilay8.github.io/Short-Topic-Summary-for-if-else/
This project is released under the MIT License.
You are free to use, modify, and share this material for educational purposes.
Oğuzhan Işılay
Undergraduate Student in Biotechnology and Bioinformatics
Mersin University, Türkiye
GitHub: https://github.com/oguzhanisilay8
LinkedIn: https://www.linkedin.com/in/o%C4%9Fuzhan-i%C5%9F%C4%B1lay-3a793a348/