Learn R Programming

CGHbase (version 1.32.0)

make_cghRaw: 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.

Value

This function returns an object of class cghRaw-class.

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.

Examples

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

Run the code above in your browser using DataLab