Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emalandrak
    Member
    • Jan 2014
    • 11

    #1

    DESeq help

    Hello everybody
    I am new in RNAseq analysis, so I have some trouble trying to study differential gene expression. DEseq manual is really informative to work with but my question is about creating the input file. I found HT count but it needs a gff file and a SAM file with the aligned reads. If there is not a reference genome or transcriptome to download a gff file which is the way to construct it? I suppose by changing a tab delimited file from blastx but which exactly is the format for a gff as an input to HT count? Is there any automated software to annotate the constructed transcripts (output of e.g. Oases or Trinity) and create a gff?
    Thanks in advance.
  • simonandrews
    Simon Andrews
    • May 2009
    • 870

    #2
    It might be easier to say what you do have and then work from there. Ultimately DESeq just needs a matrix of count values for different genes and it doesn't really care where they come from, so if you have count data already you can just make a matrix out of it and start from that point in DESeq.

    Comment

    • emalandrak
      Member
      • Jan 2014
      • 11

      #3
      DE seq

      Dear Simon
      Thank you very much for your reply.
      The fact is that I don't have the count data. I have the BAM files from tophat, where the reads are mapped on the contructed transcriptome from Trinity. The problem is how to produce the count table for DESeq. I tryed HTseq but I had problems on installing it (and also needs a gff). So i need the way to produce the count table for DEseq

      Comment

      • simonandrews
        Simon Andrews
        • May 2009
        • 870

        #4
        If the reads are mapped to assembled transcripts already then your count table is simply going to be the number of hits to each different accession in the set of transcripts. You just need to collate the number of hits to each different sequence id.

        There may well be a program around which collates this already, but if not then it's a very small script to generate this data from a set of BAM files. If no one knows of a pre-built solution for this and you're not confident in having a go yourself then I can put something together which does this pretty quickly.

        Comment

        • simonandrews
          Simon Andrews
          • May 2009
          • 870

          #5
          Having thought about this I found I did have a script which almost does what you want. This was something we used for miRNA mapping, but it's essentially the same idea you have in that you're mapping to a library of different sequences. The script below simply collates the hits to each different sequence in a set of SAM files (you could pipe the open of your bam files through "samtools view" to make it work from BAM files.

          Code:
          #!/usr/bin/perl
          use warnings;
          use strict;
          
          my @sam_files = <*sam>;
          
          my %counts;
          
          for my $index (0..$#sam_files) {
              my $sam_file = $sam_files[$index];
          
              warn "Processing $sam_file\n";
          
              open (IN,$sam_file) or die $!;
          
              while (<IN>) {
          	next if (/^@/);
          
          	my (undef,undef,$mirna) = split(/\t/);
          	next if ($mirna eq '*');
          
          	$counts{$mirna}->[$index]++;
              }
          }
          
          open (OUT,'>','summarised_mirna_counts.txt') or die $!;
          
          print OUT join("\t",("miRNA",@sam_files)),"\n";
          
          foreach my $mirna (keys %counts) {
          
              my @counts = @{$counts{$mirna}};
          
              for (0..$#counts) {
          	$counts[$_] = 0 unless ($counts[$_]);
              }
          
              for ($#counts+1..$#sam_files) {
          	$counts[$_] = 0;
              }
          
              print OUT join("\t",($mirna,@counts)),"\n";
          } 
          
          
          close OUT or die $!;

          Comment

          • twotwo
            Member
            • May 2012
            • 40

            #6
            Hi,
            I used HTseq from python. First you need to install python, then HTseq.... Just follow the instruction.

            Comment

            • emalandrak
              Member
              • Jan 2014
              • 11

              #7
              DEseq help

              Dear Simon
              Thank you very much for your script.
              But I can't understand the script, since I have no background on programming. Anyway, I ll read some Pearl and I will give it a try. Thank you very much.

              Comment

              • emalandrak
                Member
                • Jan 2014
                • 11

                #8
                DEseq help

                Thank you twotwo

                I will give it a try again....

                Comment

                Latest Articles

                Collapse

                • kinpict.com
                  Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by kinpict.com
                  The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                  Today, 06:37 PM
                • SEQadmin2
                  16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                  by SEQadmin2





                  NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                  10-30-2026, 06:46 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 11-12-2026, 07:59 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-05-2026, 09:25 AM
                0 responses
                35 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-03-2026, 11:54 AM
                2 responses
                56 views
                0 reactions
                Last Post kinpict.com  
                Started by SEQadmin2, 10-28-2026, 09:57 AM
                0 responses
                175 views
                0 reactions
                Last Post SEQadmin2  
                Working...