Announcement

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

  • Copy number adjusted differential expression using edgeR and limma in a small region

    Hi all,

    I would like to find differentially expressed genes within a region spanning approx 1 megabase while adjusting for the copy number status in that region. I'm looking for a way to do this using both limma (for microarray) and edgeR (for rnaseq). Reading the manuals I've come up with the basics but I'm stuck at defining the contrasts.

    To start I've defined the following variables:
    cases is a factor of length 50 with the different cases, all variables are of this length and in this order
    genes is a list of genes in the 1 mb region
    groups is a factor splitting cases in "Disease" (1) and "Normal" (0)
    groups_cn is a factor of copy number states: "Normal" (0), "Amplified" (1) and "Deleted" (-1)

    Limma
    Code:
    af_chr = af[rownames(af) %in% genes, , drop=F]
    af_design = model.matrix(~ 0 + cn_groups + groups)
    de_af = lmFit(af_chr, design=af_design)
    fit = eBayes(de_af)
    ans_af=topTable(fit, adjust="fdr", number=length(fit$coefficients), coef='groupsDisease')
    When looking at ans_af, am I seeing the differentially expressed genes after adjusting for copy number? Or, am I seeing genes differentially expressed between disease and normal disregarding copy number?

    edgeR
    Code:
    ge_chr = ge[rownames(ge) %in% genes, , drop=F]
    ge_design = model.matrix(~ 0 + cn_groups + groups)
    de_ge = DGEList(ge_chr, group = groups)
    de_ge = estimateGLMCommonDisp(de_ge, design = ge_design)
    de_ge = estimateGLMTagwiseDisp(de_ge, design = ge_design)
    fit = glmFit(de_ge, design = ge_design) 
    test = glmLRT(fit, coef = 'groupsDisease')
    ans_ge = topTags(test)
    Here the same question, when looking at ans_ge, am I seeing the differentially expressed genes after adjustment for copy number, or just the ones different between Disease and Normal?

    Thanks

  • #2
    It depends what you mean by "adjusting for copy number". Your analysis is adjusting for baseline differences between the copy number groups, but it is also assuming that the logFC between Disease and Normal is the same for all the copy number groups. Is that a reasonable assumption?

    If you want to do the DE analysis between Disease and Normal separately for each copy number group, then that can be achieved by:

    design <- model.matrix(~cn_groups + cn_groups:groups)

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advanced Tools Transforming the Field of Cytogenomics
      by seqadmin


      At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
      09-26-2023, 06:26 AM
    • seqadmin
      How RNA-Seq is Transforming Cancer Studies
      by seqadmin



      Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
      09-07-2023, 11:15 PM
    • seqadmin
      Methods for Investigating the Transcriptome
      by seqadmin




      Ribonucleic acid (RNA) represents a range of diverse molecules that play a crucial role in many cellular processes. From serving as a protein template to regulating genes, the complex processes involving RNA make it a focal point of study for many scientists. This article will spotlight various methods scientists have developed to investigate different RNA subtypes and the broader transcriptome.

      Whole Transcriptome RNA-seq
      Whole transcriptome sequencing...
      08-31-2023, 11:07 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 06:57 AM
    0 responses
    9 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-26-2023, 07:53 AM
    0 responses
    8 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-25-2023, 07:42 AM
    0 responses
    15 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-22-2023, 09:05 AM
    0 responses
    44 views
    0 likes
    Last Post seqadmin  
    Working...
    X