Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • #31
    Originally posted by AddDNAse View Post
    Hi everyone,

    I hope someone is still checking this thread. I am having a very similar problem. I have tried all of the troubleshoots posted here. I keep getting the following:
    tracking_id gene_short_name
    1 XLOC_000010 <NA>
    2 XLOC_000011 <NA>
    3 XLOC_000013 <NA>
    4 XLOC_000014 <NA>
    5 XLOC_000018 <NA>
    6 XLOC_000022 <NA>
    Hi AddDNAse, Can you provide a bit more context here. How are you generating this list of tracking_id and gene_short_names. Can you find a gene by gene_short_name using findGene()? Can you post a bit more of the code to provide a better description of what's going on.

    Thanks,
    Loyal

    Comment


    • #32
      Hi Loyal,

      First of all, I'm using the S. cerevisiae annotation and genome from Ensembl (found on the Cufflinks website). I have modified the annotation to include a few smallRNAs.

      This list I posted was done using the following code:
      Code:
      gene_diff_data<-diffData(genes(cuff_data))
      sig_gene_data<-subset(gene_diff_data, (significant == 'yes'))
      diffGenes<-getGenes(cuff_data, sig_gene_data$gene_id)
      head(featureNames(diffGenes),n=3)
      I also tried doing the following:
      Code:
      gene.features<-annotation(genes(cuff))
      head(gene.features)
      Where I get the same result (almost all are 'NA' for gene_short_name with a few exceptions).

      Originally posted by lgoff View Post
      Hi AddDNAse, Can you provide a bit more context here. How are you generating this list of tracking_id and gene_short_names. Can you find a gene by gene_short_name using findGene()? Can you post a bit more of the code to provide a better description of what's going on.

      Thanks,
      Loyal
      Hope this is enough info? Thanks!
      Last edited by AddDNAse; 05-14-2014, 02:02 PM.

      Comment


      • #33
        Hi everyone,

        I'm just posting this for the benefit of anyone looking for help on the topic in the future. I worked out a variation of the code posted earlier by Thomas but modified to handle merging in the face of duplicate lines in the table. Here's a simplified version of what we're using in GenePattern for the CummeRbund.QcReport module (currently in Beta):
        Code:
              feature.level <- "genes"
                 # ... or "isoforms", "TSS", "CDS"
              idColumnName <- "gene_id"
                 # ... or "isoform_id", "TSS_group_id", "CDS_id" to match above
              report.name <- paste0('QC.sig_diffExp_', feature.level,'.txt')
                 # ... or whatever you want
              
              cuff <- readCufflinks()
              sigIDs <- getSig(cuff,level=feature.level,alpha=0.05)
              if (NROW(sigIDs) > 0) {
                 sigFeatures <- getFeatures(cuff,sigIDs,level=feature.level)
                 sigData <- diffData(sigFeatures)
                 sigData <- subset(sigData, (significant == 'yes'))
                 names <- featureNames(sigFeatures)
                 sigOutput <- merge(names, sigData, by.x="tracking_id", 
                                    by.y=idColumnName)
                 
                 # Patch the merged table to have the original name for the ID column.  
                 # This is always the first column for the examples we've seen.
                 colnames(sigOutput)[1] <- idColumnName
                 write.table(sigData, report.name, sep='\t', row.names = F, 
                             col.names = T, quote = F)
              }
        The point here is to write a report file containing the table, but one could obviously use the sigOutput object directly instead.

        Here is similar code to do likewise for the distValue reports:
        Code:
              dist.selector.function <- promoters
                 # ... or splicing or relCDS
                 # Note that this is a function name, not a String!
              feature.level <- "genes"
                 # use "isoforms" for splicing, "genes" for promoter and relCDS
              report.name <- "QC.sig_promoter_data.txt"
                 # ... or whatever you want
        
              distData <- distValues(dist.selector.function(cuff))
              sigData <- subset(distData, (significant == 'yes'))
              if (nrow(sigData) > 0) {
                 sigIDs <- sigData[[1]]
                 sigFeatures <- getFeatures(cuff,sigIDs,level=feature.level)
                 names <- featureNames(sigFeatures)
                 sigOutput <- merge(names, sigData, by.x="tracking_id", 
                                    by.y=idColumnName)
                 colnames(sigOutput)[1] <- idColumnName
                 write.table(sigData, report.name, sep='\t', row.names = F, 
                             col.names = T, quote = F)
              }
        Just for reference, the above is for R 2.15.3, Bioconductor 2.11 and cummeRbund 2.0.0. Hope it helps someone!

        Comment


        • #34
          Hi can someone help me. I am student still learning on R. Doing a DEG analysis. i want to visualize my DEG data got from cuffdiff 2.0... When want to create Gene Set Obeject, an error occurs


          enes<-getGenes(cuffCan,myGeneIds)
          Getting gene information:
          FPKM
          Error: near ")": syntax error
          In addition: Warning message:
          Closing open result set, pending rows



          Im not sure where is the syntax error. Could someone guide me through it

          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...
            Today, 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, Today, 07:17 AM
          0 responses
          11 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-02-2024, 08:06 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-30-2024, 12:17 PM
          0 responses
          20 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-29-2024, 10:49 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Working...
          X