Socratic LearnCourse overview

Computational biology

Decode Life: AI & Computational Biology

Free viewing — watch in any order. Sign in and enroll if you want quizzes and a certificate.

Python, notebooks, variables and scientific quantities

A notebook executes cells in the order you run them, which may differ from their position on screen.

Loading video…

A notebook executes cells in the order you run them, which may differ from their position on screen. Give measurements names with units and rerun from a clean kernel before sharing. Integers count samples, floats represent measured values, strings label samples and booleans record conditions. A reproducible result includes code, input data and the choices used to produce it.

Worked example

For three wells, record concentration_mg_ml = 2.4 and n_wells = 3. Calculate total_mg = concentration_mg_ml * volume_ml only after recording volume_ml; the variable name exposes the unit assumption.