I am trying to analyse some biological data within R. I have a data frame that contains a window for positions on a dna sequence that I want to analyse. For example, 237-1437. I have a count of files which contains the position and a count. For each window, I want to analyse each position in the count file and look for significant peaks in counts. Does anyone know how to do this?
The count file looks like this and is within a data frame labelled df2:
V1 V2 V3
gene 1 6
gene 2 0
gene 3 0
gene 4 10
....
The data frame which contains the window looks like this and is labelled df:
seqnames start end strand window_end
gene 65 1237 + 1437
gene 1262 2134 + 2334
gene 2178 4511 + 4711
I want the output to produce a list of significant peaks.
