Skip to content

Commit 4ba3326

Browse files
authored
Merge pull request #44 from YosefLab/docs
Merge docs
2 parents 89cf5cf + ccbe728 commit 4ba3326

222 files changed

Lines changed: 12166 additions & 3771 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
^\.travis\.yml$
44
^build_whitelist.sh$
55
^docs/.*$
6+
^.*.eslintrc.json

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
22

3-
language: R
3+
language: r
44
cache: packages
55

66
r:

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: VISION
22
Title: Functional interpretation of single cell RNA-seq latent manifolds
3-
Version: 0.99.6
3+
Version: 1.0.0
44
Authors@R: c(person("Matt", "Jones", email = "mattjones315@gmail.com", role = c("aut", "cre")),
55
person("David", "Detomaso", email = "david.detomaso@berkeley.edu", role = c("aut", "cre")),
66
person("Tal", "Ashuach", email = "tal_ashuach@berkeley.edu", role = c("aut")),
@@ -17,6 +17,7 @@ Imports:
1717
loe,
1818
logging,
1919
parallel,
20+
pbmcapply (>= 1.3.1),
2021
Matrix,
2122
matrixStats,
2223
mclust,
@@ -32,16 +33,16 @@ LinkingTo: Rcpp
3233
License: MIT + file LICENSE
3334
Encoding: UTF-8
3435
LazyData: true
36+
URL: https://yoseflab.github.io/VISION, https://github.com/yoseflab/VISION
3537
BugReports: https://github.com/YosefLab/VISION/issues
3638
RoxygenNote: 6.1.1
3739
Suggests:
3840
Biobase,
3941
BiocStyle,
4042
knitr,
4143
rmarkdown,
42-
SummarizedExperiment,
4344
testthat,
44-
ggplot2,
45+
ggplot2
4546
biocViews:
4647
GeneExpression,
4748
RNASeq,

NAMESPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@
22

33
export(Vision)
44
export(applyMicroClustering)
5+
export(convertGeneIds)
56
export(createGeneSignature)
7+
export(poolMatrixCols)
8+
export(poolMatrixRows)
9+
export(poolMetaData)
10+
export(read_10x)
11+
export(read_10x_h5)
612
exportMethods(Vision)
713
exportMethods(addProjection)
814
exportMethods(analyze)
15+
exportMethods(getLatentSpace)
16+
exportMethods(getLatentTrajectory)
17+
exportMethods(getMetaAutocorrelation)
18+
exportMethods(getMetaDifferential)
19+
exportMethods(getProjections)
20+
exportMethods(getSelections)
21+
exportMethods(getSignatureAutocorrelation)
22+
exportMethods(getSignatureDifferential)
23+
exportMethods(getSignatureScores)
924
exportMethods(saveAndViewResults)
1025
exportMethods(viewResults)
1126
import(Matrix)
@@ -15,6 +30,7 @@ import(loe)
1530
import(logging)
1631
import(methods)
1732
import(stats)
33+
importFrom(Matrix,readMM)
1834
importFrom(Matrix,rowMeans)
1935
importFrom(Matrix,rowSums)
2036
importFrom(Matrix,sparseMatrix)
@@ -48,6 +64,7 @@ importFrom(matrixStats,rowSds)
4864
importFrom(mclust,Mclust)
4965
importFrom(mclust,mclustBIC)
5066
importFrom(parallel,mclapply)
67+
importFrom(pbmcapply,pbmclapply)
5168
importFrom(rsvd,rsvd)
5269
importFrom(stats,chisq.test)
5370
importFrom(stats,kmeans)

NEWS

Lines changed: 0 additions & 23 deletions
This file was deleted.

NEWS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# VISION 1.0.0
22

3-
Initial release of VISION
3+
* Added Layout Options to the output report
4+
* Selected cells can now be saved/loaded
5+
* Addition of "get*"-style accessor methods to the VISION object
6+
* Added an interface to Seurat objects
7+
* Added convenience methods for working with outputs from 10x Genomic's CellRanger
8+
* **Note**: Some changes were made to the Vision object structure and how results are stored. If updating to 1.0.0, older Vision objects may need to be re-created and re-run before using `viewResults`

R/AllClasses.R

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# on the different types of data.
77

88
setClassUnion('numericORNULL', members=c('numeric', 'NULL'))
9-
setClassUnion('matrixORSparse', members=c("matrix", "dgCMatrix", "dgTMatrix"))
9+
setClassUnion('matrixORSparse', members=c("matrix", "dgeMatrix", "dgCMatrix", "dgTMatrix"))
1010

1111
Cluster <- setClass("Cluster",
1212
slots = c(
@@ -19,10 +19,10 @@ Cluster <- setClass("Cluster",
1919

2020
ProjectionData <- setClass("ProjectionData",
2121
slots = c(
22-
sigProjMatrix = "matrix",
23-
pMatrix = "matrix",
24-
sigClusters = "list",
25-
emp_pMatrix = "matrix"
22+
Consistency = "matrix",
23+
pValue = "matrix",
24+
FDR = "matrix",
25+
sigClusters = "list"
2626
))
2727

2828
PCAnnotatorData <- setClass("PCAnnotatorData",
@@ -83,13 +83,10 @@ Vision <- setClass("Vision",
8383
sig_norm_method = "character",
8484
sig_score_method = "character",
8585
exprData = "matrixORSparse",
86-
initialExprData = "matrixORSparse",
8786
unnormalizedData = "matrixORSparse",
88-
initialUnnormalizedData = "matrixORSparse",
8987
housekeepingData = "character",
9088
sigData = "list",
9189
metaData = "data.frame",
92-
initialMetaData = "data.frame",
9390
perm_wPCA = "logical",
9491
pool = "logical",
9592
sigScores = "matrix",
@@ -104,10 +101,8 @@ Vision <- setClass("Vision",
104101
pools = "list",
105102
inputProjections = "list",
106103
name = "character",
107-
cluster_variable = "character",
108104
latentSpace = "matrix",
109105
latentTrajectory = "Trajectory",
110-
initialLatentSpace = "matrix",
111106
version = "numeric",
112107
selections = "list"),
113108
prototype = list(
@@ -116,13 +111,10 @@ Vision <- setClass("Vision",
116111
threshold = 0,
117112
sig_norm_method = "znorm_rows",
118113
exprData = matrix(NA, 1, 1),
119-
initialExprData = matrix(NA, 1, 1),
120114
unnormalizedData = matrix(NA, 1, 1),
121-
initialUnnormalizedData = matrix(NA, 1, 1),
122115
housekeepingData = character(),
123116
sigData = list(),
124117
metaData = data.frame(),
125-
initialMetaData = data.frame(),
126118
perm_wPCA = FALSE,
127119
pool = FALSE,
128120
sigScores = matrix(NA, 1, 1),
@@ -137,10 +129,8 @@ Vision <- setClass("Vision",
137129
pools = list(),
138130
inputProjections = list(),
139131
name = "",
140-
cluster_variable = "",
141132
latentSpace = matrix(NA, 1, 1),
142133
latentTrajectory = NULL,
143-
initialLatentSpace = matrix(NA, 1, 1),
144-
version = 1.0,
134+
version = 1.1,
145135
selections = list()
146136
))

R/AllGenerics.R

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,35 @@ setGeneric("getSelections", function(object, ...) {
3535
setGeneric("computeKNNWeights", function(object, ...) {
3636
standardGeneric("computeKNNWeights")
3737
})
38+
39+
setGeneric("getProjections", function(object, ...) {
40+
standardGeneric("getProjections")
41+
})
42+
43+
setGeneric("getLatentSpace", function(object, ...) {
44+
standardGeneric("getLatentSpace")
45+
})
46+
47+
setGeneric("getLatentTrajectory", function(object, ...) {
48+
standardGeneric("getLatentTrajectory")
49+
})
50+
51+
setGeneric("getSignatureScores", function(object, ...) {
52+
standardGeneric("getSignatureScores")
53+
})
54+
55+
setGeneric("getSignatureAutocorrelation", function(object, ...) {
56+
standardGeneric("getSignatureAutocorrelation")
57+
})
58+
59+
setGeneric("getSignatureDifferential", function(object, ...) {
60+
standardGeneric("getSignatureDifferential")
61+
})
62+
63+
setGeneric("getMetaAutocorrelation", function(object, ...) {
64+
standardGeneric("getMetaAutocorrelation")
65+
})
66+
67+
setGeneric("getMetaDifferential", function(object, ...) {
68+
standardGeneric("getMetaDifferential")
69+
})

0 commit comments

Comments
 (0)