Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EdgeR LogCpm and LogFC

    Dear all,

    First of all, I realize there are already several topics on this forum regarding this subject, however none of these seemed to solve my question.
    I am analyzing RNA-Seq data with EdgeR. I have found several DE genes and now my idea is to plot these DE genes. I would like to do so in terms of changes in logCPM, aswell as in logFC.
    Furthermore, I realize these values can be found in the LRT table provided by the glmLRT function when testing for a particular coefficient or contrast matrix. However, I can not seem to reproduce these results using my count matrix (DGE list) to start with.

    Here is what I have tried so far:
    'y' is my DGE list with counts and fitted tagwise dispersion
    'fit' is my glmFit, fitted according to my design matrix.
    'SignGeneID' is the gene ID of a DE gene
    The three columns I provide in my calculation code are the columns of the respective coefficients I want to test (so, in this particular case, columns 1,7 and 13 represent three control treatments of three separate patients and columns 3,9,15 represent three treatments.

    For the LogCpm:
    Code:
    design <- model.matrix(~ patient +Treat+Time + Treat:Time)
    fcRaw <- y$counts[SignGeneID,c(1,7,13)] / y$counts[SignGeneID,c(3,9,15)]
    log2FC <- log(fcRaw , base = 2)
    mean(log2FC) #not equal to LRT table FC
    I have tried several variations on this basic calculations, however I can not reach the same conclusion as the LRT table provided me with.

    For the LogFC, I can get to the same results of the LRT table through the coefficients of my glmFit in this fashion, with "TreatDPN" being the coefficient I have tested:

    Code:
    coef <- "TreatDPN"
    logFC <- fit2$coefficients[, coef, drop = FALSE]/log(2)
    However, again, I can not come to the LRT table reported value starting from my raw count data. What am I overlooking here?

    Any help would be greatly appreciated.
    Koen.

Latest Articles

Collapse

  • seqadmin
    Recent Advances in Sequencing Analysis Tools
    by seqadmin


    The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
    05-06-2024, 07:48 AM
  • seqadmin
    Essential Discoveries and Tools in Epitranscriptomics
    by seqadmin




    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
    04-22-2024, 07:01 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 06:35 AM
0 responses
15 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-09-2024, 02:46 PM
0 responses
21 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-07-2024, 06:57 AM
0 responses
18 views
0 likes
Last Post seqadmin  
Started by seqadmin, 05-06-2024, 07:17 AM
0 responses
19 views
0 likes
Last Post seqadmin  
Working...
X