forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateGeneActivityMatrix.Rd
42 lines (35 loc) · 1.3 KB
/
CreateGeneActivityMatrix.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{CreateGeneActivityMatrix}
\alias{CreateGeneActivityMatrix}
\title{Convert a peak matrix to a gene activity matrix}
\usage{
CreateGeneActivityMatrix(
peak.matrix,
annotation.file,
seq.levels = c(1:22, "X", "Y"),
include.body = TRUE,
upstream = 2000,
downstream = 0,
keep.sparse = FALSE,
verbose = TRUE
)
}
\arguments{
\item{peak.matrix}{Matrix of peak counts}
\item{annotation.file}{Path to GTF annotation file}
\item{seq.levels}{Which seqlevels to keep (corresponds to chromosomes usually)}
\item{include.body}{Include the gene body?}
\item{upstream}{Number of bases upstream to consider}
\item{downstream}{Number of bases downstream to consider}
\item{keep.sparse}{Leave the matrix as a sparse matrix. Setting this option to
TRUE will take much longer but will use less memory. This can be useful if
you have a very large matrix that cannot fit into memory when converted to
a dense form.}
\item{verbose}{Print progress/messages}
}
\description{
This function will take in a peak matrix and an annotation file (gtf) and collapse the peak
matrix to a gene activity matrix. It makes the simplifying assumption that all counts in the gene
body plus X kb up and or downstream should be attributed to that gene.
}