extract_working_sets {ELBOW} | R Documentation

## extract the initial and final conditions from a table.

### Description

Extract the initial and final conditions from a table.

### Usage

      extract_working_sets(first_my_data, replicate_count1,
        replicate_count2)

### Arguments

`first_my_data` | A table to translate. The columns in the table should be as follows: probes — one column containing the names of the probes initial conditions — one or more columns containing the initial conditions of the experiment final conditions — one or more columns containing the final conditions of the experiment
`replicate_count1` | the number of columns (replicates) corresponding to initial conditions.
`replicate_count2` | the number of columns (replicates) corresponding to final conditions.

### Value

a list containing the following:

- probes — the set of probes.

- initial — a data set of replicates corresponding to initial conditions.

- final — a data set of replicates corresponding to final conditions.

### Examples

    # read in the EcoliMutMA sample data from the package
    		data(EcoliMutMA, package="ELBOW")
    		csv_data <- EcoliMutMA
    		# - OR - Read in a CSV file (uncomment - remove the #'s
    		#        - from the line below and replace 'filename' with
    		#        the CSV file's filename)
    		# csv_data <- read.csv(filename)

    		# set the number of initial and final condition replicates both to three
    		init_count  <- 3
    		final_count <- 3

    		# Parse the probes, intial conditions and final conditions
    		# out of the CSV file.  Please see: extract_working_sets
    		# for more information.
    		#
    		# init_count should be the number of columns associated with
    		#       the initial conditions of the experiment.
    		# final_count should be the number of columns associated with
    		#       the final conditions of the experiment.
    		working_sets <- extract_working_sets(csv_data, init_count, final_count)

[Package ELBOW version 1.20.0 Index]