I ran bulk RNA-seq
experiment and got quant.sf
file. Now, I am struggling with understanding what tximport
package does and how to use it correctly. My ultimate goal is to feed the data into DESeq2
for differential expression analysis. In the documentation:
http://bioconductor.org/packages/release/bioc/manuals/tximport/man/tximport.pdf
We have:
samples <- read.table(file.path(dir,"samples.txt"), header=TRUE)
files <- file.path(dir,"salmon", samples$run, "quant.sf")
I do not understand what are these samples.txt
. It is not generated by salmon
, so I suppose that I need to write it myself. How then? What is the correct format for the file? And what if I want to feed just one sample in? That is actually what I want initially: process each sample separately. Could anyone explain step by step how we could utilize tximport
when we have just one quant.sf
file to get to raw count matrix to feed it into DeSeq2
?
samples.txt
file with a single sample, but there's not much point in processing the samples separately because the first step ofDESeq2
is to calculate size factors, which requires comparisons across samples. $\endgroup$