Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • huan
    Member
    • Oct 2010
    • 56

    De novo RNA-Seq Assembly using Trinity gives too many unigenes.

    Hi,
    I have done the De novo RNA-Seq Assembly using Trinity with my fish data, but the number of unigenes I get is 333,843, and the N50 Length is 396. I think the number of unigenes is too many. So which parameter should I set to reduce the number of unigenes and make the N50 length longer?
    My trinity version is: Trinityrnaseq_r20131110
    All of the parameter is default.
    Thanks a lot for any suggesstion!
    happy
  • arthurmelo
    Member
    • Jul 2012
    • 19

    #2
    Hi, assuming you first parsed your data based on quality analysis using a Phred score Q>20, you certain could set the minimum length for acceptable contigs to 500 bp, for example, using --min_contig_length 500. If you do not filter your reads based on quality, I encourage you use Trimmomatic for example in order to eliminate the sequencing errors which could affect the Bruijn graphs resolution, creating several number of unresolved bubbles.

    Comment

    • huan
      Member
      • Oct 2010
      • 56

      #3
      Thanks a lot @arthurmelo.
      We have filted the low quality reads by deleting the percentage of Phred score Q>20 less than 80%. So As you suggest, we'd better fillter the reads again by Trimmomatic. I'll have a try. Thanks a lot!
      As the set of the minimum length for acceptable contigs to 500 bp will loose too many reads, I'll try when having no other choice.
      BTW, is there any other way to reduce the number of the unigenes? OR is there any other way to fillter the data?
      Last edited by huan; 12-22-2015, 05:31 PM.
      happy

      Comment

      • kmcarr
        Senior Member
        • May 2008
        • 1181

        #4
        Originally posted by huan View Post
        Thanks a lot @arthurmelo.
        We have filted the low quality reads by deleting the percentage of Phred score Q>20 less than 80%. So As you suggest, we'd better fillter the reads again by Trimmomatic. I'll have a try. Thanks a lot!
        As the set of the minimum length for acceptable contigs to 500 bp will lose too many reads, I'll try when having choice.
        BTW, is there any other way to reduce the number of the unigenes? OR is there any other way to fillter the data?
        Having ~300K contigs as the initial, raw output of Trinity isn't terribly surprising. Trinity includes some scripts for filtering this initial contig file; the most useful filtering rule is removing contigs which only include a very small number of reads supporting them. To do this you first use the analysis tools in the Trinity package to align your read data back to the assembled contigs and then RSEM to calculate the relative abundance of reads for each contig using the script 'align_and_estimate_abundance.pl' (found in the Trinity /util folder). Finally you run the script 'filter_fasta_by_rsem_values.pl' (also in the /util folder). Filtering out contigs with very low read can have a dramatic impact on the total number.

        Also, in my opinion, 500bp is much too high a threshold contig length. I routinely use 200bp.

        Comment

        • huan
          Member
          • Oct 2010
          • 56

          #5
          Thanks a lot @kmcarr.
          That's quite a good idea. But I am not sure whether the "removing contigs" means 'removing inchworm result contigs with --no_run_butterfly --no_run_quantifygraph' or not.
          Thanks a lot again.
          happy

          Comment

          • kmcarr
            Senior Member
            • May 2008
            • 1181

            #6
            Originally posted by huan View Post
            Thanks a lot @kmcarr.
            That's quite a good idea. But I am not sure whether the "removing contigs" means 'removing inchworm result contigs with --no_run_butterfly --no_run_quantifygraph' or not.
            Thanks a lot again.
            The contig filtering I am describing takes place after the Trinity assembly is complete, not during the assembly phase.

            The basic process is to use the align_and_estimate_abundance.pl script found in the Trinity util/ folder to align your input reads to the 333K contigs in your final Trinity.fasta file. It also creates abundance estimates (fpkm) using RSEM.

            Following this step you use the filter_fasta_by_rsem_values.pl script (also in util/) filter out contigs with low fpkm (threshold value is adjustable). The contigs you are removing are from the final set in the Trinity.fasta file. The output will be a new, smaller file (e.g. Trinity_filtered.fasta).

            Comment

            • huan
              Member
              • Oct 2010
              • 56

              #7
              I got it. Thanks kmcarr.
              But I wonder I will lose a lot low expressed transcript if I filter after the Trinity assembly is complete. Does it influence my analysis? BTW, if I filter before assemble, then the low expressed transcript can still be left. Will it give a better result?
              happy

              Comment

              • kmcarr
                Senior Member
                • May 2008
                • 1181

                #8
                Originally posted by huan View Post
                I got it. Thanks kmcarr.
                But I wonder I will lose a lot low expressed transcript if I filter after the Trinity assembly is complete. Does it influence my analysis? BTW, if I filter before assemble, then the low expressed transcript can still be left. Will it give a better result?
                When you say "filter before assembly" do you mean performing quality/adapter trrimming and filtering of your raw reads? You should pretty much always do that for any data and any downstream analysis.

                Even so it is still a good idea to perform the abundance filtering I described post assembly. What we are talking about is removing contigs with virtually no support in the underlying data, only 1-2 FPKM. Think about that for a second. These "contigs" are supported by 1 out of 1,000,000 reads. Is that a genuine, meaningful transcript? Probably not. More likely it is sequencing error masquerading as a unique transcript.

                Researchers often are far too worried about removing what is essentially noise in their data. Demanding that the bioinformatician KEEP EVERYTHING, fearing they are going to miss some big, important discovery. In reality it just confounds the analysis.

                Comment

                • huan
                  Member
                  • Oct 2010
                  • 56

                  #9
                  Thanks a lot kmcarr. Your answer really works great.
                  happy

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    Yesterday, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM
                  • GATTACAT
                    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                    by GATTACAT
                    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                    07-01-2026, 11:43 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, Yesterday, 10:04 AM
                  0 responses
                  10 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  7 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  15 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-02-2026, 11:08 AM
                  0 responses
                  31 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...