Description Usage Arguments Details Value Author(s) Examples
View source: R/extractfeature.R
Extract features for certain genomic regions
1 | extractfeature(res, region, mode = "overlap", folder = NULL)
|
res |
Matrix outputted by SCATE. |
region |
Dataframe of genomic region. First column: chromosome name. Second column: start position. Third column: end position. |
mode |
Either 'overlap' or 'nearest'. If overlap, only bins that overlap with the regions of interest will be shown. If nearest, the nearest bin to each region will be shown. Order will be the same as the input genomic region. |
folder |
A character value specifying the location where the BED files will be stored. If not NULL, the signal and location of each bin will be saved as BED files in 'folder'. Each cluster has its own BED file, and the name of the BED file is the same as the cluster name. These BED files can be uploaded to UCSC genome browser for visualization. |
This function takes as input the recontructed matrix generated by SCATE and a list of genomic regions of interest by the user. It outputs a subset of matrix that overlaps or nearest to the given genomic regions of interest.
If foler is NULL, a subset of the input matrix. Otherwise nothing will be returned and the results will be saved to local folder.
Zhicheng Ji, Weiqiang Zhou, Wenpin Hou, Hongkai Ji* <whou10@jhu.edu>
1 2 3 | scateres <- data.frame(combine=seq_len(6))
rownames(scateres) <- paste0('chr1_',c(0:5)*200,'_',199+c(0:5)*200)
extractfeature(scateres,data.frame(seqnames='chr1',start=0,end=201))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.