Skip to content

matchy-at-ethz/23fs-smcb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statistical Models in Computational Biology

This repo contains the solution to the projects and some practice code (not necessarily in R) for the course Statistical Models in Computational Biology at ETH Zurich.

File Structure

The directory names are self-explanatory. The projects directory contains the solutions to the course projects, while the practice directory contains some practice code (authored by the owner of the repo).

For the curious ones, create_proj_dir.py is a utility script to create the project directories. It takes the project number as an argument and creates the project directory with the necessary files and directories (the most useful file is a proper skeleton solution.Rmd).

How to run the course project code yourself

As requested by the lecturer, the projects were implemented in R and consequently it's best to use Rstudio as the IDE to view and run the code.

Double-clicking on the .Rproj file will open the project in Rstudio. Or you can open Rstudio and use File > Open Projects to open the .Rproj file, if you have already opened Rstudio.

The dependencies are managed by renv and the projects are set up to use it. To replicate the environment, simply type:

renv::restore()

in the R console. This will install all the necessary packages and their dependencies.

Note: As of now (Feb 2024), Microsoft has terminated MRAN. Should you encounter any curl errors while trying to install the packages, please try options(renv.config.mran.enabled = FALSE) to disable MRAN.

The projects are not implemented using the same R version. It is recommended to use the following R versions for each project. Using a different version may result in errors due to package incompatibility:

  • Project 01-07: R 4.2.3
  • Project 08-11: R 4.3.0

Useful Links

About

2023/24 Früh­jahrs­se­mes­ter Statistical Models in Computational Biology @ ETHz

Topics

Resources

License

Stars

Watchers

Forks