mapFileSet {sesame} | R Documentation

## Deposit data of one sample to a fileSet (and hence to file)

### Description

Deposit data of one sample to a fileSet (and hence to file)

### Usage

    mapFileSet(fset, sample, named_values)

### Arguments

`fset` | a sesame::fileSet, as obtained via readFileSet
`sample` | sample name as a string
`named_values` | value vector named by probes

### Value

a sesame::fileSet

### Examples

    ## create two samples
    fset <- initFileSet('mybetas2', 'HM27', c('s1','s2'))

    ## a hypothetical numeric array (can be beta values, intensities etc)
    hypothetical <- setNames(runif(fset$n), fset$probes)

    ## map the numeric to file
    mapFileSet(fset, 's1', hypothetical)

    ## get data
    sliceFileSet(fset, 's1', 'cg00000292')

[Package sesame version 1.5.3 Index]