modkit icon indicating copy to clipboard operation
modkit copied to clipboard

modkit extract full and modkit extract calls

Open Flower9618 opened this issue 1 year ago • 5 comments

Hi, I would like to know the difference between "modkit extract full" and "modkit extract calls".

Flower9618 avatar Nov 06 '24 06:11 Flower9618

Hello @Flower9618,

The (new-ish) modkit extract calls produces the table that used to be modkit extract --read-calls <this_table>. In v0.4 we made this into a stand-alone command. Please find the on the extract commands here. Briefly, extract full produces a table translation of the values in the MM/ML tags. So for example, a read that has 5hmC and 5mC calls will have a probability for each in this output. On the other hand, extract calls will output the predicted modification state for each position in each read. Continuing with out example, there will only be a single record for 5hmC, 5mC, or canonical.

ArtRand avatar Nov 06 '24 21:11 ArtRand

Can you clarify which command is the equivalent of the old modkit extract please?

mattloose avatar Dec 11 '24 16:12 mattloose

@mattloose modkit extract full will produce the same default table as the versions prior to version 0.4, the documentation shows the schema of the two tables. If you were using --read-calls with an older version, you'll want modkit extract calls.

ArtRand avatar Dec 11 '24 22:12 ArtRand

if i want to extract 6mA methylation tgs ,which call i have to use ?

Reziya avatar Sep 20 '25 10:09 Reziya

Hello @Reziya,

$ modkit extract full $bam $extract_output

Will extract 6mA calls if they are in your data. You can quickly check with modkit modbam check-tags $bam --head 1000

ArtRand avatar Sep 22 '25 14:09 ArtRand