Learn R Programming

singleCellHaystack (version 0.3.4)

read_haystack: Function to read haystack results from file.

Description

Function to read haystack results from file.

Usage

read_haystack(file)

Value

An object of class "haystack"

Arguments

file

A file containing 'haystack' results to read

Examples

Run this code
# using the toy example of the singleCellHaystack package
# define a logical matrix with detection of each gene (rows) in each cell (columns)
dat.detection <- dat.expression > 1

# running haystack in default mode
res <- haystack(dat.tsne, detection=dat.detection, method = "2D")

outfile <- file.path(tempdir(), "output.csv")

# write result to file outfile.csv
write_haystack(res, file = outfile)

# read in result from file
res.copy <- read_haystack(file = outfile)

Run the code above in your browser using DataLab