Drug-Resistant Infections and Disease Dynamics group handbook

Welcome to our group's handbook. This is intended to help group members to find the information they need and to give prospective members an idea about what it is like to work with our group.

View the Project on GitHub DRIaDD/handbook

Coding guides / advice

Effective Coding and Modelling: Using Julia and R to Their Full Potential

Currently, R and Julia are the main programming languages used in our group.

For R:

For Julia:

Guidelines when writing code

From Cobey’s Lab handbook for coding, there are 5 suggested guidelines when writing code:

Refer to a coding style guide for best practices and consistency:

Include dependencies (libraries, packages and their versions), outputs (charts, files), and data if possible. Check the university data policies for this, connect to open data or even dummy data is preferable than none.

Write code that’s meant to be reproduced: write clear and understandable concepts,

Use a version control system that is hosted in a repository—such as GitHub, GitLab, or Bitbucket that makes collaboration easy. This serves to catch errors, roll back, and track progress. To serve its purposes, the repository is best to be updated daily, either with new code or tasks assigned. Document the repository. And remember the repository has to be made public when a manuscript is submitted. It would be useful if your peers try to reproduce your results with your code as the only source of information.