Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KoenVdb
    Junior Member
    • Jan 2014
    • 1

    #1

    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

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
25 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
20 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...