Hi,
I'm using version spp_1.14.
I'm trying to understand the function write.narrowpeak.binding.
The code is as follows:
bp <- add.broad.peak.regions(chip.data, input.data, bp, window.size = 1000, z.thr = 3)
Write out determined binding peaks using narrowPeak format
write.narrowpeak.binding(bp, paste0(outfile,".narrowPeak"))
Does the function write.narrowpeak.binding filters some of the broad peaks? as called from the previous function add.broad.peak.regions?
Another question is could you please give me the header names of the output file for narrowPeak
I have 10 columns
str(narrowpeaks)
'data.frame': 123317 obs. of 10 variables:
$ V1 : Factor w/ 89 levels "chr1","chr1_gl000191_random",..: 66 48 66 66 66 48 66 66 66 66 ...
$ V2 : int 7 32797 7 7 7 32797 7 7 7 7 ...
$ V3 : int 15981 127412 15981 15981 15981 127412 15981 15981 15981 15981 ...
$ V4 : Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V5 : int 0 0 0 0 0 0 0 0 0 0 ...
$ V6 : Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V7 : num 2690 2072 2033 2004 2003 ...
$ V8 : int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
$ V9 : num 4.88 4.88 4.88 4.88 4.88 ...
$ V10: int 14338 50301 5946 13411 1113 55228 6570 7004 14754 136 ...
in comparison to 9 columns in the broadPeaks (using: write.broadpeak.info(broad.clusters, paste0(outfile,".broadPeak"))
str(broadpeaks)
'data.frame': 45304 obs. of 9 variables:
$ V1: Factor w/ 80 levels "chr1","chr1_gl000191_random",..: 18 37 26 79 18 25 22 34 35 33 ...
$ V2: int 48109886 3054837 48342560 1709365 289562 184278556 46705634 4101231 1201968 2221121 ...
$ V3: int 48114823 3058716 48345231 1712527 292422 184281576 46709671 4104549 1204422 2225464 ...
$ V4: Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V5: int 0 0 0 0 0 0 0 0 0 0 ...
$ V6: Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V7: num 8.49 8.49 8.32 8.31 8.29 ...
$ V8: int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
$ V9: int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
I'm interested to know which columns correspond to start and end position, I assumed it will be 2 and 3 for both cases, but now I think it is not the case.
Hi,
I'm using version spp_1.14.
I'm trying to understand the function write.narrowpeak.binding.
The code is as follows:
bp <- add.broad.peak.regions(chip.data, input.data, bp, window.size = 1000, z.thr = 3)
Write out determined binding peaks using narrowPeak format
write.narrowpeak.binding(bp, paste0(outfile,".narrowPeak"))
Does the function write.narrowpeak.binding filters some of the broad peaks? as called from the previous function add.broad.peak.regions?
Another question is could you please give me the header names of the output file for narrowPeak
I have 10 columns
str(narrowpeaks)
'data.frame': 123317 obs. of 10 variables:
$ V1 : Factor w/ 89 levels "chr1","chr1_gl000191_random",..: 66 48 66 66 66 48 66 66 66 66 ...
$ V2 : int 7 32797 7 7 7 32797 7 7 7 7 ...
$ V3 : int 15981 127412 15981 15981 15981 127412 15981 15981 15981 15981 ...
$ V4 : Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V5 : int 0 0 0 0 0 0 0 0 0 0 ...
$ V6 : Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V7 : num 2690 2072 2033 2004 2003 ...
$ V8 : int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
$ V9 : num 4.88 4.88 4.88 4.88 4.88 ...
$ V10: int 14338 50301 5946 13411 1113 55228 6570 7004 14754 136 ...
in comparison to 9 columns in the broadPeaks (using: write.broadpeak.info(broad.clusters, paste0(outfile,".broadPeak"))
str(broadpeaks)
'data.frame': 45304 obs. of 9 variables:
$ V1: Factor w/ 80 levels "chr1","chr1_gl000191_random",..: 18 37 26 79 18 25 22 34 35 33 ...
$ V2: int 48109886 3054837 48342560 1709365 289562 184278556 46705634 4101231 1201968 2221121 ...
$ V3: int 48114823 3058716 48345231 1712527 292422 184281576 46709671 4104549 1204422 2225464 ...
$ V4: Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V5: int 0 0 0 0 0 0 0 0 0 0 ...
$ V6: Factor w/ 1 level ".": 1 1 1 1 1 1 1 1 1 1 ...
$ V7: num 8.49 8.49 8.32 8.31 8.29 ...
$ V8: int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
$ V9: int -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
I'm interested to know which columns correspond to start and end position, I assumed it will be 2 and 3 for both cases, but now I think it is not the case.