make.sample.list: Creates sample list from file

Description Usage Arguments Value Author(s) Examples

Description

Create the main sample list from an external file.

Usage

1
    make.sample.list(input, type=c("simple","targets"))

Arguments

input

a tab-delimited file structured as follows: the first line of the external tab delimited file should contain column names (names are not important). The first column MUST contain UNIQUE sample names and the second column MUST contain the biological condition where each of the samples in the first column should belong to.

type

one of "simple" or "targets" to indicate if the input is a simple two column text file or the targets file used to launch the main analysis pipeline.

Value

A named list whose names are the conditions of the experiments and its members are the samples belonging to each condition.

Author(s)

Panagiotis Moulos

Examples

1
2
3
4
5
targets <- data.frame(sample=c("C1","C2","T1","T2"),
    condition=c("Control","Control","Treatment","Treatment"))
write.table(targets,file="targets.txt",sep="\t",row.names=FALSE,
    quote="")
sample.list <- make.sample.list("targets.txt")

pmoulos/metaseqR-local documentation built on May 9, 2019, 1:13 a.m.