-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathmerge_results.Rd
65 lines (55 loc) · 1.89 KB
/
merge_results.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merge_results.R
\name{merge_results}
\alias{merge_results}
\title{Gather enrichment results}
\usage{
merge_results(
MAGMA_results,
level = 1,
dataset_name = NULL,
species = "mouse",
filetype = "ctAssocMerged",
q_thresh = NULL,
method = "fdr",
save_dir = tempdir(),
verbose = TRUE
)
}
\arguments{
\item{MAGMA_results}{The output of
\link[MAGMA.Celltyping]{celltype_associations_pipeline}.}
\item{level}{Which level in the CellTypeDataset (CTD) to show results for.}
\item{dataset_name}{[Optional] Name of the CellTypeDataset (CTD).}
\item{species}{Species that the CellTypeDataset (CTD) came from.}
\item{filetype}{Type of analysis to gather the results of.
These correspond to the modes of data analysis in
\link[MAGMA.Celltyping]{celltype_associations_pipeline}:
\itemize{
\item{\code{"ctAssocsLinear"} : }{Linear mode results.}
\item{\code{"ctAssocsTop"} : }{Top 10\% mode results.}
\item{\code{"ctAssocMerged"} : }{Merged linear and top 10\% results.}
\item{\code{"ctCondAssocs"} : }{Conditional results.}
}
\emph{Note:} Only those analyses that were actually run in
\link[MAGMA.Celltyping]{celltype_associations_pipeline} can be retrieved.}
\item{q_thresh}{Multiple-testing corrected p-value (q-value)
filtering threshold.}
\item{method}{correction method, a \code{\link{character}} string.
Can be abbreviated.}
\item{save_dir}{Directory to save the gathered results to.}
\item{verbose}{Print messages.}
}
\description{
Gather enrichment results from
\link[MAGMA.Celltyping]{celltype_associations_pipeline} and converted them
into harmonised, machine-readable tables.
}
\examples{
\dontrun{
#### Use precomputed results: see ?enrichment_results for details ####
MAGMA_results <- MAGMA.Celltyping::enrichment_results
#### Merge results ####
merged_res <- MAGMA.Celltyping::merge_results(MAGMA_results)
}
}