Lecture 2 - Types and Functions

Essential Skills For Computational Biology

2020-06-08

Kevin Bonham, PhD

A program is data and operations on data

chromosomes = 23 # this is data

function diploid(n)
    return n * 2 # this is an operation
end
diploid (generic function with 1 method)
diploid(chromosomes) # this is a program

##nb # %% A slide [markdown] {"slideshow": {"slide_type": "subslide"}}

How to run a julia program

  • From the REPL
  • From a script (Live demo)
  • From a file inside VS Code (Live demo)

Placeholder for video link


This page was generated using Literate.jl.