Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option: --keepSingleton #164

Open
prairie-guy opened this issue Dec 30, 2024 · 1 comment
Open

Option: --keepSingleton #164

prairie-guy opened this issue Dec 30, 2024 · 1 comment

Comments

@prairie-guy
Copy link

First thank you for creating such a useful tool. The speed is awesome! Additionally the flexibility to create C or CpG contexts is very useful.

I am looking to use MD to replace another tool in our pipeline. Before doing so, I am validating the results between the two. At least one issue seems to be associated with how to deal with singletons. For a toy set of data, the only difference between the two tools is a read that has flag 8 set. From your docs, it appears that these are dropped, which is different than the behavior of the other tool.

I had assumed that including the --keepSingleton would solve this, but for me it had no impact. It is still does not seem to report the singleton correctly.

Here is the relevant record from the bam file. The quality scores look good. Perhaps it is being filtered out for another reason.

I would very much appreciate your advice as I would like to validate MD for our pipeline as I have a number of large sequencing files to analyze.

Thanks in advance.


VH01331:238:AAG7FHKM5:1:2610:20182:14953_AACAT  89      17      16497515        60      56M     =       16497515        0       AACCTCCATCTCCCGAAATCAAACGATTCTCCTACCTCAACCTCCCTAATAACTAA      IIIIIIIIIIIIIIIIIIIIIIIIIIIII9IIIIIIIIIIIIIIIIIIIIIIIIII        AS:i:0  NH:i:1  XM:i:0  NM:i:0  MD:Z:16G5G10G5G8G2G2G0G0      YZ:A:-  Yf:i:8  Zf:i:2  XN:i:0  XO:i:0  XG:i:0

@dpryan79
Copy link
Owner

Your expected behavior is exactly what MethylDackel is doing with --keepSingleton. For reference, the actual code for this is here:

if(!ldata->config->keepSingleton && (b->core.flag & 0x9) == 0x9) continue; //Singleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants