Closed linh35-rss closed 3 years ago
Hi @linh35-rss,
Thanks a lot for spotting this, it was indeed a small unintended behavior in the code. I fixed it in the most recent version available here, please feel free to try it and to report any further unexpected behavior.
Thanks again,
Michael
Thank you very much, Michael! Didn't realize it's already fixed in the new version. You're awesome!
Hi Michael,
Thanks for developing this package.
I have some questions about the expected behavior of the function
restrict
. Based on the paper and the comment in the code, I thought therestrict
would return a region <= 50bp (default window size) that covers the CpG site of interest.https://github.com/MPIIComputationalEpigenetics/WSHPackage/blob/93e0cb6041ed08c6cc8d6cd5cee0c9e5e8e21d44/R/calculate_scores.R#L95-L106
For example, bellow is the expected behavior. It returns a region [80, 130] that covers a 50bp region.
However, the example bellow returns a region [50, 150] of 100bp. Is this expected?
Another related question. In the example bellow, the
restrict
returns a 50bp region [80, 130]. Do you think returning the region [90, 135] could be better since it will cover more sites?Would love to hear your thoughts. Thank you very much!