GenPat Platform, Wiki

Topics
Topics

Nanopore Pipeline

Introduction

This pipeline analyzes bacterial whole-genome sequencing (WGS) data generated with Oxford Nanopore technology. It filters long reads, reconstructs a de novo assembly, and polishes the assembled sequence. It also performs taxonomic classification, antimicrobial resistance (AMR) screening, plasmid detection, and typing according to the sample's genus and species.

Assembly and polishing use the filtered Nanopore reads.

uml diagram

AMRFinderPlus and the typing tools run according to the supported taxa. For Klebsiella, MLST is performed with Kleborate.

How to run the pipeline

Once the Nanopore Pipeline has been selected in the Run Analysis page, a confirmation interface will allow proceeding to input and parameter selection.

The Nanopore Pipeline consists of 5 main steps:

  1. Long-read filtering with Filtlong and read quality assessment with NanoPlot;
  2. Taxonomic classification with Kraken2, AMR screening with ResFinder, and plasmid detection with PlasmidFinder on the filtered reads;
  3. De novo assembly with Autocycler and assembly quality assessment with QUAST;
  4. Assembly polishing with Medaka, using the complete filtered read set, followed by QUAST;
  5. AMR screening, MLST, and species-specific characterization of the polished assembly.

Inputs

The required input is one basecalled Nanopore FASTQ file per sample (.fastq.gz), for example from step_0SQ_rawreads.

Main parameters

The following table lists the main settings and their default values:

Tool Parameter Default Description
Filtlong Minimum read length 1000 bp Minimum length of retained reads.
Filtlong Retained percentage 90 Keeps the best reads accounting for 90% of the input bases, subject to the other filters.
Filtlong Target bases Unset Optional limit on the number of bases retained.
Filtlong Trimming / splitting Disabled / 0 Trims or splits reads; 0 disables splitting.
Autocycler Genome size Automatic Uses the Qualibact genome-size thresholds for the supplied taxon. An explicit size, such as 5000000 or 5m, can be supplied.
Autocycler Assemblers flye raven miniasm myloasm metamdbg Assemblers used to reconstruct the genome from read subsets.
Autocycler Read type ont_r10 Nanopore read type; supported values are ont_r9 and ont_r10.
Autocycler Subsample count 4 Number of read subsets used for assembly; must be at least 2.
Medaka Model Automatic Inferred from the basecaller metadata in the FASTQ headers; a compatible model can also be specified explicitly.
Medaka Bacterial model preference Enabled Selects the bacterial methylation model when compatible with the basecaller.
Medaka Batch size 100 Batch size used during consensus generation.

Species-specific analyses

Typing is performed on the polished assembly. The following analyses are selected automatically:

Sample taxon Tool Analysis
Klebsiella Kleborate Species assignment, followed by AMR, virulence, and MLST analyses using the supported species-complex modules.
Other bacteria mlst MLST scheme and sequence type identification.
Salmonella enterica SeqSero2 Serotype prediction.
Escherichia coli SeqTyping Serotype prediction.
Bacillus cereus BTyper3 Taxonomic and typing characterization.

Once the pipeline is launched, the page generates a link to the Check analyses section, where the execution status can be monitored. The system notifies the user when the pipeline is successfully launched and when execution is completed.

Result folder

The Result folder can be browsed by clicking the link available within the analysis card, in the Result data section.

Results are organized by sample and analysis step under results > YEAR > CMP > STEP > DS-DATE_METHOD, where CMP identifies the sample, DS identifies the sequencing dataset, DATE is the execution timestamp, and METHOD identifies the tool. Each analysis folder contains:

  • meta: metadata, parameters, configuration files, and execution logs;
  • result: files produced by the analysis;
  • qc, where available: quality-control results in qc/result and their logs in qc/meta.

The main outputs are listed below. Folder paths are relative to results > YEAR > CMP; * represents the dataset and execution identifiers.

Analysis Folder Main outputs
Read filtering and QC 1PP_trimming/*_filtlong Filtered reads in result/*_filtlong.fastq.gz; NanoPlot HTML report and NanoStats text file in qc/result.
De novo assembly and QC 2AS_denovo/*_autocycler Draft assembly (.fasta) and assembly graph (.gfa) in result; Autocycler summary (.tsv) in meta; QUAST table in qc/result.
Assembly polishing and QC 2AS_mapping/*_medaka_polishing Polished assembly in result/*_medaka_polishing_denovo.fasta; selected model in meta/*_model.txt; QUAST table in qc/result.
Taxonomic classification 3TX_class/*_kraken2 Kraken2 report (*_kraken.tsv) and Krona table and HTML visualization in result.
AMR screening on reads 4AN_AMR/*_resfinder Resistance reports (.txt), sequence files (.fsa), and structured results (.json) in result.
Plasmid detection 4AN_AMR/*_plasmidfinder Summary (*_results.tsv), alignments, and sequence files in result.
AMR screening on assembly 4AN_AMR/*_amrfinderplus AMRFinderPlus report (.tsv) in result, for supported taxa.
MLST for other bacteria 4TY_MLST/*_mlst MLST reports (.csv and .tsv) in result.
Klebsiella characterization 3TX_species/*_kleborate, 4AN_AMR/*_kleborate, and 4TY_MLST/*_kleborate Species assignment, characterization reports (.tsv), and MLST results (.csv and .tsv) in the corresponding result folders.
Salmonella enterica serotyping 4TY_serotype/*_seqsero Serotype report (*_result.tsv) and extracted antigen alleles (.fasta) in result.
Escherichia coli serotyping 4TY_serotype/*_seq_typing Serotype reports (*.report_types.tab and *.report.txt) in result.
Bacillus cereus characterization 4TY_serotype/*_btyper3 BTyper3 final results in result.

The polished Medaka FASTA is the final assembly used for downstream characterization. The Autocycler draft assembly is also retained.

Data visualization

The NanoPlot HTML report can be opened in a browser to inspect filtered-read quality and length distributions. The Krona HTML report provides an interactive view of the taxonomic classification. QUAST tables summarize assembly quality before and after polishing.