readTox: Read dose-response data

View source: R/readTox.R

readToxR Documentation

Read dose-response data

Description

Read dose-response data of specific format from a txt or csv file

Usage

readTox(File, light=TRUE)

Arguments

File

a txt or csv file with dose-response data. a txt file should be tab or space separated; a csv file should be comma separated.

light

TRUE: the file only contrains doses and responses (light version); FALSE: the file also contains information about experiment design and data type (complex version)

Format

Dose-response data contains the following information: the name of compound, the number of doses, the repititions, and the data type.
The file extension needs to be .txt if it's a space or tab separated file.
The file extension needs to be .csv if it's a comma-separated values file.

Details

> The light format of the file readTox can read:
conc tier1 tier2 tier3
2.50E-07 0.06 0.03 0.07
3.50E-07 0.04 0.07 0.04
5.34E-07 0.07 0.15 0.06
7.68E-07 0.16 0.14 0.10
1.13E-06 0.21 0.26 0.23
1.67E-06 0.34 0.30 0.31
2.50E-06 0.46 0.44 0.48
3.50E-06 0.52 0.59 0.61
5.34E-06 0.73 0.69 0.71
7.68E-06 0.79 0.67 0.78
1.13E-05 0.80 0.72 0.81
1.67E-05 0.82 0.80 0.82

> The complex format of the file readTox can read:
cu 12 3 type
ID conc tier1 tier2 tier3
1 2.50E-07 0.06 0.03 0.07
2 3.50E-07 0.04 0.07 0.04
3 5.34E-07 0.07 0.15 0.06
4 7.68E-07 0.16 0.14 0.10
5 1.13E-06 0.21 0.26 0.23
6 1.67E-06 0.34 0.30 0.31
7 2.50E-06 0.46 0.44 0.48
8 3.50E-06 0.52 0.59 0.61
9 5.34E-06 0.73 0.69 0.71
10 7.68E-06 0.79 0.67 0.78
11 1.13E-05 0.80 0.72 0.81
12 1.67E-05 0.82 0.80 0.82


mixtox documentation built on June 20, 2022, 5:05 p.m.

Related to readTox in mixtox...