Skip to content

Commit

Permalink
fix sparsity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wikiselev committed Apr 23, 2018
1 parent b0a63c0 commit d8160c7
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/CoreMethods.R
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ indexCluster.SingleCellExperiment <- function(object, cluster_col) {
}
tmp <- object[rowData(object)$scmap_features, ]
gene <- cell_class <- exprs <- NULL
exprs_mat <- logcounts(tmp)
exprs_mat <- as.matrix(logcounts(tmp))
rownames(exprs_mat) <- as.data.frame(rowData(tmp))$feature_symbol
colnames(exprs_mat) <- as.data.frame(colData(tmp))[[cluster_col]]

Expand Down Expand Up @@ -203,7 +203,7 @@ indexCell.SingleCellExperiment <- function(object, M, k) {
}

tmp <- object[rowData(object)$scmap_features, ]
exprs_mat <- logcounts(tmp)
exprs_mat <- as.matrix(logcounts(tmp))
rownames(exprs_mat) <- as.data.frame(rowData(tmp))$feature_symbol
features <- rownames(exprs_mat)

Expand Down Expand Up @@ -299,7 +299,7 @@ scmapCluster.SingleCellExperiment <- function(projection, index_list, threshold)
}

# get expression values of the projection dataset
proj_exprs <- logcounts(tmp)
proj_exprs <- as.matrix(logcounts(tmp))
rownames(proj_exprs) <- rowData(tmp)$feature_symbol

# prepare projection dataset
Expand Down Expand Up @@ -402,7 +402,7 @@ scmapCell.SingleCellExperiment <- function(projection, index_list, w) {
subcentroids <- index$subcentroids
subclusters <- index$subclusters

proj_exprs <- logcounts(projection)
proj_exprs <- as.matrix(logcounts(projection))
rownames(proj_exprs) <- rowData(projection)$feature_symbol

dists <- dists_subcentroids(proj_exprs, subcentroids)
Expand Down
Empty file modified data/yan.rda
100755 → 100644
Empty file.
Empty file modified inst/CITATION
100755 → 100644
Empty file.
Empty file modified inst/NEWS
100755 → 100644
Empty file.
Empty file modified inst/scmap.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified man/ann.Rd
100755 → 100644
Empty file.
Empty file modified man/getSankey.Rd
100755 → 100644
Empty file.
Empty file modified man/setFeatures.Rd
100755 → 100644
Empty file.
Empty file modified man/yan.Rd
100755 → 100644
Empty file.
Empty file modified vignettes/scmap.Rmd
100755 → 100644
Empty file.

0 comments on commit d8160c7

Please sign in to comment.