Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Output count table in DESeq 2

    Hello all,

    I am trying to output the count table that is created to be used for differential expression analysis in DESeq. I'm just having trouble on what code to use to get a tab-delimited text file with Gene_ID as row headers and replicates as column headers.
    This is what I have so far. Could this be done in HTSeq-count?
    Code:
    library("DESeq2")
    
    files = c("merged_sample_2.bam_htseq_out.txt","merged_sample_11.bam_htseq_out.txt","merged_sample_20.bam_htseq_out.txt","merged_sample_3.bam_htseq_out.txt","merged_sample_12.bam_htseq_out.txt","merged_sample_21.bam_htseq_out.txt")
    
    cond = c("GFP","GFP","GFP","DBM","DBM","DBM")
    
    sTable = data.frame(sampleName = files, fileName = files, condition = cond)
    
    dds <-DESeqDataSetFromHTSeqCount(sampleTable=sTable, directory = "/Volumes/cachannel/RNA_SEQ/Notch_RNASeq/in_silico_test/DESeq", design = ~condition)
    I am planning on using this count table with a tool called Scotty - "a tool to assist in the designing of RNA Seq experiments that have adequate power to detect differential expression at the level required to achieve experimental aims" Check it out here: http://scotty.genetics.utah.edu/

    Thanks

  • #2
    Do I understand it correctly that you haven't used htseq-count up to this point?

    Comment


    • #3
      I have used htseq-count, I even have the count files from that but I would like to put that in a tab delimited text file.

      Comment


      • #4
        The function DESeqDataSetFromHTSeqCount should be perfectly able to read in the separate htseq-count files. Using this link you can find some pointers: http://rpackages.ianhowson.com/bioc/...eqDataSet.html

        Comment


        • #5
          Thanks! I understand how this works - just having trouble outputting the table in a tab delimited text file. Any help on that? I even have tried to output the count table in a csv format using write.csv(), but ran into an error.

          Comment


          • #6
            you can access the counts from the dds object by using the counts <- assay(dds) function if I'm not terribly mistaken

            Comment


            • #7
              Okay, I think i've got it. Thank you very much!

              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