Skip to content

Many samples in one table

Each run writes its report, and keeps the statistics of the programs it ran under the sample's name (File formats). MultiQC gathers them into one report of all the samples, a row per sample:

multiqc ~/results

MultiQC is in the environment the lock makes (Installation).

What its table holds

  • tinymapper's columns: the reads, the shares mapped, kept and duplicated, the peaks and the fraction of reads in them (FRiP), from each run's <sample>.report_mqc.yaml;
  • samtools' statistics (stats/<sample>/), STAR's summary (RNA-seq) and MACS2's peaks (MACS3's _peaks.xls), which MultiQC's own modules read;
  • hicstuff's columns (Hi-C), from hicstuff's report in matrices/<sample>/.

They are all named after the sample, so a sample has one row.

Hi-C runs

MultiQC's own hicstuff module reads hicstuff's log and distance law, which hicstuff names after <sample>^<hash>. To have their numbers on the sample's row too, tell MultiQC to clean what follows ^ from the names, in a multiqc_config.yaml:

extra_fn_clean_exts:
  - type: regex
    pattern: '\^.*'
multiqc --config multiqc_config.yaml ~/results

Without it, a Hi-C sample has a second row, <sample>^<hash>, with the module's numbers.

After several runs of a sample

A sample's report, and its statistics in stats/<sample>/, are of its newest run that went to its end: MultiQC reads that run's numbers. An older run's files, named after their hash, stay, but its report cannot be written again in that directory, since its statistics are gone; tinymapper-report refuses it (tinymapper-report). To keep each run's report, give each run an output directory of its own.