Adding a new instrument
Overview
The pipeline is instrument-agnostic: it processes any Thermo Fisher RAW file given a samplesheet and an analytes TSV, so onboarding a new instrument requires no changes to the pipeline code.
The maintainers operate the pipeline on multiple instruments (Orbitrap Eclipse, Exploris 240) with an external operations layer: a cron monitor watches each instrument’s acquisition directory, submits SLURM jobs, and publishes a rolling MultiQC dashboard per instrument. Adding a new instrument means creating a parallel instrument configuration in that operations layer.
Checklist
- Choose a short code for the instrument (lowercase, no spaces), e.g.
ecl1orexp240. Sample ids are prefixed with this code, so instruments never collide in the dashboards. - Create the instrument config
data/instruments/<code>.confwith:CODE,INSTRUMENT,INSTRUMENT_LABEL— short id, acquisition directory name, display nameRAW_DIR_BASE— base directory of the acquisition data (QCN1 RAW files live at<RAW_DIR_BASE>/<MMYY>/QCN1/)RAW_NAME_PATTERN— filename pattern of the QCN1 RAW filesANALYTES_TSV— path to the instrument-specific analytes tableSTATE_FILE,PENDING_FILE— bookkeeping of processed RAW files and pending jobsROLLING_BASE— local working directory of the rolling dashboardRESULTS_DIR— where the pipeline results are writtenPUBLISH_BASE,PUBLISH_URL_BASE— dashboard folder on the web server and its public URL
- Prepare the analytes TSV with the calibration values measured on the
new instrument (columns:
short_name,long_name,mz_M0,mz_M1,mz_M2,ms2_mz,rt_teoretical). Theoretical retention times are instrument-specific and must reflect the new instrument’s chromatography performance. - Create the results directory for the new instrument.
- Add the cron jobs for the new code:
ribomsqc_monitor.sh <code>every 10 min — watches the current month’s QCN1 folder and submits the new RAW filesribomsqc_publish_rolling.sh <code>every 15 min — rebuilds and republishes the rolling dashboard
- Backfill past RAWs if needed: submit them manually with
ribomsqc_trigger.sh <code> <raw_file> ..., or pre-register their basenames in the state file if they should be skipped. The monitor only scans the current month’s acquisition folder, so older months never come back on their own. - Smoke test: trigger one known-good RAW, check that all analytes are found in the results (observed RT, ppm, areas), and verify the new instrument’s dashboard is published.
- Announce the new dashboard URL to the lab.
Notes
- From v1.1.0 on, the Δm/z plot window is ±5 ppm, which accommodates the systematic mass bias (−3…−4 ppm) observed on the Exploris 240.
- Each instrument has its own state files, results directory and rolling dashboard (latest 10 samples); instruments are processed independently and never interfere.