Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindrle
    Senior Member
    • Aug 2013
    • 266

    #1

    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!!!
  • nsl
    Member
    • Jan 2011
    • 28

    #2
    Hi sindrle,

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

    Thanks
    nsl

    Comment

    • sindrle
      Senior Member
      • Aug 2013
      • 266

      #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

      • nsl
        Member
        • Jan 2011
        • 28

        #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

        • sindrle
          Senior Member
          • Aug 2013
          • 266

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

          Comment

          • nsl
            Member
            • Jan 2011
            • 28

            #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

            • sindrle
              Senior Member
              • Aug 2013
              • 266

              #7
              Good luck, keep us informed!!

              Comment

              Latest Articles

              Collapse

              • 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
                ...
                Yesterday, 10:25 AM
              • SEQadmin2
                How Immunogenomics Decodes Immunity’s Genetic Blueprint
                by SEQadmin2




                The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

                This convergence of genetics, immunology, and computation...
                09-01-2026, 05:41 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 09-25-2026, 09:06 AM
              0 responses
              30 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 09-23-2026, 11:05 AM
              0 responses
              25 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 09-18-2026, 11:37 AM
              1 response
              46 views
              0 reactions
              Last Post pekgio
              by pekgio
               
              Started by SEQadmin2, 09-16-2026, 10:23 AM
              1 response
              55 views
              0 reactions
              Last Post pekgio
              by pekgio
               
              Working...