All courses / Data engineering / Series 2
Data Engineering for Chemistry · Series 2
The Modern Data Stack for Chemistry
The industry tools that run chemical data pipelines: ingestion, warehousing, transformation, testing, orchestration and dashboards.
Start here
- Open Module 1 and read it on any device.
- To run its code, click Open this lesson in Google Colab in its Get set up box: you need only a free Google account, nothing to install.
- New to notebooks? Start here shows every step, and what each word means.
Series 1 built each piece of a chemical data pipeline by hand. Series 2 hands those pieces to the open-source tools data teams use in industry, one by one: declarative ingestion with dlt, a DuckDB warehouse modelled for compounds and assays, transformations, tests and history with dbt, orchestration with Prefect, observability, continuous integration, and structure-activity dashboards in Streamlit. Every module says which Series 1 module it replaces, and everything runs in the browser as well as on your own computer.
Every module is open now: you can read and run them today, on your own. A cohort date will be announced; join the waitlist to hear when.
Modules
- Foundations
-
1
Open to read
Designing a lab data architecture
From folders and spreadsheets to layers a team can trust: raw, staging and marts; extract-load-transform; and where each piece of Series 1 goes in a modern data stack.
Read the lesson → -
2
Open to read
Declarative ingestion
Load the lab's instrument files and ChEMBL's API by declaring what to load, not how: schema inference, incremental loading, duplicates absorbed by a primary key, and schema changes followed or refused by a contract, compared with Series 1's hand-written loader.
dltRead the lesson → -
3
Open to read
Modelling the warehouse
Compounds, targets, dates and measurements as a star schema in DuckDB: the grain, dimensions that work out chemistry once, keys the database enforces, which potencies can be averaged, and why analysts and dashboards need this shape.
DuckDBRead the lesson → - Transformation
-
4
Open to read
Transformations with lineage
Turn raw tables into clean ones with SQL models that reference each other; dbt builds them in order, draws the lineage graph and writes the documentation.
dbtRead the lesson → -
5
Open to read
Tests and contracts in the warehouse
Check every build: dbt tests for keys, values and relationships, model contracts, and chemistry checks on structures with pandera-chem.
dbtpandera-chemRead the lesson → -
6
Open to read
History and corrections
Assays are corrected and compounds re-registered: keep every version with snapshots, and rebuild only what changed with incremental models.
dbtRead the lesson → - Operations
-
7
Open to read
Orchestration
Run the lab's weekly pipeline as a flow: tasks, retries for the failures that pass, caching, a failed build that stops before publishing, the record of every run, schedules, and the ways new data can start a run.
PrefectRead the lesson → -
8
Open to read
Observability
Know when something is wrong before the chemists do: freshness, row counts, schema changes and drift in molecular properties, with alerts.
PrefectdbtRead the lesson → -
9
Open to read
Continuous integration for data
Test every change before it reaches the warehouse: dbt builds and checks on each pull request, in GitHub Actions.
GitHub ActionsdbtRead the lesson → - Serving
-
10
Open to read
Structure-activity dashboards
Give medicinal chemists interactive views of their series: structures, potencies and trends, served from the warehouse.
StreamlitRead the lesson → - Capstone
-
11
Open to read
Capstone: a running data stack for a small lab
Ingest, model, test, schedule, monitor and serve one lab's chemistry data end to end, and hand it over with its documentation.
Everything aboveRead the lesson →