Question: Please Explain Window Size and Step Size
0
gravatar for crcarroll
8 months ago by
crcarroll40
crcarroll40 wrote:

Hi,

In regards to a sliding window analysis, can someone explain and differentiate the concepts of "window size" and "step size"?

Thank you

sequencing mapping alignment • 853 views
ADD COMMENTlink modified 8 months ago by RamRS30k • written 8 months ago by crcarroll40
2
gravatar for RamRS
8 months ago by
RamRS30k
Baylor College of Medicine, Houston, TX
RamRS30k wrote:

A sliding window analysis has two components: sliding and window. "Window size" is the size of the window, which is the length of the sequence you're looking at each time in the analysis. "Step size" is the size of the "sliding" action, which is the length of sequence you move between each window.

For example, in the sequence "MARY HAD A LITTLE LAMB", if window size = 3 and step size = 5,

MARY HAD A LITTLE LAMB

MAR___________________ #window-1

12345HAD______________ #window-2

1234512345 LI_________ #window-3

123451234512345LE ____ #window-4

12345123451234512345MB #window-5
ADD COMMENTlink written 8 months ago by RamRS30k

Very clear explanation. Thank you very much for taking the time!

ADD REPLYlink written 8 months ago by crcarroll40
0
gravatar for Pierre Lindenbaum
8 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum130k wrote:
position=0;
while(position< chromosome_length) {
      do_something_between(position,position+window_size);
      position = position + step_size;
     }
ADD COMMENTlink written 8 months ago by Pierre Lindenbaum130k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1149 users visited in the last hour