Can You Mix Dorado Versions? The Impact of v5.0.0 Polishing with v5.2.0 Basecalling on Methylation Calling (Data_Tam_Methylation_19606WT_adeAB_adeIJ_craA)

Short Answer: No, this will not cause serious inaccuracy.

The mismatch between your polishing model (v5.0.0) and your basecalling/modification model (v5.2.0) is not a serious problem for your methylation analysis. Here’s why:


Why the Mismatch Doesn’t Matter Much

1. Modification calling is signal-based, not reference-based

The methylation calls (6mA, 4mC, 5mC) are made by comparing the raw nanopore electrical signal to the expected signal for each base context. This happens at the signal level, independent of the reference genome sequence.

Raw signal → Modification model (v5.2.0) → Modification call
                                              ↓
Reference genome → Alignment → Position assignment

The reference genome is only used for alignment (determining where each read maps), not for calling the modifications.

2. Polishing model affects genome accuracy, not modification accuracy

Aspect Affected by polishing model?
Genome sequence accuracy (SNPs/indels) ✅ Yes
Modification calling accuracy ❌ No (signal-based)
Read alignment accuracy ⚠️ Slightly (if polish errors cause misalignment)

If your genome was polished with v5.0.0 instead of v5.2.0, you might have:

  • A few more residual base errors (SNPs/indels) in the genome
  • Slightly lower mapping quality in those specific regions
  • But the modification calls themselves will still be accurate

3. The effect is minimal in practice

Polished genomes are typically >99.9% accurate regardless of whether you used v5.0.0 or v5.2.0. The difference between these versions is small (maybe a few hundred base errors across a ~5 Mb genome), and these errors:

  • Are randomly distributed
  • Don’t systematically bias modification calls
  • Are unlikely to cause widespread misalignment

What You Should Do

Option A: Do nothing (Recommended)

Your current results are fine. The modification landscape will be accurate. Just note in your methods that:

  • Genome polishing: dna_r10.4.1_e8.2_400bps_hac@v5.0.0
  • Basecalling/modification calling: dna_r10.4.1_e8.2_400bps_hac@v5.2.0

Option B: Re-polish with v5.2.0 (If you want maximum consistency)

If you want to be extra careful, you can re-run the polishing step with the v5.2.0 model:

# Example for Medaka polishing with v5.2.0
medaka_consensus -i reads.fastq -d draft_assembly.fasta -o polished_v5.2.0 -m r1041_e82_400bps_hac_v5.2.0

Then re-run your alignment and modification calling with the new polished genome. But this is optional and unlikely to change your biological conclusions.


Summary

Concern Severity
Modification calling accuracy ✅ Not affected (signal-based)
Alignment accuracy ⚠️ Minimal impact (polish errors are rare)
Biological conclusions ✅ Safe

Bottom line: Your methylation results are reliable. The model version mismatch is a minor technical detail, not a serious accuracy problem.



Explanation the process of split_pod5.sh

理解基本正确,但在具体数字分配上有一点小偏差。让我详细解释一下:

✅ 正确的部分

  1. 文件是完整复制的:每个 .pod5 文件都是完整地被复制到 rep1rep2,不会被切割成两半。
  2. 随机分配:通过 shuf -e 命令,41 个文件会被完全随机打乱后再分配。
  3. 大致对半分:由于 41 是奇数,两个 replicate 的数量会相差 1 个。

⚠️ 需要修正的部分

根据脚本的逻辑:

MID=$((TOTAL / 2))  # 41 / 2 = 20 (bash 整数除法向下取整)

for i in "${!SHUFFLED[@]}"; do
    if [ "$i" -lt "$MID" ]; then      # i < 20 → 索引 0~19 (共 20 个)
        cp → rep1
    else                               # i >= 20 → 索引 20~40 (共 21 个)
        cp → rep2
    fi
done
所以实际的分配是: Replicate 文件数量 索引范围
rep1 20 个 0 ~ 19
rep2 21 个 20 ~ 40

也就是说,rep2 会比 rep1 多 1 个文件(当总数为奇数时),而不是您说的 rep1 有 21 个。

📊 通用规律

总文件数 rep1 文件数 rep2 文件数
偶数 (如 40) 20 20
奇数 (如 41) 20 21
奇数 (如 43) 21 22

公式:

  • rep1 = floor(TOTAL / 2)
  • rep2 = TOTAL - floor(TOTAL / 2) = ceil(TOTAL / 2)

💡 这种差异会影响分析吗?

完全不会。在下游的甲基化分析中(如 modkit):

  • rep1rep2 的 reads 数量只差 1 个文件(约占总 reads 的 2-3%)
  • 这种微小的差异在统计学上完全可以忽略
  • 工具会基于每个 replicate 中实际的 reads 数量进行归一化处理

所以您的核心理解是对的:41 个完整的 pod5 文件被随机分成两组,一组 20 个,另一组 21 个,作为两个伪重复进行后续分析。

Leave a Reply

Your email address will not be published. Required fields are marked *