21  Troubleshooting

Troubleshooting means finding out why a run failed or why a result looks strange. This chapter says where to look first, explains the most common messages, and points to the chapter that explains each cause. The messages are quoted as EpiNexus 1.4.4 shows them.

NoteIn this chapter you will learn
  • where to look first when a run fails or a result looks strange;
  • which design checks stop a run from starting, and which are only notes;
  • what the common messages about imports, uploads, failed runs and skipped steps mean, and what to do about each;
  • what to check when the results look wrong or empty, including the atlas comparison and the tissue check;
  • what to send to the EpiNexus team when you ask for help.

21.1 Where to look first

  1. The Overview tab of the run page. A red box shows why a run failed. A yellow box lists the warnings. The Steps table shows the state of each step; a skipped step shows its reason (Chapter 4).
  2. The Review step of the run wizard, before you launch. Errors under Fix before launching stop the run from starting. Warnings under Design notes are kept with the run (Chapter 2).
  3. The Logs tab, for the full output of the tools.
  4. The report’s Methods section, which says what the run actually did: which samples were kept, which normalisation was used, and which steps were skipped (Chapter 20).

Many messages end with “Ask the EpiNexus team”. These messages describe problems that you cannot fix yourself, such as a missing genome or a machine limit. Write to the team, and give the run’s name.

Figure 21.1 shows the Overview tab of the CUT&RUN run of Chapter 17.

A yellow box titled 7 warnings with seven bullet points, and a Steps table: alignment and peak calling 1 h 37 min, 5 of 5 samples; quality control 2 of 5 passed; replicate reproducibility; peak annotation; peak–gene linking skipped because ABC needs an activity measure; differential analysis 1 comparison, 6,308 significant; GO enrichment; multi-mark integration skipped; super-enhancers skipped; TF and motif enrichment; signal profiles; MultiQC report.
Figure 21.1: Warnings and steps of the CUT&RUN run (71a4d9cc). The yellow box lists seven warnings: the shared IgG, the missing super-enhancer marks, the E. coli spike-in, the samples kept although they failed quality control (QC), and two skipped steps. In the Steps table, three steps were skipped, each with its reason. EpiNexus 1.2 interface.

21.2 Before the run starts: design checks

EpiNexus checks the design of each run on the Review step of the run wizard. Errors stop the run from starting, whereas design notes do not.

Table 21.1: Design errors that stop a run from starting.
Message (shortened) What it means What to do
“The reference genome … isn’t installed yet” The genome is not installed on this service Choose an installed genome, or ask the team (Appendix C)
“DNA-methylation analysis from FASTQ needs the Bismark index for …” The bisulfite index is missing Ask the team, or upload Bismark .cov files
“The spike-in genome … is the same species as the run’s genome” A spike-in must come from another species Choose another spike-in genome (Chapter 10)
“The samples look like different library types — RRBS: …; WGBS: …” Some samples look like RRBS, others like WGBS Choose the library type, or analyse them in separate runs
“GoPeaks needs paired-end reads” GoPeaks cannot use single-end data Choose SEACR or MACS (Chapter 7)
“Comparison … names condition ‘…’, but no … sample has that condition” A comparison does not match the samples Check the conditions on the Samples page
“Analysis Only starts from BAM files uploaded with their peak files, but FASTQ files are selected” Analysis Only does not align reads Choose Full Pipeline (Chapter 4)
“Preprocessing Only trims and aligns FASTQ files, and none are selected” There is nothing to align Choose Analysis Only for BAM files, or Full Pipeline

Common design notes, which do not stop the run:

  • “only 1 condition — no differential analysis will run for this mark”: give the samples their real conditions (Chapter 4).
  • “no biological replicates for … — differential results are exploratory”: with one sample per condition, the variation between replicates cannot be estimated (Chapter 2).
  • “No input/IgG control samples”: peaks will be called without a background, and this gives more false peaks in open chromatin (Chapter 7).
  • “… is filed as “…” in the public archive, but this run analyses it as …”: you may have imported samples of another assay from the same Gene Expression Omnibus (GEO) series (Chapter 3).
  • “… has 2 samples per group: dmrseq can compare it with only 2 sample-swapped versions of the data”: with two methylation samples per group, finding few or no differentially methylated regions (DMRs) is a common and honest result (Chapter 19).

21.3 Importing and uploading

Imports from the public archives and uploads of your own files have their own messages.

Table 21.2: Common import and upload messages.
Message (shortened) What to do
“The archives (GEO/ENA) did not answer within … s. ENA is sometimes slow; try again” Click Look up again; replies already received are kept
“… a controlled-access study (dbGaP/EGA) … cannot be imported here” Apply for access to the data, then upload it yourself
“GEO lists no sequencing runs for this sample (processed data only)” The sample has no raw reads in the archives
“Storage quota exceeded: … GB used of … GB” Delete files or runs you no longer need, or import fewer samples
“… is not a file type EpiNexus reads” Check the file ending (Appendix D)
“This file is being imported from a public archive. Wait for the import to finish” Wait, or cancel the import
“Upload incomplete: expected … bytes, found …” Upload the file again

21.4 The run fails

No compute machine, time limit, memory. Each run gets its own compute machine. When the run cannot get a machine, reaches its time limit or runs out of memory, the run page says, for example: “EpiNexus couldn’t get a compute machine for this run, so it didn’t start and nothing was analysed”, “The analysis reached the time limit for one run” or “The analysis ran out of memory on its compute machine”. Ask the EpiNexus team: a large run may need a longer time limit or a larger machine. While a run waits for a machine, its step reads “Waiting for a compute machine — the run starts automatically when one is free”.

A tool failed on a file. The message names the step and gives a hint, followed by the last lines of the tool’s own output. The common hints are:

  • “R1 and R2 contain different numbers of reads (a mate file is truncated, or the two files are not a pair)”: check that read 1 and read 2 belong together, and upload them again.
  • “a FASTQ file is truncated or corrupt (the upload may be incomplete)”: upload the file again.
  • “a file named .gz is not gzip-compressed” or “a FASTQ file is malformed”: the file is not what its name says.

If the alignment step fails, the later steps are not run.

Something the run needs is missing. These messages say that the run stopped, or a step failed, because a file or program is missing on the analysis machine. You cannot fix these problems yourself; ask the EpiNexus team.

  • “The reference genome ‘…’ isn’t available on the analysis machine, so the run stopped before analysing anything.”
  • “Spike-in calibration was requested, but the spike-in genome ‘…’ isn’t installed”. Alternatively, you can run the analysis again without Use spike-in normalization.
  • “The gene annotation of … isn’t available on the analysis machine, so peaks could not be annotated.”
  • “EpiNexus couldn’t start a machine for this run: the analysis software isn’t set up on the server. Nothing was analysed.”

You can check one message of this kind yourself: “The selected FASTQ files could not be matched to samples, so nothing was aligned”. Check that each sample on the Samples page names its files.

The run is too large. “This run needs ~… GB of scratch disk for … samples, more than this server allows”: split the samples into smaller runs, or ask the team.

21.5 A step was skipped

A step is skipped when it does not apply to the run. A skipped step is therefore not an error.

Table 21.3: Common reasons why a step was skipped.
Step Reason shown What it means
Differential analysis “the samples have fewer than two conditions to compare” Give the samples their conditions (Chapter 9)
Gene Ontology (GO) enrichment “GO annotation is not staged for …” Ask the team to install it
Super-enhancers “no H3K27ac, MED1 or BRD4 samples” Super-enhancers need an active-enhancer mark (Chapter 13)
Enhancer–gene links “ABC needs an activity measure: chromatin accessibility (ATAC-seq or DNase-seq) or H3K27ac” Other marks are not linked (Chapter 13)
Integration “needs differential results for H3K27ac and H3K27me3 in this run” Analyse both marks, with the same conditions, in one run (Chapter 14)
Motifs in changed regions “… regions — at least 50 are needed for a motif test” The set of changed regions is too small (Chapter 12)
Signal profiles “needs signal tracks, which only FASTQ runs produce” Runs from BAM files have no signal tracks

21.6 The results look wrong or empty

Samples fail QC, or are below the minimum. Since EpiNexus 1.2.7, a sample fails QC only when a value reaches ENCODE’s error level, or when it has no usable data. A value below a published minimum is graded Below minimum. This grade is a warning, and the sample is kept (Chapter 6, Appendix B). Check which metrics are low, and look at the other signs of quality: enrichment, agreement between replicates and a result that you can predict. Low library complexity, for example, reduces the usable depth but does not make the results wrong (Chapter 18). If the run’s QC gate excludes failing samples, the run’s warnings name the samples it left out. Runs made before version 1.2.7 keep the grades of their version; Run again grades the samples again.

No differential regions, or very few. Check the design notes: one condition, no replicates, or only two replicates per condition all limit what a test can find (Chapter 2). In addition, look at the MA plot: if the cloud of unchanged regions is not centred on zero, the normalisation does not fit the data (Chapter 9).

“Spike-in … was requested but no sample reached … spike-in fragments”: none of the samples had enough spike-in reads, and EpiNexus therefore used ordinary normalisation instead. The run, its warnings and its methods text say so (Chapter 10).

No DMRs. With two samples per group, dmrseq can compare the result with only two sample-swapped versions of the data. Modest differences, or replicates that differ from each other, then often give no DMRs (Chapter 19).

Few reproducible peaks from IDR (irreproducible discovery rate). Compare the number with ENCODE’s expectation for the assay. For ATAC-seq in EpiNexus 1.4, the IDR set can be much smaller than expected; keep the default regions for the differential analysis (Chapter 18).

Strange GO terms. Check the genes behind each term. Terms from one gene family, or from a few genes, say little about the experiment (Chapter 11).

Many gained regions when most sites close. Check the normalisation: scaling by reads in peaks can shift all fold changes when many regions change in one direction (Chapter 18).

21.7 The Regulatory Atlas and the tissue check

After a run, EpiNexus compares the run’s regions with public chromatin data (the Regulatory Atlas line on the run page; Chapter 15). The comparison can be in one of these states:

Table 21.4: States of the atlas comparison.
Shown What it means What to do
“Not compared with the atlas yet” The run finished before the atlas was installed, or long ago Click Compare with the atlas
“No atlas comparison for this run” The run is a DNA-methylation or Preprocessing Only run, or “the atlas doesn’t cover … yet” (only hg38, mm10 and mm39 are covered) Nothing: the comparison does not apply
“The comparison with the atlas couldn’t finish” Something went wrong in the comparison Click Try again; if it fails again, ask the team
“Compare again with release …” A newer atlas release exists Compare again if you want the newer data; the old comparison stays until the new one is done

The tissue check then compares each sample with the Reference tissue you gave it on the Samples page:

  • Consistent: the sample’s peaks look like its reference tissue.
  • May not match, for example “resembles liver, not heart”: check the sample’s labels. The samples may have been swapped or mislabelled, or the tissue may contain many cells of another kind. This is a warning, never a QC failure.
  • Unclear: no tissue stands out, or two related tissues are too alike to tell apart. This is common for tissues that the reference does not hold.
  • Not checked, with the reason. For example: “no reference tissue given — set it on the Samples page”, “the reference holds no … samples”, or a mark the check does not use, such as H3K27me3.

21.8 Asking for help

When you write to the EpiNexus team, give:

  • the project and the run (its name and the first eight characters of its ID);
  • the message, copied exactly;
  • what you expected, and what you saw.

The run record (Chapter 20) lets the team see exactly what ran.

Key points

  • Start with the Overview tab of the run page: a red box shows why a run failed, a yellow box lists the warnings, and the Steps table gives the reason for each skipped step.
  • Errors on the Review step stop a run from starting, whereas design notes are kept with the run and do not stop it.
  • Messages that end with “Ask the EpiNexus team” describe problems that you cannot fix yourself, such as a missing genome or a machine limit.
  • A skipped step is not an error: the step did not apply to the run.
  • Since EpiNexus 1.2.7, a sample fails QC only when a value reaches ENCODE’s error level or when it has no usable data; a value below a published minimum is a warning.
  • When you ask the EpiNexus team for help, give the project and the run, the message copied exactly, and what you expected and saw.