Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/getHighConfSub.R
Classify genomic positions exhibiting a substitution based on the relative
substitution frequency (RSF) interval. The latter is returned by the
getExpInterval
function, but can be user-specified through visual
inspection of the posterior class probability returned by the same function.
1 2 | getHighConfSub(countTable, support, supportStart = NA, supportEnd =
NA, substitution = "TC")
|
countTable |
A GRanges object, corresponding to a count table as returned by the getAllSub function |
support |
List, consisting of two numeric slots defining the left and right boundaries (start and end values, respectively) of the RSF interval, as returned by the getExpInterval function. |
supportStart |
Numeric, if |
supportEnd |
Numeric, if |
substitution |
A character indicating which substitution is induced by the experimental procedure (e.g. 4-SU treatment - a standard in PAR-CLIP experiments - induces T to C transitions and hence substitution = 'TC' in this case.) |
a GRanges object containing high confidence substitutions, with strand-specific coverage, counts and RSF values as metadata.
In the example below, left and right boundaries were arbitrarily chosen as showcase.
Federico Comoglio and Cem Sievers
1 2 3 4 5 | filename <- system.file( "extdata", "example.bam", package = "wavClusteR" )
example <- readSortedBam( filename = filename )
countTable <- getAllSub( example, minCov = 10, cores = 1 )
highConfSub <- getHighConfSub( countTable, supportStart = 0.2, supportEnd = 0.7, substitution = "TC" )
highConfSub
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.