View source: R/snap-utilities.R
filterBins | R Documentation |
This function takes a snap obj as input and perform feature selection in the following manner: 1) calculate coverage of each genomic bin/feature; 2) log scale the coverage by log10(count + 1); 3) the log-nromal distribution is then converted into zscore; 4) bins with zscore beyond [low.threshold, high.threshold] are filtered;
filterBins(obj, low.threshold, high.threshold, mat)
obj |
A snap obj |
low.threshold |
Low cutoffs for the parameters (default is -2) |
high.threshold |
High cutoffs for the parameters (default is 2) |
mat |
Matrix to filter c("bmat", "pmat") |
Returns a snap obj
data(demo.sp); filterBins( obj=demo.sp, low.threshold=-2, high.threshold=2 );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.