Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Using GOseq on Cuffdiff output

    Hi!
    I have data from Cuffdiff, but do not understand how to do the following (from GOseq manual):

    2 Reading data
    We assume that the user can use appropriate in-built R functions (such as read.table or scan) to obtain two vectors, one containing all genes assayed in the RNA-seq experiment, the other containing all genes which are DE. If we assume that the vector of genes being assayed is named assayed.genes and the vector of DE genes is named de.genes we can construct a named vector suitable for use with goseq using the following:
    > gene.vector=as.integer(assayed.genes%in%de.genes)
    > names(gene.vector)=assayed.genes
    > head(gene.vector)
    It may be that the user can already read in a vector in this format, in which case it can then be immediately used by goseq.

    Can anyone pls help? Thanks alot!!!

  • #2
    Hi sindrle,

    Did you figure out how to input cuffdiff results into goseq?

    Thanks
    nsl

    Comment


    • #3
      The first steps I made an input looking like "genes" (see the manual), basically two columns, one with gene names and one with either 1 or 0 meaning DE or non-DE.

      library(edgeR)
      library(org.Bt.eg.db)
      library(goseq)
      library(GO.db)
      library(annotate)

      # 6.5 GO analysis
      # 6.5.1 Fitting the Probability Weighting Function (PWF)
      # #Getting gene length
      pwf=nullp(MyoGenesGOseq,"hg19","geneSymbol")
      pwfAdi=nullp(AdiGenesGOseq,"hg19","geneSymbol")

      ##6.5.2 Using the Wallenius approximation
      GO.wall=goseq(pwf,"hg19","geneSymbol")
      head(GO.wall)
      GO.wallAdi=goseq(pwfAdi,"hg19","geneSymbol")
      head(GO.wallAdi)

      ##6.5.6 Making sense of the results
      enriched.GO=GO.wall$category[p.adjust(GO.wall$over_represented_pvalue, method="BH") < 0.1]

      enriched.GOAdi=GO.wallAdi$category[p.adjust(GO.wallAdi$over_represented_pvalue, method="BH") < 0.13]

      library(GO.db)

      for(go in enriched.GO[1:5]){
      print(GOTERM[[go]])
      cat("--------------------------------------\n")
      }

      for(go in enriched.GOAdi[1:1]){
      print(GOTERM[[go]])
      cat("--------------------------------------\n")
      }
      Last edited by sindrle; 03-14-2014, 11:41 AM. Reason: Wops, wrong package..

      Comment


      • #4
        Thank you for the quick reply Sindrle. I am new to this, may I bother you with a few more questions in the future if I get stuck?

        sincerely,

        nsl

        Comment


        • #5
          Well, I have just taken a quick look myself, but you can try!

          Comment


          • #6
            Phew!

            Sindrle, I thought i had my work cut out. I couldn't make head or tail of things at first. Very kind of you. I am going through the manual and shall incorporate your advice in the process. Thank you. It must be late in Norway!

            Comment


            • #7
              Good luck, keep us informed!!

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Recent Advances in Sequencing Analysis Tools
                by seqadmin


                The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                05-06-2024, 07:48 AM
              • 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...
                04-22-2024, 07:01 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 05-14-2024, 07:03 AM
              0 responses
              24 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-10-2024, 06:35 AM
              0 responses
              44 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-09-2024, 02:46 PM
              0 responses
              58 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-07-2024, 06:57 AM
              0 responses
              44 views
              0 likes
              Last Post seqadmin  
              Working...
              X