Skip to content

Using modkit pileup and --modified-bases #562

@danammak

Description

@danammak

Hi Team,

modkit pileup
--cpg
--combine-strands
--modified-bases C:h
--bgzf
--ref ${ref}
--threads ${threads}
--log-filepath "$logfile"
"$bam_file"
"$output_pileup"

I used the above options to get pileup data purely for only 5hmC using modkit latest version 0.6.0. But, I see that the output file has both 'm' and 'h'. The earlier "--ignore" option was good to avoid this.
chr1 10468 10469 h 6 . 10468 10469 255,0,0 6 33.33 2 4 0 0 0 3 11
chr1 10468 10469 m 6 . 10468 10469 255,0,0 6 0.00 0 4 2 0 0 3 11
chr1 10470 10471 h 4 . 10470 10471 255,0,0 4 25.00 1 3 0 0 3 3 10
chr1 10470 10471 m 4 . 10470 10471 255,0,0 4 0.00 0 3 1 0 3 3 10
chr1 10488 10489 h 1 . 10488 10489 255,0,0 1 0.00 0 1 0 1 0 0 18
chr1 10488 10489 m 1 . 10488 10489 255,0,0 1 0.00 0 1 0 1 0 0 18
chr1 10496 10497 h 5 . 10496 10497 255,0,0 5 20.00 1 4 0 0 1 0 14
chr1 10496 10497 m 5 . 10496 10497 255,0,0 5 0.00 0 4 1 0 1 0 14
chr1 10524 10525 h 1 . 10524 10525 255,0,0 1 0.00 0 1 0 0 1 0 18
chr1 10524 10525 m 1 . 10524 10525 255,0,0 1 0.00 0 1 0 0 1 0 18

Below are the modbam summaries for both 5mC and 5hmC:

  1. For 5mC modbam:

bases C

total_reads_used 9085

count_reads_C 9085

pass_threshold_C 0.80859375

base code pass_count pass_frac all_count all_frac
C - 249191 0.52520305 281094 0.53459847
C m 225275 0.47479692 244710 0.46540156
C h 0 0 0 0

  1. For 5hmC modbam:

bases C

total_reads_used 9085

count_reads_C 9085

pass_threshold_C 0.78125

base code pass_count pass_frac all_count all_frac
C - 259450 0.9509585 282582 0.9333439
C h 13380 0.04904153 20181 0.0666561
C m 0 0 0 0

Below are the options used for generating 5mC and 5hmC only modbams.

  1. For 5mC:
    modkit adjust-mods -t 64 --filter-probs --mod-threshold h:1.1 "$bam_file" "$output_bam"

  2. For 5hmC:
    modkit adjust-mods -t 64 --filter-probs --mod-threshold m:1.1 "$bam_file" "$output_bam"

I did not use --ignore in modkit adjust-mods because I saw a discrepancy in my results, and so came up with the idea to use m:1.1 or h:1.1, which gave logical results when I ran modkit summary as shown above.

Could you please suggest with modkit pileup for 5hmC using version 0.6.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuild-availablecustom build produced for fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions