Skip to content

Commit a4a5cee

Browse files
committed
modified subset tree
1 parent 91214dc commit a4a5cee

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

R/methods-Vision.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ setMethod("Vision", signature(data = "matrixORSparse"),
119119
}
120120

121121
if (!is.null(tree)) {
122-
data = data[,tree$tip.label]
122+
# Subset matrix
123+
data <- data[,tree$tip.label]
124+
# Subset Tree
125+
tree <- keep.tip(tree, colnames(data))
123126
}
124127

125128
.Object@exprData <- data

docs/articles/phyloVision.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/trajectories.html

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ articles:
1111
web_only/10xData: 10xData.html
1212
web_only/Seurat: Seurat.html
1313
web_only/SignatureAutocorrelation: SignatureAutocorrelation.html
14-
last_built: 2021-08-19T18:21Z
14+
last_built: 2021-08-19T18:40Z
1515
urls:
1616
reference: https://yoseflab.github.io/VISION//reference
1717
article: https://yoseflab.github.io/VISION//articles

vignettes/phyloVision.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ vis <- PhyloVision(tree=tree, data=expr, signatures=sig, meta=meta, num_neighbor
6868
```
6969
**Tree**
7070

71-
The `ape` phylogeny object. Singleton edges should be collapsed prior to use. The tree should be filtered to have the same cell (leaf) names as the expression data.
71+
The `ape` phylogeny object. Singleton edges should be collapsed prior to use. Ensure that leaf names correspond to same names used in the expression matrix.
7272

7373
**Expression Data**
7474

vignettes/trajectories.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ set.seed(6473) ## for reproducibility
2323

2424
# Introduction
2525

26+
*Note: this feature is deprecated in VISION 3.0+.*
27+
2628
To compute Signature consistency scores, VISION needs a cell-cell similarity metric in order to
2729
build the neighborhood graph. By default, VISION runs PCA and uses euclidean distances in the reduced
2830
space for this purpose. However, if the cells' variation is better modeled by a trajectory (either

0 commit comments

Comments
 (0)