This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to determine number of contigs used in Trinity assembly?

Hello,

How do I go about determining how many contigs were used in the de novo trinity assembly i assembled?

Thanks for the help!

Nikelle

trinity de assembly rna-seq

Run the following command using your fasta assembly file

  grep -c "^>" trinity_fasta_assembly_file

2 answers

There is also a perl script called TrinityStats.pl in the 'util' directory that will give you stats for genes, transcripts, reconstruction size and N metrics. Use as 'perl /path/to/your/install/util/TrinityStats.pl your_assembly.fasta'

There is a perl script in the Trinity util folder called "TrinityStats.pl"

You can use it as follow:

perl /trinityrnaseq-2.2.0/util/TrinityStats.pl  /folder2file/Trinity.fasta

Edit: I see @st.ph.n just commented the same solution! Nevermind...

Log in to answer this question.