Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • DESeq: condition A vs condition B

    How does DESeq which columns to assign to condition A and which to assign to column B? I previously ran an analysis in which column A corresponded to samples from males and column b corresponded to samples from females. This time around, it just so happens that column A corresponds to females and B to males. This is problematical for comparing datasets (for fold-change comparisons) so I tried to force DESeq to assign A to females using the following command:

    res = nbinomTest( cds, "male", "female" )

    but this did not have the intended effect (i.e. there was no change) - "A" is still females. Is there any way to specify how the program defines the conditions, aside from re-ordering the columns in the input table?

  • #2
    1.3.6 Note on factor levels
    By default, R will choose a reference level for factors based on alphabetical order. Then, if you never tell the
    DESeq2 functions which level you want to compare against (e.g. which level represents the control group),
    the comparisons will be based on the alphabetical order of the levels. There are two solutions: you can either
    explicitly tell results which comparison to make using the contrast argument (this will be shown later), or
    you can explicitly set the factors levels. Setting the factor levels can be done in two ways, either using factor:

    dds$condition <- factor(dds$condition, levels=c("untreated","treated"))

    ...or using relevel, just specifying the reference level:

    dds$condition <- relevel(dds$condition, ref="untreated")

    DESeq2 manual

    Comment

    Latest Articles

    Collapse

    • 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 on Modified Bases...
      Yesterday, 07:01 AM
    • 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

    ad_right_rmr

    Collapse

    News

    Collapse

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