-
Notifications
You must be signed in to change notification settings - Fork 8
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
DMR pair fails with equal number of replicates #165
Comments
Hello @dietvin, Unfortunately this is a stale assert that I missed. If you have a different number of |
Hello @dietvin, I've started working on a fix for this. In the mean time, I've attached a build to this thread that should at least unblock your work. The panic comes from an assert firing where the code requires that you have modification counts for all of your samples at a given position. This way, you can calculate a MAP-based p-value and an effect size for all of the "matched pairs" of samples. When one sample doesn't have counts at a position (due to low coverage) the assert fires and you have a problem. The build will still report the per-replicate p-values and per-replicate effect sizes, but the entry will be "-" when at least 1 sample doesn't have counts at that position. The production solution is to calculate the per-replicate statistics when possible, but skip pairs where one member of the pair doesn't have data. I'm working on that next. |
Thank you for the quick response. With the build you provided it works as described. Much appreciated! |
Bug: don't panic when samples are matched but counts cannot be found for all samples. (GH-165) See merge request machine-learning/modkit!173
Hello everybody,
using modkit v.0.2.7, I'm currently trying to run DMR pair with three replicates for each sample. I used the following command:
This command fails with the following output:
From what I saw in the output, it consists only of the "assertion `left == right` failed" message. I can provide the entire output in case it is of use here.
Interestingly, this error happens only if the number of replicates is equal between the samples. Once the number of replicates differ between the samples it works as expected. Here it doesn't matter if I remove a replicate from sample A or B. For example removing the third replicate from sample B:
This produces the following output:
I used the following function to create the bed files used as input here:
Please let me know if you need more information. Any help is appreciated.
Thanks in advance!
Vincent
The text was updated successfully, but these errors were encountered: