| Ltree-class {RaceID} | R Documentation |
The Ltree Class
Description
The Ltree class is the central object storing all information generated during lineage tree inference by the StemID algorithm. It comprises a number of slots for a variety of objects.
Arguments
object |
An Ltree object. |
Slots
scAn
SCseqobject with the RaceID3 analysis of the single-cell RNA-seq data for which a lineage tree should be derived.ldataList object storing information on the clustering partition, the distance matrix, and the cluster centers in dimensionally-reduced input space and in two-dimensional t-sne space. Elements:
lp: vector with the filtered partition into clusters after discarding clusters with cthr cells or less.pdi:matrix with the coordinates of all cells in the embedded space. Clusters withcthrtranscripts or less were discarded (see functionprojcells). Rows are medoids and columns are coordinates.cn: data.frame with the coordinates of the cluster medoids in the embedded space. Clusters withcthrtranscripts or less were discarded. Rows are medoids and columns are coordinates.m: vector with the numbers of the clusters which survived the filtering.pdil: data.frame with coordinates of cells in the two-dimensional t-SNE representation computed by RaceID3. Clusters withcthrtranscripts or less were discarded. Rows are cells and columns are coordinates.cnl: data.frame with the coordinates of the cluster medoids in the two-dimensional t-SNE representation computed by RaceID3. Clusters withcthrtranscripts or less were discarded. Rows are medoids and columns are coordinates.entropyVector with transcriptome entropy computed for each cell.
trprojList containing two data.frames. Elements:
res: data.frame with three columns for each cell. The first columnoshows the cluster of a cell, the second columnlshows the cluster number for the link the cell is assigned to, and the third columnhshows the projection as a fraction of the length of the inter-cluster link. Parallel projections are positive, while anti-parallel projections are negative.rma: data.frame with all projection coordinates for each cell. Rows are cells and columns are clusters. Projections are given as a fraction of the length of the inter-cluster link. Parallel projections are positive, while anti-parallel projections are negative. The column corresponding to the originating cluster of a cell showsNA.parList of parameters used for the StemID2 analysis.
prbackdata.frame of the same structure as the
trproj$res. In case randomizations are used to compute significant projections, the projections of allpdishuffrandomizations are appended to this data.frame and therefore the number of rows corresponds to the number of cells multiplied bypdishuf. See functionprojback.prbackadata.frame reporting the aggregated results of the randomizations with four columns. Column
ndenotes the number of the randomization sample, columnoandlcontain the numbers of the originating and the terminal cluster, respectively, for each inter-cluster link and columncountshows the number of cells assigned to this link in randomization samplen. The discrete distribution for the computation of the link p-value is given by the data contained in this object (ifnmode=FALSE).ltcoordMatrix storing projection coordinates of all cells in the two-dimensional t-SNE space, used for visualization.
prtreeList with two elements. The first element
lstores a list with the projection coordinates for each link. The name of each element identifies the link and is composed of two cluster numbers separated by a dot. The second elementnis a list of the same structure and contains the cell names corresponding to the projection coordinates stored inl.cdatalist of data.frames, each with cluster ids as rows and columns:
countsdata.frame indicating the number of cells on the links connecting the cluster of origin (rows) to other clusters (columns).counts.brdata.frame containing the cell counts on cluster connections averaged across the randomized background samples (ifnmode = FALSE) or as derived from sampling statistics (ifnmode = TRUE).pv.ematrix of enrichment p-values estimated from sampling statistics (ifnmode = TRUE); entries are 0 if the observed number of cells on the respective link exceeds the(1 – pethr)-quantile of the randomized background distribution and 0.5 otherwise (ifnmode = FALSE).pv.dmatrix of depletion p-values estimated from sampling statistics (ifnmode = TRUE); entries are 0 if the observed number of cells on the respective link is lower than thepethr-quantile of the randomized background distribution and 0.5 otherwise (ifnmode = FALSE).pvn.ematrix of enrichment p-values estimated from sampling statistics (ifnmode = TRUE); 1- quantile, with the quantile estimated from the number of cells on a link as derived from the randomized background distribution (ifnmode = FALSE).pvn.dmatrix of depletion p-values estimated from sampling statistics (ifnmode = TRUE); quantile estimated from the number of cells on a link as derived from the randomized background distribution (ifnmode = FALSE).