isOpenGDS: Check if a GDS file has been opened or not.

isOpenGDSR Documentation

Check if a GDS file has been opened or not.

Description

Check if a GDS file has been opened or not.

Usage

isOpenGDS(object, ...)

## S4 method for signature 'GbsrGenotypeData'
isOpenGDS(object)

Arguments

object

A GbsrGenotypeData object.

...

Unused.

Value

TRUE if the GDS file linked to the input GbsrGenotypeData object has been opened, while FALSE if closed.

Examples

# Use a GDS file of example data.
gds_fn <- system.file("extdata", "sample.gds", package = "GBScleanR")

# Instantiation of [GbsrGenotypeData]
gds <- loadGDS(gds_fn)

# Check connection to the GDS file
isOpenGDS(gds)

# Close the connection to the GDS file
closeGDS(gds)


tomoyukif/GBScleanR documentation built on Oct. 31, 2024, 2:43 a.m.