Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bernardo_bello
    Member
    • May 2012
    • 49

    #1

    Too many DEG with edgeR output?

    Hi there,

    I'm dealing with bacterial RNA-seq analysis. My experiment is very simple. Two samples to compare and no replicates. Reads were generated with Ion Torrent PGM using 316 chip. One for each sample and performed in different days.

    Since I had too many differentially expressed genes, ¿Should I be more conservative assigning edgeR dispersion value? Also, there are considerable more up-regulated genes in *exvivo* than in plate sample.

    See logFC_vs_logCPM figure:



    Thanks for you help, Bernardo



    - tmap code:

    tmap map2 -f HPNK_clean.fsa -r exvivo.fastq -i fastq -s exvivo.sam --verbose

    tmap map2 -f HPNK_clean.fsa -r plate.fastq -i fastq -s plate.sam --verbose

    - Flasgstat:

    exvivo:

    >3240242 + 0 in total (QC-passed reads + QC-failed reads)


    >2132481 + 0 mapped (65.81%:nan%)

    plate:

    >3774075 + 0 in total (QC-passed reads + QC-failed reads)


    >3510438 + 0 mapped (93.01%:nan%)


    - count:

    python -m HTSeq.scripts.count -m intersection-nonempty -t CDS -i ID exvivo.sam HPNK.gff > exvivo.counts

    python -m HTSeq.scripts.count -m intersection-nonempty -t CDS -i ID plate.sam HPNK.gff > plate.counts


    - count stats:

    ex-vivo stats

    >no_feature 777946

    >ambiguous 1

    >too_low_aQual 0

    >not_aligned 1107761

    >alignment_not_unique 0

    plate stats

    >no_feature 776707

    >ambiguous 47

    >too_low_aQual 0

    >not_aligned 263637

    >alignment_not_unique 0

    - edgeR code:

    library(edgeR)

    files <- dir(pattern="*\\.counts$")

    RG <- readDGE(files, header=FALSE)

    RG

    keep <- rowSums(cpm(RG)>1) >= 2 #we keep genes that achieve at least one count per million (cpm) in at least three samples

    RG <- RG[keep,]

    dim(RG)


    RG <- calcNormFactors(RG)

    RG$samples


    plotMDS(RG)


    bcv <- 0.2 #Assigned dispersion value of 0.2

    m <- as.matrix(RG)

    d <- DGEList(counts=m, group=(1:2)) #modify 'group' depending on sample number. Also can be adapted to replicated samples, see'?DGEList'.

    d

    et <- exactTest(d, pair=(1:2),dispersion=bcv^2) #exactTest(RG, pair=(1:2),dispersion=bcv^2)

    et

    top <- topTags(et)

    top

    cpm(RG)[rownames(top), ] #Check the individual cpm values for the top genes:

    summary(de <- decideTestsDGE(et)) #The total number of DE genes at 5% FDR is given by'decideTestsDGE'.


    [,1]

    -1 200

    0 1176

    1 769

    Of the 'number' tags identified as DE, 769 are up-regulated ex-vivo and 200 are down-regulated.

    detags <- rownames(RG)[as.logical(de)] #detags contains the DE genes at 5% FDR

    plotSmear(et, de.tags=detags) #plot all genes and highlight DE genes at 5% FDR

    abline(h=c(-1, 1), col="blue") #The blue lines indicate 2-fold changes.

    title("plate vs ex-vivo")

    dev.copy2pdf(file = "Figure_1.pdf") #Save as .pdf##

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
23 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...