# Troubleshooting

## General Troubleshooting on Standalone DRAGEN Server

<table><thead><tr><th width="151">Failure Type</th><th>Actions</th></tr></thead><tbody><tr><td>Software</td><td>- Open the log file <code>./&#x3C;AnalysisFolder>/Logs_Intermediates/pipeline_trace.txt</code>. This log file displays each pipeline step run by the Nextflow workflow manager software. If a step fails, it is marked as FAILED. Each step generates log files that are stored in step-specific subfolders in the Logs_Intermediates folder. Review the log files in the relevant Logs_Intermediates folder for the step to identify potential sources of error.<br>- Open the errors folder <code>./&#x3C;AnalysisFolder>/errors</code>. The workflow creates an error file, <code>error_&#x3C;NameOfFailedStep>.json</code>, for each step that failed during analysis. For steps that fail per sample, there is a separately labeled file for each sample that failed each step <code>error_&#x3C;NameOfFailedStep>_&#x3C;SampleIDIfRelevant>.json</code>. These files contain the command and stdout and stderr from the step.</td></tr><tr><td>Samples</td><td>Open the combined metrics output results file <code>./&#x3C;AnalysisFolder>/Results/&#x3C;PairId>/MetricsOutput.tsv</code>. If a sample fails an analysis step, the Pair ID that contains the sample shows the failure under <code>FAILED_STEPS</code> in the Analysis Status section, and <code>COMPLETED_ALL_STEPS</code> shows as False. If available, review the individual log files for the failed steps under <code>./&#x3C;AnalysisFolder>/Logs_Intermediates</code> to identify potential sources of error.</td></tr><tr><td>Multinode Gather</td><td>If the following error appears, check if the sample or pair ID was included multiple times during separate node analysis runs, before being gathered together. If the error exists, rerun one of the analyses without the duplicate and reattempt gathering. <code>ERROR:Gather:Destination file ... already exists - check if the same sample ID is in multiple input folders</code></td></tr></tbody></table>

## Sample Sheet Validation Failures

In DRAGEN TruSight Oncology 500 Analysis Software, the analysis fails if a sample sheet is invalid. If an invalid sample sheet in suspected, log files can help troubleshoot a failed analysis. Use the following steps to find the log file for the sample sheet:

1. Navigate to the following location `/<analysis_output>/Logs_Intermediates/SamplesheetValidation.`
2. Open the `SamplesheetValidation-.log` file
3. Find a line with the following: `SampleSheetValidationTask:NA:1 exited with return code 1 which has not been declared as a valid return code.`
4. Search for errors in the sample sheet validation log and compare with the guidelines and warnings in [Sample Sheet Requirements](https://help.connected.illumina.com/tso500/dragen-tso-500-guides/dragen-tso-500-v2.5/run-planning/sample-sheet-requirements) and the following tables.

### General troubleshooting for a failed sample sheet:

<table><thead><tr><th width="289">Failure Type</th><th>Action</th></tr></thead><tbody><tr><td>Sample Sheet not found</td><td>Verify that <code>SampleSheet.csv</code> is present at the top level of the run folder with the name "SampleSheet.csv". If the sample sheet is in a different location, supply the sample sheet using the <code>--sampleSheet</code> option</td></tr><tr><td>Indexes are not valid for the sequencer and/or assay</td><td>See Valid indexes for assay and instrument combinations for correct indexes for the sequencer and assay.</td></tr><tr><td>Pair_ID is not unique</td><td>Pair_ID column is required in the TSO500S_Data section of the sample sheet, which pairs at most one RNA and one DNA sample together for analysis. If the sample does not have a pair, use a unique pair ID for single samples.</td></tr><tr><td>Sample Sheet is not in v2 format</td><td>Verify that the format of the sample sheet is v2. v1 sample sheet is not compatible with DRAGEN TruSight Oncology 500 Analysis Software.</td></tr><tr><td>Analysis does not run</td><td>Verify the analysis starts from the run folder, and BCLs or FASTQs are in the correct locations as outlined in Starting From BCL Files and Starting From FASTQ Files respectively.</td></tr></tbody></table>

### Valid indexes for assay and instrument combinations:

| Assay      | Index Set ID                                           |
| ---------- | ------------------------------------------------------ |
| TSO 500    | <ul><li>UP1-UP16</li><li>CP1-CP16 (DNA Only)</li></ul> |
| TSO 500 HT | <ul><li>UDP0001–UDP0192</li></ul>                      |

### Troubleshooting BCL issues:

<table><thead><tr><th width="229">Failure Type</th><th>Action</th></tr></thead><tbody><tr><td>Lane Column without Values</td><td>Ensure that the column is completed. If lane is not applicable to the run, delete the column.</td></tr><tr><td>Format of v2 sample sheet is incorrect</td><td>Verify that the following sections and fields are present in the sample sheet and follow the individual rules in <a href="run-planning/sample-sheet-requirements">Sample Sheet Requirements</a><br><br>[BCLConvert_Settings]<br>- SoftwareVersion<br>- AdapterRead1<br>- AdapterRead2<br>- AdapterBehavior<br>- MinimumTrimmedReadLength<br>- MaskShortReads<br><br>[BCLConvert_Data]<br>- Sample_ID<br>- index<br>- index2<br><br>[TS0500S_Data]<br>- Sample_ID<br>- Index_ID<br>- Sample_Type<br>- Pair_ID<br>- Sample Feature (Optional)</td></tr><tr><td>HRD analysis is missing</td><td>Verify that HRD is in the Sample Feature column in the sample sheet. Refer to <a href="run-planning/sample-sheet-requirements">Sample Sheet Requirements</a> for more information.</td></tr></tbody></table>

### Troubleshooting FASTQs issues:

<table><thead><tr><th width="257">Failure Type</th><th>Action</th></tr></thead><tbody><tr><td>Sample_ID and/or Sample_Type is not present</td><td>Verify that the sample sheet has columns and values for Sample_ID and Sample_Type.</td></tr><tr><td>Unique sample IDs</td><td>Verify that the Sample_IDs are unique in the sample sheet.</td></tr><tr><td>Format of v2 Sample Sheet is incorrect</td><td><p>Verify that the following sections and fields are present in the sample sheet and follow the individual rules in Sample Sheet Requirements.<br>[TS0500S_Data]<br>- Sample_ID<br>- Index_ID<br>- Sample_Type<br>- Pair_ID</p><p>- Sample Feature (Optional)<br>Verify when FASTQs were generated using the HRD add-kit (Not available in Japan), Sample Feature is added to those DNA Samples. Refer to <a href="run-planning/sample-sheet-requirements">Sample Sheet Requirements</a> for more information.</p></td></tr><tr><td>Incorrect folder structure</td><td>Verify that the FASTQ files are in the correct structure. Refer to <a href="../launching-analysis/analysis-launch-on-standalone-dragen-server/command-line-options#starting-from-fastq-files">Starting From FASTQ Files</a> for more information.</td></tr><tr><td>Invalid FASTQ input files</td><td>If the FASTQs are invalid, start TSO 500 analysis from BCL files.</td></tr><tr><td>HRD analysis missing</td><td>Make sure that HRD is in the correct column in the sample sheet.</td></tr></tbody></table>

## Other Troubleshooting Tips

<table><thead><tr><th width="264">Failure Type</th><th>Action</th></tr></thead><tbody><tr><td>The output file directory contains information from previous analyses</td><td>If this issue is seen: specify a new target output folder and repeat analysis<br><br>To prevent this issue: specify an empty directory before starting analysis</td></tr><tr><td>Single exon (single probe) genes are still reported in the CNV VCF file, but not the CNV TSV file</td><td><p>No action needed; software is working as expected.</p><p>Currently all single probe genes are not emitted to the Copy Number Variants section of our CombinedVariantOutput.tsv. However, you can still find these events in the cnv.vcf.gz.</p><p>Due to the single probe nature, accurate CNV calling has not been validated and as such they are emitted as REF</p></td></tr><tr><td>Testing of cell lines, contrived samples and commercial controls does not return expected results</td><td>Review recommendations for using these samples types <a href="../../performance-testing/contrived-and-cell-line-sample-considerations">here</a>.</td></tr></tbody></table>

## Troubleshooting on ICA

In addition to TSO 500 managed sample sheet validations, ICA managed TSO 500 errors include the following:

<table><thead><tr><th width="267">Error</th><th>Description</th></tr></thead><tbody><tr><td>Failure type: ValueError: Could not find pipeline ID for app BCLConvert in sample sheet SampleSheet.csv</td><td>Action: Ensure StartsFromFastq field is in the [TSO500S_Settings] section, and it is not present in the [BCLConvert_Settings] Section. Refer to <a href="run-planning/sample-sheet-requirements">Sample Sheet Requirements</a> for more information.</td></tr></tbody></table>
