Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wilson90
    Member
    • May 2012
    • 48

    Generally Applicable Gene-set Analysis (GAGE) problem

    I am trying to use GAGE to do some pathway analysis based on RNA-Seq data. The vignette is nicely written, but there is an error that I do not know if it is my fault in my script.

    I will show you the error first:
    Code:
    > head(expression.kegg.esg.up$coreGeneSets,4)
    $`hsa00190 Oxidative phosphorylation`
    character(0)
    
    $`hsa03010 Ribosome`
    character(0)
    
    $`hsa04141 Protein processing in endoplasmic reticulum`
    character(0)
    
    $`hsa04120 Ubiquitin mediated proteolysis`
    character(0)
    
    > head(expression.kegg.esg.dn$coreGeneSets,4)
    $`hsa04610 Complement and coagulation cascades`
    character(0)
    
    $`hsa04640 Hematopoietic cell lineage`
    character(0)
    
    $`hsa00140 Steroid hormone biosynthesis`
    character(0)
    Apparently, these are the list of significant pathway identified. I couldnt figure why the gene sets are missing in each pathway, unlike what is shown in the vignette. It is required for next step of the analysis.
    (link: http://bioconductor.org/packages/2.1...html/gage.html)

    I am thinking that because I might have probably converted the Entrez ID of Kegg.gs to Symbol instead. But, I am clueless on how it caused this error.

    My script:
    Code:
    #read data
    data = read.table("data.txt")
    row = read.table("rownames3.txt")
    col = read.table("colnames3.txt")
    length(col$V1)
    expression = matrix(scan("data3.txt"),byrow=T,ncol=length(col$V1),dimnames=list(row$V1,col$V1))
    str(expression)
    head(expression)
    
    #reading Gene set data input
    filename=system.file("extdata/c2.demo.gmt",package="gage")
    demo.gs=readList(filename)
    cn=colnames(expression)
    hn=grep('A710003',cn,ignore.case=T)
    dn=grep('A710004',cn,ignore.case=T)
    data(kegg.gs)
    data(egSymb)
    
    #convert it back to entrez id
    head(rownames(expression))
    kegg.gs.sym<-lapply(kegg.gs,eg2sym)
    lapply(kegg.gs.sym[1:3],head)
    
    #preliminra
    expression.kegg.p <- gage(expression,gsets=kegg.gs.sym, ref=hn, samp=dn, saaTest=gs.KSTest)
    write.table(rbind(expression.kegg.p$greater,expression.kegg.p$less), file="kegg_kstest.txt",sep="\t")
    expression.kegg.2d.p <- gage(expression,gsets=kegg.gs.sym, ref=hn, samp=dn, saaTest=gs.KSTest, same.dir=F)
    write.table(rbind(expression.kegg.2d.p$greater,expression.kegg.2d.p$less), file="kegg_kstest_2d.txt",sep="\t")
    
    #find sig pathway
    expression.kegg.sig = sigGeneSet(expression.kegg.p, outname="expression.kegg")
    expression.kegg.2d.sig = sigGeneSet(expression.kegg.2d.p, outname="expression.kegg.2d")
    write.table(expression.kegg.2d.sig$greater, file="kegg_kstest_2d_sig.txt",sep="\t")
    
    #sort and count significant gene sets based on q-value or p-va
    expression.kegg.esg.up <- esset.grp(expression.kegg.p$greater,expression,gsets=kegg.gs.sym, ref=hn,samp=dn,test4up=T,output=T,outname="expression.kegg.up",make.plot=F)
    expression.kegg.esg.dn <- esset.grp(expression.kegg.p$less,expression,gsets=kegg.gs.sym, ref=hn,samp=dn,test4up=T,output=T,outname="expression.kegg.dn",make.plot=F)
    head(expression.kegg.esg.up$setGroups,4)
    head(expression.kegg.esg.up$essentialSets,4)
    head(expression.kegg.esg.up$coreGeneSets,4)
    head(expression.kegg.esg.dn$coreGeneSets,4)
    My problem is that I can't proceed to the next step of analysis unless I ensure that the pathways contain the genes.
    Many thanks.
  • pparg
    Member
    • Aug 2008
    • 19

    #2
    It would be helpful if you can post your input data here too.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
      by SEQadmin2


      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

      The systematic characterization of the human proteome has
      ...
      07-20-2026, 11:48 AM
    • SEQadmin2
      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
      by SEQadmin2



      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
      ...
      07-09-2026, 11:10 AM
    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      07-08-2026, 05:17 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 12:17 PM
    0 responses
    14 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-23-2026, 11:41 AM
    0 responses
    15 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-20-2026, 11:10 AM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-13-2026, 10:26 AM
    0 responses
    37 views
    0 reactions
    Last Post SEQadmin2  
    Working...