-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathregistration_model.Rd
48 lines (45 loc) · 1.67 KB
/
registration_model.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/registration_model.R
\name{registration_model}
\alias{registration_model}
\title{Spatial registration: model}
\usage{
registration_model(
sce_pseudo,
covars = NULL,
var_registration = "registration_variable"
)
}
\arguments{
\item{sce_pseudo}{The output of \code{registration_pseudobulk()}.}
\item{covars}{A \code{character()} with names of sample-level covariates.}
\item{var_registration}{A \code{character(1)} specifying the \code{colData(sce_pseudo)}
variable of interest against which will be used for computing the relevant
statistics.}
}
\value{
The output of \code{model.matrix()} which you can inspect to verify that
your sample-level covariates are being properly modeled.
}
\description{
This function defines the statistical model that will be used for computing
the block correlation as well as pairwise statistics. It is useful to check
it in case your sample-level covariates need to be casted. For example, an
\code{integer()} variable might have to be casted into a \code{factor()} if you wish
to model it as a categorical variable and not a continuous one.
}
\examples{
example("registration_pseudobulk", package = "spatialLIBD")
registration_mod <- registration_model(sce_pseudo, "age")
head(registration_mod)
}
\seealso{
Other spatial registration and statistical modeling functions:
\code{\link{registration_block_cor}()},
\code{\link{registration_pseudobulk}()},
\code{\link{registration_stats_anova}()},
\code{\link{registration_stats_enrichment}()},
\code{\link{registration_stats_pairwise}()},
\code{\link{registration_wrapper}()}
}
\concept{spatial registration and statistical modeling functions}