-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hi Modkit maintainers,
First of all, thank you very much for developing and maintaining modkit—it’s been extremely helpful for my analysis.
modkit pileup \
./mm10_sorted.bam \
./mm10.bed.gz \
--modified-bases 5mC 5hmC 6mA \
-t 8\
--reference ./mm10.fa \
--log ./mm10_log.txt \
--bgzf \
Everything seems OK, but when I run the following command:
modkit dmr pair \
-a ./A1_mm10.bed.gz \
-a ./A2_mm10.bed.gz \
-b ./B1_mm10.bed.gz \
-b ./B2_mm10.bed.gz \
-o ./B_vs_A_singlesite_dmr_C.bed \
--segment ./B_vs_A_coarse-grained_segement_dmr_C.bed \
--ref ./mm10.fa \
--base C \
--threads 64 \
--log-filepath ./B_vs_A_singlesite_dmr_C.log
"valid coverage is not equal to the sum of canonical and modified counts" came up like this:
reading reference FASTA at "./mm10.fa"
66 common sequence(s) between FASTA and both samples
running single-site analysis
using default prior, Beta(α: 0.55, β: 0.55)
estimating max coverages from data
sampled 44386636 a records and 44395324 b records, calculating max coverages for 95th percentile
calculated max coverage for a: 21 and b: 21
running with replicates and matched samples
batch failed: invalid data, valid coverage (346) is not equal to the sum of canonical and modified counts (65882), [BedMethylLine { chrom: "chr9", interval: Interval { start: 3026160, stop: 3026161, val: () }, raw_mod_code: Code('h'), strand: Positive, count_methylated: 1, valid_coverage: 346, count_canonical: 65180, count_other: 701, count_delete: 18264, count_fail: 3550, count_diff: 2477, count_nocall: 0 }, BedMethylLine { chrom: "chr9", interval: Interval { start: 3026160, stop: 3026161, val: () }, raw_mod_code: Code('m'), strand: Positive, count_methylated: 701, valid_coverage: 346, count_canonical: 65180, count_other: 1, count_delete: 18264, count_fail: 3550, count_diff: 2477, count_nocall: 0 }] chrom chr9 starting at 3026160, ending at 3026161, stopping
failed to send on channel, sending on a disconnected channel
encountered error whilst processing, stopping
8695 batches processed
Error! invalid-bedmethyl-data
When I check the log file, I found the "invalid data" Error Only occured in chrUn_JH584304 and chr9.
Some additional information:
- I haven't filtered bedMethyl files in any way.
- I'm using the newest version (0.6.0) of Modkit.
- There are 3 types of modification in my modbam files: 5mC, 5hmC, 6mA.
- My modbam files were derived from Dorado align command with mm10 as reference,which is the same as the reference used in modkit.
Thanks again for your time and for all the work you’ve put into Modkit!
Best regards,
Nathaneil