getrefinedpeaks: Refine Peak Boundaries from Collapsed Significant Regions

Description Usage Arguments See Also Examples

Description

If peak refinement is desired after getsigwindows, the overlapping signficant windows above the peakconfidence threshold from getsigwindows() are merged. The SBC (overlapping read representaion) for these merged windows are calculated and exact peak boundaries are determined and outputted to outfile.peaks. Automates running of basecountimport() and then feeds resulting bpout file to peakbound().

Usage

1
2
3
getrefinedpeaks(winlist,basecountfile,bpout,peakout,twoBit,winSize,
    pWinSize=200,printFullOut=0,pquant=1,threshold=.01,peakconfidence=0.99,method='mixture',
    winGap=0,minscore=0)

Arguments

winlist

the path to an existing .winlist file containing the locations of the .wins files corresponding on the outputted files from getsignwindows

bpout

specify file name/path for temporary file that holds matrix of overlap information generated for peak refinement

peakout

specify file name/path for file that holds refined peaks

twobit

path to current build of human genome in .2bit format

winSize

window size, default=500bp

pWinSize

In the peak refinement step, reduce this parameter to get more sensitivity to detect local Maximums, default is 200. This may increase false positives

basecountfile

path to basecount track containing SBPC information for the entire genome, generated by basealigncount()

peakconfidence

posterior probability threshold for signfiicant windows if the mixture regression model is used

threshold

FDR threshold for signfiicant windows if the pscl method is used

printFullOut

specifies the file format ouputted from getsigwindows, where 1 correspondinds to output of full dataset with posterior enrichment probability results, 0 corresponds to only genomic coordinates and posterior probabilities

method

method used to generate files in winlist, either mixture (default) or pscl

pquant

In the peak refinement step, filters out local maximums whose height is lower than the 'pquant' quantile in the window. Use pquant=1 for selecting only the global max in a collapsed region, god for ChIP-seq datasets. Default is 1

winGap

Distance threshold in b to merge windows. Default is 0 (only adjacent or overlapping windows are merged)

minscore

minimum max height threshold for significant windows, filters out windows with max values below this point

See Also

save.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	   #FAIRE-seq with recommended parameters, no input.  
getrefinedpeaks(
   winlist='data/faire.winlist',
   bpout='data/faire.bpout',
   peakout='data/faire.peaks',
   twoBit='hg18.2bit',
   peakconfidence=.95,
   method='mixture', 
   printFullOut=1,
   pWinSize=200,
   pquant=1,
   winSize=250,
   basecountfile='data/faireGM12878rep1chr22.basecount',
   minscore=5
   )
   
          

sivarajankumar/zinba documentation built on May 29, 2019, 10:11 p.m.