Skip to content

Commit 07a11fa

Browse files
author
trile965
committed
Merge commit 'acbc8c6' into HEAD
2 parents 96d88b0 + acbc8c6 commit 07a11fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Signac
22
Title: An analytics package for Single-cell data
3-
Version: 0.0.9
3+
Version: 0.0.10
44
Author: BioTuring INC.
55
Maintainer: BioTuring <[email protected]>
66
Description: We introduce Signac, a versatile R package to facilitate the analysis workflow for single-cell data. It helps to find marker genes faster and more accurate, search for cells with similar expression profiles, integrate multiple datasets in the BioTuring Browser database (know more about BioTuring Browser), etc. For users with a limited computational resource, we provide the helper functions to exercise all analyses for the large-scale datasets from disk. Because of its speed and flexibility, it can be adapted to any existing R analysis pipeline to help explore single-cell data more efficient.

R/io.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ Read10X <- function(data.dir = NULL){
153153
#' @importFrom readr read_lines read_delim
154154
#'
155155
ReadDelim <- function(mat.path, sep = ",", header = TRUE, to.sparse = TRUE) {
156-
156+
ReplaceNA <- function(x) {
157+
x[is.na(x)] <- "NA"
158+
return(make.unique(x))
159+
}
157160
# Get header. Handle a case when the 1st element is missing
158161
getHeader <- function(mat.path, sep) {
159162
lines <- read_lines(mat.path, n_max = 2)
@@ -194,6 +197,7 @@ ReadDelim <- function(mat.path, sep = ",", header = TRUE, to.sparse = TRUE) {
194197
col_names = header.arr,
195198
progress = FALSE
196199
))
200+
mat$gene <- ReplaceNA(mat$gene)
197201
if (to.sparse) {
198202
mat <- convertTibbleToSparseMatrix(mat)
199203
}

0 commit comments

Comments
 (0)