Skip to content

Long reads (ONT and PacBio)

Run and read checks, exact coverage, structural variants, copy number, methylation with expression, isoforms, assemblies, phasing, benchmarks and a genome browser, from the files your long-read pipeline already made, or from raw reads Nexmetry runs the pipeline on for you.

On this page

The Long-read page starts from what EPI2ME, SMRT Link, nf-core or your own pipeline wrote: reads, BAM files, VCFs, depth files and run traces. Files your pipeline made are not aligned again: the page measures, compares, draws and reports. Without a pipeline of your own, upload the raw reads and Nexmetry runs it for you (Run the pipeline for me, below).

Full narrated demonstration on the examples: reads and run, alignment, structural variants, copy number, methylation with expression, transcripts and sashimi plots, assembly, phasing and repeats, benchmarks, and the genome browser, where a split read lists its other parts.

Run the pipeline for me (Team and Enterprise)#

No pipeline of your own? Upload the raw reads and Nexmetry runs the pipeline on a separate machine: minimap2 alignment, mosdepth coverage, Sniffles2 structural variants and modkit methylation, and if you choose them Clair3 small variants and IsoQuant transcripts. The outputs become files of the project, and the steps below fill in by themselves.

  1. Open the boxOn the Your files step, choose the project in Project; the box Run the pipeline for me is just below it. Click its title to open it: the first line shows the machine-hours your plan has used this month.
  2. Upload the readsFASTQ (gzipped or not) or an unaligned BAM, several files at once if you like; they go straight to storage, whatever their size. Files with the same sample name are one sample, for example several flow cells.
  3. Choose the genomeThe platform (ONT R10.4.1, ONT R9.4.1 or PacBio HiFi), then the species, from about 970 in Ensembl, or a reference FASTA of the project with its annotation.
  4. Choose what to runAlignment always; coverage, structural variants and methylation unless you untick them; small variants and transcripts if you tick them. Methylation needs reads basecalled with modification calling (MM and ML tags); transcripts need an annotation.
  5. Check the estimate and startThe box shows the machine-hours, the cost at spot prices and what is left of this month's hours; the first run of a species also downloads and indexes its genome. Start the run: a machine starts within about two minutes, and each step lights up as it runs, with the time left.
  6. Read the resultsWhen the run is done its files are in the project, the steps below are filled in, and the machine shuts itself down. You can leave the page while it runs and come back to it.

What to bring#

  • Reads: FASTQ (gzipped or not), an unaligned or aligned BAM, or the ONT sequencing_summary.txt.
  • Alignment: a BAM from minimap2, pbmm2 or Dorado, with its .bai uploaded beside it for the browser.
  • Coverage and copy number: mosdepth's global.dist.txt and regions.bed.gz, or one table of windows with a depth column per sample.
  • Variants: the VCF of Sniffles2, cuteSV, pbsv, SVIM or DeBreak; small-variant VCFs and BED files for benchmarks.
  • Run time: Nextflow trace files, or a table of steps with their hours, CPUs, memory and input size.
  • Methylation: one modkit pileup bedMethyl per sample (5mC calls from Dorado or PacBio; Bismark coverage files are read too), with gene models, and if you have them a differential expression table and gene counts per sample.
  • Transcripts: a transcript count table from IsoQuant, FLAIR or Bambu (a SQANTI structural_category column marks novel isoforms), spliced BAMs with their .bai for sashimi plots, and a second quantification to compare.
  • Assembly: assembly FASTAs, BUSCO short summaries, Merqury outputs, the read k-mer histogram, and minimap2 PAF alignments of each assembly to a reference.
  • Phasing and repeats: a phased VCF from WhatsHap, HiPhase or LongPhase, and the VCF of TRGT.

The steps#

  1. Reads and runRead N50 and N90, length and quality distributions, length against quality, yield kept by a length filter, yield and N50 over the run, pass and fail, barcode balance; several runs side by side.
  2. Alignment and coveragePrimary, supplementary and unmapped records, MAPQ, identity, substitutions, insertions and deletions per 100 bases, and the exact share of the genome at each depth.
  3. Structural variantsEvery event on an ideogram (with G-bands for hg38), click one for its reads, breakpoint precision and genes; size spectrum, burden per sample, recurrence, and two callers compared.
  4. Copy numberDepth ratios segmented by PELT, gains and losses with the genes they hold, allele-specific copies from heterozygous SNPs, and regions without heterozygosity.
  5. MethylationPromoters, gene bodies and windows compared between two groups with a quasi-binomial model and an F test (as methylKit), DMRs from adjacent windows, a heatmap and a volcano, every CpG of a region, and, with expression, promoter change against fold change (a starburst) and each gene's correlation across samples.
  6. TranscriptsDifferential transcript usage between groups, isoform switches with an alluvial plot of known and novel isoforms, each gene's transcripts with their exons, sashimi plots of coverage and junctions from the BAMs, and two quantifications compared.
  7. AssemblyContiguity (N50, L50, NG50 and the Nx curve), BUSCO completeness, Merqury quality and copy-number spectra, genome size and heterozygosity from the read k-mers, and a dot plot against the reference that flags contigs joined across chromosomes.
  8. Phasing and repeatsPhase blocks and their N50 per sample along the genome, and tandem-repeat lengths from TRGT with the alleles far longer than usual at their locus.
  9. BenchmarksPrecision, recall and F1 with Wilson intervals against a truth set, by type, size, region and depth; long against short reads; CPU-hours, memory, cost and scaling.
  10. Genome browserigv.js on your project's files, read one region at a time: each read with its mismatches, indels, clipping and split parts, coloured by strand, haplotype or base modification.

Figures for a paper#

  • Reads and run: yield and read N50 of every run side by side, read quality over the run with its quartiles, translocation speed, the flow cell's activity channel by channel, and read lengths per barcode.
  • Alignment: mapping quality by class, a trend through identity against read length, and how evenly the reads cover the genome (Lorenz curve, Gini coefficient and Picard's fold-80 penalty).
  • Structural variants: the genome as a circle with every event and the breakends joined across it, the samples' genotype PCA (as R prcomp) and the share of events each pair of samples has in common.
  • Copy number and benchmarks: the share of samples with a gain or a loss along the genome, and the F1 of every callset in every stratum.
  • Methylation, transcripts and assembly: methylation along the average gene, the samples by PCA and by correlation, transcript classes per sample, isoforms used per gene, and a snail plot of each assembly (as BlobToolKit draws it).
  • Run time: where the compute goes (CPU-hours against memory, sized by cost), and each step's fitted power law on the scaling plot.
  • Every chart fits its data: empty classes are left out, axes cover where the values are, long names wrap beside their bars, and a handful of events is listed rather than drawn as a sparse histogram. Identifiers such as sample and process names keep their spelling in the exported report.

How the numbers are made#

  • Read N50 is the length at which reads that long or longer hold half of all bases; read quality is −10·log10 of the mean error per base, as NanoPlot reports it.
  • The BAM is read without htslib and checked record by record against R Rsamtools; the depth distribution matches GenomicRanges coverage base for base.
  • Two SV callsets are matched as Truvari does: same type, breakpoints within 500 bp, size similarity at least 0.7, one to one.
  • Copy-number segments are identical to R changepoint (PELT); intervals match binom; the GC correction is R's lowess.
  • Methylation and transcript-usage tests match R glm (family quasibinomial) with anova(test = "F"); the false discovery rate is Benjamini–Hochberg as p.adjust, and correlations match cor.test.
  • Sashimi coverage and junctions match R GenomicAlignments coverage() and summarizeJunctions() base for base.
Something missing?

Have a question these docs don’t answer? Email support@nexmetry.org and we’ll add a guide.