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.

Open to read11 modules After Series 1Free

Start here

  1. Open Module 1 and read it on any device.
  2. 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.
  3. 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

  1. Foundations
  2. 1

    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 →
    Open to read
  3. 2

    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.

    dlt
    Read the lesson →
    Open to read
  4. 3

    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.

    DuckDB
    Read the lesson →
    Open to read
  5. Transformation
  6. 4

    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.

    dbt
    Read the lesson →
    Open to read
  7. 5

    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-chem
    Read the lesson →
    Open to read
  8. 6

    History and corrections

    Assays are corrected and compounds re-registered: keep every version with snapshots, and rebuild only what changed with incremental models.

    dbt
    Read the lesson →
    Open to read
  9. Operations
  10. 7

    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.

    Prefect
    Read the lesson →
    Open to read
  11. 8

    Observability

    Know when something is wrong before the chemists do: freshness, row counts, schema changes and drift in molecular properties, with alerts.

    Prefectdbt
    Read the lesson →
    Open to read
  12. 9

    Continuous integration for data

    Test every change before it reaches the warehouse: dbt builds and checks on each pull request, in GitHub Actions.

    GitHub Actionsdbt
    Read the lesson →
    Open to read
  13. Serving
  14. 10

    Structure-activity dashboards

    Give medicinal chemists interactive views of their series: structures, potencies and trends, served from the warehouse.

    Streamlit
    Read the lesson →
    Open to read
  15. Capstone
  16. 11

    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 above
    Read the lesson →
    Open to read