cellcluster | R Documentation |
Perform Cell Clustering
cellcluster(
satac,
type = "reads",
peakOverlapMethod = "full",
genome = "hg19",
clunum = NULL,
perplexity = 30,
filtervar = TRUE,
datapath = NULL
)
satac |
If type='reads', satac should be a list of GRanges object of scATAC-seq reads. Each element corresponds to one single cell. The GRanges should be the middle point of the reads with length of 1 base pair. Use 'satacprocess' to preprocess raw reads. If type='peaks', satac should be a list of data frames of scATAC-seq peaks. For each data frame, first column is chromsome name, second column is start site, third column is end site, and fourth column is the number of reads of the peak. |
type |
Character variable of either 'reads' or 'peaks'. |
peakOverlapMethod |
Character variable of either 'full' or 'middle'. Only effective when type = 'peaks'. If peakOverlapMethod='full', then the full range of the peak will be used to find overlap with bins, and all bins overlapping with this peak will be assigned the read counts of this peak. If peakOverlapMethod='middle', only the middle base pair of the peak will be used to find overlap with bins. |
genome |
Character variable of either "hg19" or "mm10". |
clunum |
Numeric variable giving the number of clusters. If NULL the cluster number will be determined automatically |
perplexity |
Numeric variable specifying perplexity for tSNE. Reduce perplexity when sample size is small. |
filtervar |
If TRUE, filter out features with low variability. |
datapath |
Character variable of the path to the customized database (eg myfolder/database.rds). The database can be made using 'makedatabase' function. If not null, 'genome' is ignored. |
This function generates averaged signals for CRE clusters and cluster cells.
A list of three components: tsne results, clustering results and aggregated signal for CRE cluster.
Zhicheng Ji, Weiqiang Zhou, Wenpin Hou, Hongkai Ji* <whou10@jhu.edu>
celldata <- lapply(seq_len(50),function(i) {
pos <- sample(seq_len(1e9),50000)
GRanges(seqnames=sample(paste0("chr",seq_len(20)),50000,replace=TRUE),IRanges(start=pos,end=pos))
})
names(celldata) <- paste0('cell',seq_len(50))
cellcluster(celldata,type='reads',genome="hg19",filtervar=FALSE,perplexity=1,clunum=3) # reads as input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.