Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Starr_Hazard
    Member
    • Nov 2010
    • 19

    cummeRbund ANDing in getSig

    Folks,

    getSig can select a set based on alpha level eg

    mySigGenes<-getSig(cuff,x='Control',y='Experiment',alpha=0.01,level='genes')

    Is there a way to get alpha=0.01 AND ,say, FPKM greater or lesser than some value?

    Is there an "AND" syntax?

    Thanks,
    Starr
  • lgoff
    Member
    • Feb 2008
    • 82

    #2
    Hi Starr,
    This is something that is not implemented in getSig, or any of the other retrieval functions at this point. The problem is that there are numerous fields for which we could create arguments against which to query. And this would unnecessarily burden the function. One suggestion, if you are familiar with SQL querying, would be to directly query the cuffData.db database (either directly from SQLite or within R using the RSQLite package) to generate the list of tracking ids you are interested in and then use this list as input to getGenes.

    Cheers,
    Loyal

    Comment

    • billstevens
      Senior Member
      • Mar 2012
      • 120

      #3
      Hi Loyal,

      So I've been using MS Access to query my tables, but I'd much rather use cummeRbund. I know how to use SQL within MS Access (syntax, querying, etc.), but I don't know how to get the CuffSet down to just the isoform or cds table, which I could then query. Sorry for the basic question.

      Comment

      • billstevens
        Senior Member
        • Mar 2012
        • 120

        #4
        Hey guys,

        So I'm really working on this cummeRbund stuff, trying to get good at it.

        My goal is to create a heatmap with some of my significant genes across 3 samples. I want to do a join from significant gene IDs which I got from the getSig function to my genes table. But genes(cuff_data) is an object. How do I get it to be a data.frame? I can do this in Access, but I want to know how to do this in R. I can do the queries; I just can't figure out how to get down to something I can query.

        Help?

        Comment

        • lgoff
          Member
          • Feb 2008
          • 82

          #5
          Originally posted by billstevens View Post
          Hey guys,

          So I'm really working on this cummeRbund stuff, trying to get good at it.

          My goal is to create a heatmap with some of my significant genes across 3 samples. I want to do a join from significant gene IDs which I got from the getSig function to my genes table. But genes(cuff_data) is an object. How do I get it to be a data.frame? I can do this in Access, but I want to know how to do this in R. I can do the queries; I just can't figure out how to get down to something I can query.

          Help?
          Hi bill,
          If you have a list of gene_id values that you have generated from your merges, you can use the getGenes() function as follows:

          cuff<-readCufflinks()
          myGenes<-getGenes(cuff,myGeneIds)

          This will create a 'CuffGeneSet' object. To generate a heatmap from this all you would have to do is:

          csHeatmap(myGenes)

          If you want access to the raw FPKM values:

          fpkm(myGenes) #returns a data.frame

          Differential expression values:

          diffData(myGenes) #again, a data.frame

          Associated annotation:

          annotation(myGenes)

          Also, if you can generate an appropriate SQL query to get the data that you like, you can do something like the following:

          cuff<-readCufflinks()

          mySQL<-'SELECT * FROM <some_table> etc, etc, etc'

          res<-dbGetQuery(DB(cuff),mySQL)

          #This should return the results of your query if designed appropriately against the tables in the cuffData.db.

          Hope this helps!

          Cheers,
          Loyal

          Comment

          • lgoff
            Member
            • Feb 2008
            • 82

            #6
            Originally posted by billstevens View Post
            Hi Loyal,

            So I've been using MS Access to query my tables, but I'd much rather use cummeRbund. I know how to use SQL within MS Access (syntax, querying, etc.), but I don't know how to get the CuffSet down to just the isoform or cds table, which I could then query. Sorry for the basic question.
            Hi Bill,
            Also, you can always retrieve the FPKM, differential expression data, and annotation for any of the sub-level features by doing something like the following:

            cuff<-readCufflinks()

            fpkm(genes(cuff))

            fpkm(isoforms(cuff))

            diffData(TSS(cuff))

            annotation(CDS(cuff))

            etc, etc, etc.

            Cheers,
            Loyal

            Comment

            • Starr_Hazard
              Member
              • Nov 2010
              • 19

              #7
              Thanks again Loyal. That's just the sort of child's primer for relating SQLite and cummeRbund that I have been looking for

              Comment

              • billstevens
                Senior Member
                • Mar 2012
                • 120

                #8
                Originally posted by lgoff View Post
                Also, if you can generate an appropriate SQL query to get the data that you like, you can do something like the following:

                cuff<-readCufflinks()

                mySQL<-'SELECT * FROM <some_table> etc, etc, etc'

                res<-dbGetQuery(DB(cuff),mySQL)

                #This should return the results of your query if designed appropriately against the tables in the cuffData.db.

                Hope this helps!

                Cheers,
                Loyal
                So I keep trying this and I cannot get it to find the database. It tells me that DB is not a valid function. When I use readCufflinks, the second line says it creates a database at C:/Users..... but that does not respond either. How do I specify the database?

                Comment

                • lgoff
                  Member
                  • Feb 2008
                  • 82

                  #9
                  Hi Bill,
                  Thanks for pointing this out to me. It turns out that I did not add the function DB() to the namespace for the package which is why R doesn't recognize it as a valid function. I have fixed this for future releases, but in the meantime, you can do either of the following:

                  instead of
                  Code:
                  DB(cuff)
                  (which will ultimately be the 'preferred' way of accessing the database directly) you can do:

                  Code:
                  cummeRbund:::DB(cuff)
                  OR

                  Code:
                  cuff@DB
                  (this is not recommended, but will give you direct access to the @DB slot of the cuff object)

                  Sorry for that! and thanks again for bringing this to my attention!

                  Cheers,
                  Loyal

                  Comment

                  • billstevens
                    Senior Member
                    • Mar 2012
                    • 120

                    #10
                    Thanks Loyal!

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                      by SEQadmin2


                      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                      ...
                      06-02-2026, 10:05 AM
                    • SEQadmin2
                      Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                      by SEQadmin2


                      With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                      Introduction

                      Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                      05-22-2026, 06:42 AM
                    • SEQadmin2
                      Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                      by SEQadmin2

                      Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                      Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                      05-06-2026, 09:04 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Today, 08:59 AM
                    0 responses
                    4 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-02-2026, 12:03 PM
                    0 responses
                    21 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-02-2026, 11:40 AM
                    0 responses
                    14 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 05-28-2026, 11:40 AM
                    0 responses
                    29 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...