Package 'hapmapsnp6'

Title: Sample data - Hapmap SNP 6.0 Affymetrix
Description: Sample data from the International HapMap Project, generated on the Affymetrix Genome-Wide Human SNP Array 6.0 for the samples NA06985, NA06991 and NA06993. The package provides the three CEL files and the genotype calling result obtained from them with the crlmm algorithm. The data are hosted on Zenodo and served through ExperimentHub, and are intended only for demonstrating Bioconductor tools.
Authors: Benilton Carvalho [aut, cre] (ORCID: <https://orcid.org/0000-0001-5122-5646>), The International HapMap Consortium [dtc]
Maintainer: Benilton Carvalho <[email protected]>
License: GPL
Version: 1.56.0
Built: 2026-11-25 06:06:46 UTC
Source: https://git.bioconductor.org/packages/hapmapsnp6

Help Index


Sample HapMap SNP 6.0

Description

Sample dataset on the Affymetrix Genome-Wide Human SNP Array 6.0, for the HapMap samples NA06985, NA06991 and NA06993. The package is meant to be used only for demonstration of Bioconductor tools.

As of version 1.55.1 the data is no longer shipped inside the package. It is deposited on Zenodo, under doi:10.5281/zenodo.23990454, and served through ExperimentHub. The first call to an accessor downloads the resource and stores it in the local ExperimentHub cache; later calls read from that cache.

Details

The origin of the data and the processing that produced crlmmResult are documented in inst/scripts/make-data.R. The resource records served through ExperimentHub are listed in inst/extdata/metadata.csv.

The maintainer does not warrant the accuracy of the data.

Accessing the data

Four resources are provided: the genotype calling result crlmmResult, a SnpSet, and the three CEL files it was derived from.

crlmmResult()

Returns the SnpSet. This replaces data(crlmmResult), used by earlier versions of the package, which no longer works because the package ships no data directory. With metadata = TRUE it returns the resource metadata without downloading the object.

celFiles()

Returns the paths of the three CEL files on disk, named after the original files.

celFiles(asDir = TRUE)

Returns a directory holding the three files. This replaces system.file("celFiles", package = "hapmapsnp6"), which cannot work for files that are no longer installed with the package.

Author(s)

Data generated by the HapMap Consortium.

Package maintained by Benilton Carvalho <[email protected]>.

References

The International HapMap Consortium. The International HapMap Project. Nature 426, 789-796 (2003).

See Also

crlmmResult, celFiles, ExperimentHub

Examples

library(oligo)
    library(hapmapsnp6)

    ## Genotype calls
    crlmmResult <- crlmmResult()
    class(crlmmResult)

    ## Raw CEL files
    cels <- celFiles()
    rawData <- read.celfiles(cels)

Access the celFiles files through ExperimentHub

Description

These files are no longer distributed inside the hapmapsnp6 package. They are deposited on Zenodo and served through ExperimentHub. The first call downloads each file and stores it in the local ExperimentHub cache; later calls read from that cache.

Usage

celFiles(..., metadata = FALSE, asDir = FALSE)

Arguments

...

further arguments passed to ExperimentHub, which allows an alternate hub location to be used.

metadata

logical. With TRUE only the resource metadata is returned, without downloading the files.

asDir

logical. With TRUE the files are gathered into a single directory and its path is returned. This replaces system.file("celFiles", package = "hapmapsnp6"), which cannot work for files that are no longer installed with the package.

Format

A named character vector of paths on disk, one per file. With asDir = TRUE, a single directory path. With metadata = TRUE, an ExperimentHub object describing the resources instead.

Value

A character vector of paths on disk, named after the original files; a single directory path when asDir is TRUE; or the resource metadata when metadata is TRUE.

Source

Zenodo, record 23990454.

See Also

ExperimentHub

Examples

## The accessor and its arguments. This needs no network access.
args(celFiles)

## Resource metadata. This queries the hub but downloads no files.
celFiles(metadata = TRUE)

## The files themselves, downloaded on first use and cached afterwards.

paths <- celFiles()
basename(paths)

Access the crlmmResult resource through ExperimentHub

Description

The data is no longer distributed inside the hapmapsnp6 package. It is deposited on Zenodo and served through ExperimentHub under the identifier EH10670. The first call downloads the resource and stores it in the local ExperimentHub cache; later calls read from that cache.

Usage

crlmmResult(..., metadata = FALSE)

Arguments

...

further arguments passed to ExperimentHub, which allows an alternate hub location to be used.

metadata

logical. With TRUE only the resource metadata is returned, without downloading the data.

Format

An object of class SnpSet. With metadata = TRUE, an ExperimentHub object describing the resource instead.

Value

An object of class SnpSet, or the resource metadata when metadata is TRUE.

Source

Zenodo, record 23990454, file crlmmResult.rda.

See Also

ExperimentHub

Examples

## The accessor and its arguments. This needs no network access.
args(crlmmResult)

## Resource metadata. This queries the hub but downloads no data.
crlmmResult(metadata = TRUE)

## The data itself, downloaded on first use and cached afterwards.

obj <- crlmmResult()
class(obj)