library("sRAP")
dir <- system.file("extdata", package="sRAP")
cufflinks.folder <- file.path(dir,"cufflinks")
sample.table <- file.path(dir,"MiSeq_Sample_Description.txt")
samples <- c("SRR493372", "SRR493373","SRR493374","SRR493375","SRR493376","SRR493377")
cufflinks.files <- paste(samples,"_truncated.fpkm_tracking",sep="")
cufflinks.files <- file.path(cufflinks.folder, cufflinks.files)
project.folder <- getwd()
sample.mat <- data.frame(sample=samples, file=cufflinks.files)
sample.list <- file.path(project.folder, "cufflinks_files.txt")
write.table(sample.mat, file = sample.list, sep="\t", quote=FALSE, row.names=FALSE)
#You can view the "sample.list" file to see what it looks like
#For example, this sort of file can be created using Excel
rpkm.file <- file.path(project.folder, "sRAP_input.txt")
RNA.prepare.input(sample.list, rpkm.file)
Run the code above in your browser using DataLab