scClose {SCArray} | R Documentation

## Close the Single-cell GDS File

### Description

Closes a single-cell GDS file which is open.

### Usage

    scClose(gdsfile)

### Arguments

`gdsfile` | a single-cell GDS object with class `SCArrayFileClass`

### Value

None.

### Author(s)

Xiuwen Zheng

### See Also

`scOpen`

### Examples

    # a GDS file for SingleCellExperiment
    fn <- system.file("extdata", "LaMannoBrainData.gds", package="SCArray")

    # open the GDS file
    (f <- scOpen(fn))

    # read
    cell.id <- read.gdsn(index.gdsn(f, "feature.id"))
    samp.id <- read.gdsn(index.gdsn(f, "sample.id"))

    scClose(f)

[Package SCArray version 1.2.1 Index]