Error while importing RSEM counts using DESeqDataSetFromTximport function
1
0
Entering edit mode
@upendrakumardevisetty-7478
Last seen 4.2 years ago
United States

Hi,

I was trying to import the RSEM counts into DESeq2 using DESeqDataSetFromTximport function but for some reason I am getting Error in txi$counts : $ operator is invalid for atomic vectors. I was just following the instructions in the manual but I am getting this error. Any ideas why?

Here is the full code that I was trying to run:

library(tximportData) library(tximport) library(DESeq2)

dir <- system.file("extdata", package = "tximportData") list.files(dir)

samples <- read.table(file.path(dir, "samples.txt"), header = TRUE) samples

files <- file.path(dir, "rsem", samples$run, paste0(samples$run, ".genes.results.gz")) names(files) <- paste0("sample", 1:6)

txi.rsem <- tximport(files, type = "rsem", txIn = FALSE, txOut = FALSE) head(txi.rsem$counts) colnames((txi.rsem$counts))

sampleTable <- data.frame(condition = factor(rep(c("A", "B"), each = 3))) rownames(sampleTable) <- colnames(txi.rsem$counts) head(sampleTable)

dds <- DESeqDataSetFromTximport(txi.rsem$counts, sampleTable, ~condition)

deseq2 • 685 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 2 days ago
United States

The handoff to DESeq2 is not as we have in the vignettes, you don’t pass the matrix, but the list object txi.

ADD COMMENT

Login before adding your answer.

Traffic: 1036 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6