nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
533 stars 64 forks source link

Dorado duplex reads' mean quality are lower than simplex reads #1067

Open ErminZ opened 1 month ago

ErminZ commented 1 month ago

Possible reasons for duplex reads' quality are low

Hello, thank you for increasing the read quality! We always observe higher read mean quality on duplex than simplex reads, especially simplex paired reads. However, recently one sample has the opposite shown in the picture. Could you explain why duplex reads' quality is lower than simplex reads?

The mean quality of duplex reads is lower than simplex shown below:

image

Here are two duplex reads and their simplex paired reads examples:

image

Would you explain possible reasons why the duplex reads' quality is low? Please let me know if you have any questions. Thank you!

Sample information:

  1. PCR-targeted sequencing: two amplicons (500bp wild type and 2.2kb insertion into wild type);
  2. Hybridization to enrich the reads only contains the 1.7kb insertion;
  3. PCR again amplifies the enriched 2.2kb reads with the targeted insertion.
  4. The flow cell is overloaded due to the inaccurate read length evaluation before sequencing.

Run environment:

[info] > Duplex reads basecalled: 4,882,572 [info] > Duplex reads filtered: 510,211 Duplex rate: 49.04696% Basecalled @ Bases/s: 3.975039e+05


- Dataset to reproduce, if applicable (small subset of data to share as a pod5 to reproduce the issue):

## Logs

* Please provide output trace of dorado (run dorado with -v, or -vv on a small subset)
vellamike commented 1 month ago

Hello @ErminZ

I’m quite puzzled by the very low accuracy you’re seeing—it’s unexpected and strange, especially given that duplex reads typically outperform simplex. It’s unusual to see the opposite in this case. Are these Q scores predicted or aligned?

That being said, with your approach of sequencing duplex with amplicons, there’s no guarantee that the following strand will be the complement of the first one. Given that duplex relies on correctly pairing template and complement strands, this could lead to the issues you’re observing.

It probably makes more sense to use simplex for your application.

ErminZ commented 1 month ago

Thank you for the reply! It is very helpful.

Maybe only simplex reads are the best choice for PCR-targeted samples with >80% of reads being duplicates? Would you tell more about whether there are factors other than sequencing location, start/end time, and read sequences and length that influence the duplex paring? Thank you!

The Q scores are from the dorado summary function. I guess it is predicted?

malton-ont commented 1 month ago

@ErminZ,

Descriptions of the pairing criteria are provided here (although there appears to be an error in part 1 - the code actually uses 10000ms, and has an additional constraint that both reads must have a qscore >= 8):

// Determine whether 2 proposed reads form a duplex pair or not.
// The algorithm utilizes the following heuristics to make a decision -
// 1. Reads must be within 1000ms of each other, and the ratio of their
//    lengths must be at least 20%.
// 2. If the lengths are >98% similar, reads are at least 5KB, and time
//    delta is <100ms, consider them to be a pair.
// 3. If the early acceptance fails, then run minimap2 to generate overlap
//    coordinates. If there is only 1 hit from minimap2 mapping,
//    the mapping quality is high (>50), the overlap covers
//    most of the shorter read (80%), the overlap is at least 50 bp long,
//    one read maps to the reverse strand of the other, and the end
//    of the template is mapped to the beginning
//    of the complement read, then consider them a pair.