subsetData {ramwas} | R Documentation

## Subset a data matrix and locations

### Description

Subset a data (coverage) matrix and corresponding matrix of locations to a specified set of locations.

### Usage

    subsetCoverageDirByLocation(x, chr, start, targetdir)

### Arguments

`x` | Name of data (coverage) directory or list of RaMWAS parameters as described in the "RW6_param.Rmd" vignette. Try: `vignette("RW6_param","ramwas")`.
`chr` | Vector of chromosome names or numbers.
`start` | Start positions of the CpGs of interest.
`targetdir` | Directory name for the new (subset) data matrix and locations.

### Value

The function returns nothing.

### Author(s)

Andrey A Shabalin andrey.shabalin@gmail.com

### See Also

See vignettes: `browseVignettes("ramwas")`.

### Examples

    x = "/data/myCoverageMatrix"
    chr = c("chr1", "chr2", "chr3")
    start = c(12345, 123, 12)
    targetdir = "/data/subsetCoverageMatrix"

    ## Not run:
    subsetCoverageDirByLocation(x, chr, start, targetdir)

    ## End(Not run)

[Package ramwas version 1.10.5 Index]