logFC is negative, need help to get it done
0
0
Entering edit mode
14 months ago
Nai ▴ 50

I had normalized count matrix with few negative values or I should say log transformed normalized matrix. I performed the following analysis in limma (the code is below). I got the results , I am getting all logfC value in negative or 0.56789 like that. I want to add two columns with expression values for Condition1 and Condition2.

data1 <- as.matrix(data_normal, rownames=TRUE)
meta_data <- read.csv("new_pheno_sorted_comma.csv", sep = ';', row.names = 1, header=TRUE)
phenoData <- new("AnnotatedDataFrame", data = meta_data)

expression_data <- ExpressionSet(assayData = data_normal, phenoData = phenoData)

design <- model.matrix(~condition, data = pData(expression_data))

table(pData(expression_data)[,"condition"])

fit <- lmFit(expression_data, design)

fit <- eBayes(fit)

df <- topTable(fit, coef=2, n=2000)
Limma R • 632 views
ADD COMMENT
0
Entering edit mode

"normalized count matrix with few negative values" How can you have negative values in a count matrix? What's being counted? What is the source of the data? Microarrays of a given type?

ADD REPLY
0
Entering edit mode

I'm not sure what you think the problem is: negative logFCs are perfectly valid, they simply mean that the expression is lower in the test condition compared to the reference condition (which be the alphabetically first condition if you've not specified). If you mean that the mean difference is less than zero (and this holds across all genes, not just the significant ones), then that probably your normalisation is no good.

ADD REPLY

Login before adding your answer.

Traffic: 1892 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