![]() |
DESeq2 error in data.frame (multiple treatments and multiple replicates)
I have a text file, containing read counts per gene for each treatments and control, with the following column
[Gene Symbol] [C1] [C2] [C3] [A1] [A2] [A3] [B1] [B2] [B3]
When I do data.frame it generates an error Code:
library( "DESeq2" ) Code:
countdata <- assay( mydata ) I think the problem comes from the fact that I should subset my data, though I have no clue how to do to that. Any suggestions on where is the error message coming from and how to subset data? (If I should ever subset that..:confused:) |
This is your countData, which has as many rows as genes:
Code:
mydata = read.table("matrix.txt", header=TRUE) Code:
ExpDesign = data.frame(row.names=col1, condition=c("C", "C", "C", "A", "A", "A", "B", "B", "B") So the error comes when you try to name the rows of your colData using the gene names in col1. You will also get an error later when you try to run Code:
assay( mydata ) Code:
as.matrix( mydata ) |
Hi,
I followed your advice and tried to import as a matrix. But when I try to set up col.data I still get an error This is my code Quote:
Quote:
|
Quote:
I followed your advice and tried to import as a matrix. But when I try to set up col.data I still get an error This is my code Quote:
Quote:
|
All times are GMT -8. The time now is 06:44 PM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.