-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc_as_pt.Rd
26 lines (24 loc) · 1.08 KB
/
pc_as_pt.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pseudotime.R
\name{pc_as_pt}
\alias{pc_as_pt}
\title{Take a principal component (first by default) and return a list of results gained by interpreting that PC as a pseudotime axis.}
\usage{
pc_as_pt(dge, pc.use = 1, orient_var = "eday")
}
\arguments{
\item{dge:}{Seurat object to be used. Should have variable genes and PCA fields already filled in.
Jackstraw and t-SNE are optional but preferred.}
\item{orient_var:}{pseudotime is flipped to correlate positively with this. Anything available
from `Seurat::FetchData(dge, orient_var)` is fair game... as long as it's numeric.}
\item{pc.use:}{which principal component to take}
}
\value{
List with named elements:
`$dge`: Seurat object with a `pseudotime` metadatum filled in
`$gene_corrs`: dataframe with genes ordered by correlation with pseudotime.
Columns are `gene`, `corr`, and (if available from Jackstraw) `p_value`.
}
\description{
Take a principal component (first by default) and return a list of results gained by interpreting that PC as a pseudotime axis.
}