reopenGDS: Reopen the connection to the GDS file.

reopenGDSR Documentation

Reopen the connection to the GDS file.

Description

Reopen the connection to the GDS file.

Usage

reopenGDS(object, ...)

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

Arguments

object

A GbsrGenotypeData object.

...

Unused.

Details

The GbsrGenotypeData object stores the file path of the GDS file even after closing the connection the file. This function open again the connection to the GDS file at the file path stored in the GbsrGenotypeData object. If the GbsrGenotypeData object witch has an open connection to the GDS file, this function will reopen the connection. The data stored in the marker and sample slots will not be changed. Thus, you can open a connection with the GDS file with keeping information of filtering and summary statistics.

Value

A GbsrGenotypeData object.

Examples

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

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

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

gds <- reopenGDS(gds)

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

tomoyukif/GBScleanR documentation built on April 27, 2024, 9:06 a.m.