Description Usage Arguments Details Value Examples
This function infers the clonotype lineages structure from CombinedDataSet
.
1 2 3 4 5 6 7 8 9 10 11 | getClonotypeLineages(CombinedDataSet, ...)
## S4 method for signature 'CombinedDataSet'
getClonotypeLineages(
CombinedDataSet,
start.clus = NULL,
end.clus = NULL,
dist.method = "simple",
use.median = TRUE,
...
)
|
CombinedDataSet |
The |
... |
Additional arguments to specify how lineages are constructed from clusters. |
start.clus |
(optional) character, indicates the starting cluster(s) from which lineages will be drawn. |
end.clus |
(optional) character, indicates which cluster(s) will be forced to be leaf nodes in the graph. |
dist.method |
(optional) character, specifies the method for calculating
distances between clusters. Default is |
use.median |
logical, whether to use the median (instead of mean) when
calculating cluster centroid coordinates. Default is |
data |
A class of |
Given a CombinedDataSet
object, this function constructs the minimum spanning tree(s) on cells sharing the same clonotype.
These cells may belong to different clusters defined by scRNA-seq features, therefore a graph can be constructed with node being the center of a cluster,
and weight of an edge being the distance between the nodes. MST is built based on such a graph.
Once the MST is known, lineages are identified in any tree with at least two clusters. For a given tree, if there is an annotated starting cluster, every possible path out of a starting cluster and ending in a leaf that isn't another starting cluster will be returned. If no starting cluster is annotated, one will be chosen by a heuristic method, but this is not recommended.
A class of TrajectoryDataSet
object
1 2 3 4 | TCR <-read.csv('C:/TCR-seq/Gang/GSE158896_RAW/combinedTCR_2cells.csv',header=T)
load('Mice.sub.rda')
Combined <- getCombinedDataSet(TCR,Mice.sub)
Trajectory <- getClonotypeLineages(Combined,start.clus = NULL, end.clus = NULL, dist.method = 'simple', use.median = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.