a b/man/bipartite_peaks2genes.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/bipartites.R
3
\name{bipartite_peaks2genes}
4
\alias{bipartite_peaks2genes}
5
\title{Compute links between DNA regions and genenames}
6
\usage{
7
bipartite_peaks2genes(
8
  hummus_object,
9
  gene_assay = "RNA",
10
  peak_assay = "peaks",
11
  gene_multiplex_name = NULL,
12
  peak_multiplex_name = NULL,
13
  peak_to_gene_method = "Signac",
14
  upstream = 500,
15
  downstream = 500,
16
  only_tss = TRUE,
17
  store_network = FALSE,
18
  output_file = NULL,
19
  bipartite_name = "atac_rna"
20
)
21
}
22
\arguments{
23
\item{hummus_object}{(hummus_object) - Hummus object.}
24
25
\item{gene_assay}{(character) - Name of assay containing the gene expression
26
data. Default: "RNA".}
27
28
\item{peak_assay}{(character) - Name of the assay containing the DNA regions
29
(ATAC peaks). Default: "peaks".}
30
31
\item{gene_multiplex_name}{(character) - Name of the multiplex containing the
32
genes.
33
If NULL, the name of the gene assay is used.}
34
35
\item{peak_multiplex_name}{(character) - Name of the multiplex containing the
36
DNA regions (ATAC peaks). If NULL, the name of the peak assay is used.}
37
38
\item{peak_to_gene_method}{(character) - Method to use to compute the links
39
between peaks and genes. Default: "Signac".
40
\itemize{
41
\item \code{'Signac'} - Use Signac::Extend to extend genes.
42
\item \code{'GREAT'} - Not implemented yet.
43
}}
44
45
\item{upstream}{(int) - Upstream distance from TSS
46
to consider as potential promoter.}
47
48
\item{downstream}{(int) - Downstream distance from TSS
49
to consider as potential promoter.}
50
51
\item{only_tss}{(logical) - If TRUE, only TSS will be considered.}
52
53
\item{store_network}{(bool) - Save the bipartite directly
54
(\code{TRUE}, default) or return without saving on disk (\code{FALSE}).}
55
56
\item{output_file}{(character) - Name of the output_file
57
(if store_bipartite == \code{TRUE}). Default: NULL.}
58
59
\item{bipartite_name}{(character) - Name of bipartite. Default: "atac_rna".}
60
61
\item{verbose}{(integer) Display function messages.
62
Set to 0 for no message displayed, >= 1 for more details. Default: 1.}
63
}
64
\value{
65
hummus_object (hummus_object) - Hummus object w/ atac-rna bipartite
66
added to the multilayer slot
67
}
68
\description{
69
Compute and add bipartite between DNA regions and genenames to hummus object.
70
Links are computed based on the distance between peaks and gene's TSS
71
location from gene.range annotations.
72
Call find_peaks_near_genes function, that can use different methods.
73
}
74
\examples{
75
hummus <- bipartite_peaks2genes(
76
                       hummus_object = hummus,
77
                       gene_assay = "RNA",
78
                       peak_assay = "peaks",
79
                       gene_multiplex_name = "RNA",
80
                       peak_multiplex_name = "peaks",
81
                       peak_to_gene_method = "Signac",
82
                       upstream = 500,
83
                       downstream = 500,
84
                       only_tss = TRUE,
85
                       store_network = FALSE,
86
                       bipartite_name = "atac_rna")
87
}