Change window size in wiggle file.
1
0
Entering edit mode
18 months ago
tsomakiank ▴ 40

Hi there! I got some bedgraph files from macs2 and converted them to wiggle and bigwig using scripts from UCSC. As far as I can understand changing the window size or binning is a way of lowering the resolution of the peaks from 1 bp to peaks coming from a sum of larger regions (correct me if I am wrong). My question is how i can change the window size of my files. Thanks in advance.

wiggle window_size • 827 views
ADD COMMENT
0
Entering edit mode
18 months ago
Marco Pannone ▴ 790

Yes correct, your defined bin size will indicate how many adjacent bases will be averaged in one single value when producing your coverage file.

To my knowledge, the only way you can change the bin size is when you produce the coverage file (.bigWig format, for example) starting from a .bam file. This can be easily done tuning the --binSize argument in bamCoverage.

If you do not have access to the .bam files, I do not think you can do that. You can't generate the .bam files starting from a coverage file.

ADD COMMENT
0
Entering edit mode

Thanks for replying Marco. Is there any way I can do that to peak file formats and not read alignments?

ADD REPLY
0
Entering edit mode

No, you need the .bam files, unfortunately.

ADD REPLY
0
Entering edit mode

Oook, got it! Thanks for the help Marco!

ADD REPLY

Login before adding your answer.

Traffic: 1898 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