Creating sliding window for methylation data
1
0
Entering edit mode
23 days ago
ty.fu • 0

Hi,

I have some WGBS data in BED format (e.g., chr1 10470 10472 0.667 3 C:0.500:2,G:1.000:1) and I want to bin the data into fixed-size windows, such as 1 kb, and then apply smoothing similar to what BSmooth does. I tried to utilized BSmooth but it doesn’t seem to support outputting the window coordinates directly. I’d also like to ensure that each window contains enough data—ideally avoiding windows that are empty or have very few CpG sites.

Does anyone have any ideas on how to achieve this?

WGBS methylation • 648 views
ADD COMMENT
1
Entering edit mode
21 days ago

BEDOPS bedmap has windowing and statistics options: https://bedops.readthedocs.io/en/latest/content/reference/statistics/bedmap.html

You would use the window options to set your window size, and then specify statistics operations to calculate summary statistics over those windows. You can output the windows with summary statistics. The documentation goes through a clear example of this.

ADD COMMENT
0
Entering edit mode

Thanks for your reply. It’s a great tool, and I did end up using it in some way.

ADD REPLY
0
Entering edit mode

You're welcome and I'm glad it is useful.

ADD REPLY

Login before adding your answer.

Traffic: 1788 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6