Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • DESeq2-test a subset of genes

    Hi,
    I've been using DESeq2 to test for differential expression within my dataset-a simple study design of treatment versus control.

    For a small number of genes in my dataset (10) I have genotype information for my samples (AA,AB,BB) for a known disease-associated SNP located within the given gene and so I was firstly wondering if it would be feasible to use DESeq2 to test if a particular genotype is having any effect on its genes expression? and also Would I have to conduct the analysis on all genes in the dataset or could I subset the genes of interest?

    Thanks for any advice!

  • #2
    10 genes is probably too small for some of the steps of DESeq(): the estimation of the dispersion trend line for instance.

    One approach would be to estimate the dispersion using the full data set and then recycle these estimates to test the effect of genotype in the 10 genes.

    following your analysis of condition: treatment vs control:

    # if rowIdx gives you the index of the 10 genes
    ddsSub <- dds[rowIdx,]
    design(ddsSub) <- formula(~ condition + genotype)
    ddsSub <- nbinomWaldTest(ddsSub)
    resSub <- results(ddsSub)

    This should be a conservative approach, because the estimate of dispersion using only condition should be larger than an estimation using condition + genotype (because any variation explainable by genotype would be subtracted).

    Another question is what modeling approach for the genotype effect.

    If you encode genotype as a numeric, (0,1,2) then you are assuming if AB doubles expression then would you expect BB to quadruple.

    Another approach would be to encode genotype with two variables, allele1 and allele2, where having allele2 might have a different effect size than allele1. Then you would have:

    design(ddsSub) <- formula(condition + allele1 + allele2)

    hopefully this helps,

    Mike

    Comment


    • #3
      After discussing with Simon Anders, he pointed out that, while conservative, this approach probably has no power to detect true differences, because in these situations the dispersion will be overestimated.

      With only 10 genes, you might be left to estimate the dispersions per gene only, without shrinking towards a common mean, as you probably don't have a large enough set to get a sense of the distribution of dispersions. This would look like:

      # dds is now the object limited to 10 genes
      design(dds) <- formula(~ condition + genotype)
      dds <- estimateSizeFactors(dds)
      dds <- estimateDispersionsGeneEst(dds)
      dispersions(dds) <- mcols(dds)$dispGeneEst
      dds <- nbinomWaldTest(dds)

      An alternative approach, if you have enough samples, would be to perform permutation tests on the relationship between gene expression and genotype. See section "6.3 Linear regression and estimation of FDR" of the Supplement of the Pickrell eQTL paper: http://www.ncbi.nlm.nih.gov/pubmed/20220758

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      30 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      32 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      53 views
      0 likes
      Last Post seqadmin  
      Working...
      X