Description Usage Arguments Value Author(s) Examples
View source: R/metaseqr.util.R
Create the main sample list from an external file.
1 | make.sample.list(input, type=c("simple","targets"))
|
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 |
A named list whose names are the conditions of the experiments and its members are the samples belonging to each condition.
Panagiotis Moulos
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.