GenotypeInfoSet

Create a new GenotypeInfoSet

Description

Construct a new GenotypeInfoSet wrapper for a set of GenotypeInfo objects

S3 c() method that accepts any mix of GenotypeInfo, GenotypeInfoSet, and/or simple lists of those, and returns a unified GenotypeInfoSet.

  • Each element must be either a GenotypeInfo, a GenotypeInfoSet, or a (shallow) list of those. Names of contained GenotypeInfos must be unique.

Returns the underlying named list of GenotypeInfo objects. This enables seamless use of base iterators like lapply(), sapply(), vapply(), and Map() on a GenotypeInfoSet.

Usage

GenotypeInfoSet(...)

## S3 method for class 'GenotypeInfoSet'
x[[i]]

## S3 method for class 'GenotypeInfo'
c(...)

## S3 method for class 'GenotypeInfoSet'
c(...)

## S3 method for class 'GenotypeInfoSet'
length(x)

## S3 method for class 'GenotypeInfoSet'
names(x)

## S3 method for class 'GenotypeInfoSet'
as.list(x, ...)

Arguments

Ignored.

x

A GenotypeInfoSet.

i

Integer and/or character vector selecting genotypes (1-based indices, names, or a mix). Duplicates are removed; order is preserved.

Value

An R6 object of class GenotypeInfoSet.

A new GenotypeInfoSet containing the selected genotypes.

A new GenotypeInfoSet containing all genotypes.

Integer length (number of genotypes).

Character vector of genotype names.

A named list of GenotypeInfo objects.