unsplitSnpSet {SNPchip}R Documentation

Combines a list with elements that are AnnotatedSnpSets into one AnnotatedSnpSet.

Description

After splitting a SnpSet object by chromosome, for instance, this function will reproduce the original object from the list.

Usage

unsplitSnpSet(from, annotatedDataFrame, ...)

Arguments

from A list. Element should be one of the SNP classes extending eSet
annotatedDataFrame Object of class AnnotatedDataFrame that contains the featureData prior to splitting. See the example.
... arguments to initialize an instance of the class

Details

Value

an object of class class(from[[1]])

Note

Author(s)

Robert Scharpf

References

See Also

split

Examples

  data(sample.snpset)
  x <- split(sample.snpset, chromosome(sample.snpset))
  class(x)
  length(x)

  ## Not run: 
    xx <- unsplitSnpSet(x,
                        featureData(sample.snpset),
                        copyNumber=do.call("rbind", lapply(x, copyNumber)),
                        calls=do.call("rbind", lapply(x, calls)),
                        cnConfidence=do.call("rbind", lapply(x, callsConfidence)),
                        callsConfidence=do.call("rbind", lapply(x, callsConfidence)))
    xx
  
## End(Not run)

[Package SNPchip version 1.2.1 Index]