make_cghRaw {CGHbase} | R Documentation

## Convert a dataframe or textfile to an object of class cghRaw.

### Description

This function converts a dataframe of appropriote format to an object of class cghRaw.

### Usage

    make_cghRaw(input)

### Arguments

`input` | Either a dataframe or character string containing a filename. See details for the format.

### Details

The input should be either a dataframe or a tabseparated textfile (textfiles must contain a header). The first four columns should contain the name, chromosome and the start and end position in bp for each array target respectively. The chromosome and position column must contain numbers only. Following these is a column with log2 ratios for each of your samples. If the input type is a textfile, missing values should be represented as 'NA' or an empty field.

### Value

This function returns an object of class `cghRaw-class`.

### Author(s)

Sjoerd Vosse & Mark van de Wiel

### Examples

      data(Wilting)
      ## Convert to \code{\link{cghRaw}} object
      cgh <- make_cghRaw(Wilting)

[Package CGHbase version 1.42.0 Index]