1
$\begingroup$

I am having trouble with some underlying questions about my project.

I have ran a Trinity tool to create a trinity.fasta file.

To determine some underlying questions, I used the utility asm_stats to gather some basic statistics.

I am just having some issues of calculating data.

DATA:

Main genome scaffold N/L50: 7464/1.032 KB
Main genome contig N/L50: 7464/1.032 KB
Main genome scaffold N/L90: 14314/106
Main genome contig N/L90: 14314/106

Number of contigs (scaffold length):

25,534 (ALL)
25,534 (100)
21,609 (250)
10,818 (500)
907 (1 KB)
38 (2.5KB)
5 (5 KB)
2 (10KB)

With the data attached above, would my N50 and N90 length in BASE PAIRS so excluding the kb, be 7464 and 14314, respectively?

Would the number of contigs produced by this assembly be 7, since there are 7 different contigs produced or would it be 25,534?

Thanks!

$\endgroup$
1
$\begingroup$

With the data attached above, would my N50 and N90 length in BASE PAIRS so excluding the kb, be 7464 and 14314, respectively?

Looks like this is inverse so your N50 is 1032bp and your N90 is 106bp. N90 cannot be longer than N50 by definition. You L50 and L90 are 7464 and 14314

Would the number of contigs produced by this assembly be 7, since there are 7 different contigs produced or would it be 25,534?

25534

Now for the real answer. Do not calculate or report N50 on transcript assemblies. It is more than useless. Transcriptomes are - by nature - dynamic in length. Longer is not better in this regard. Are your short transcripts lower quality assemblies, probably not, but N50 treats them as such. Please read the Trinity wiki for other, better ways to QC your transcript assembly.

$\endgroup$
  • $\begingroup$ Hi @BastianSchiffthaler, thank you for your help! Ok so basically, one is the count and one is the length. Therefore, would my N50 length be 1032bp or is that my count? Then would 7464 be my length? $\endgroup$ – AlphaQueUp Nov 12 '20 at 23:22
  • $\begingroup$ Also, say if my N50 length is base pairs was 1032 and I wanted to find out "how many contigs are as long or longer than then the length of 1032; would this simply just be 25,534 - 1032 = 24,502? Thanks! @Bastian Schiffthaler $\endgroup$ – AlphaQueUp Nov 12 '20 at 23:50
  • $\begingroup$ Let's say you order your contigs from longest to shortest. After that, you calculate the sum of all contig lengths, i.e. the total length of your assembly. Now you go from the longest contig to the shortest until the cumulative sum reaches >=50% of the total length. The length of the contig at that position is the N50, the number of contigs you had to include to reach 50% is the L50. N50 = length = 1032bp. L50 = count = 7464. 25534 − 7464 = 18070 contigs are shorter than your N50. $\endgroup$ – Bastian Schiffthaler Nov 13 '20 at 0:03
  • $\begingroup$ So then that would simply just mean that 7464 contigs are as long or longer than my N50 @BastianSchiffthaler and 14314 for N90? I apologize for the repetitive questions. I am just starting to learn bioinformatics, so this is all a new language to me. I appreciate all your help! $\endgroup$ – AlphaQueUp Nov 13 '20 at 3:02
  • $\begingroup$ Yes. That's correct $\endgroup$ – Bastian Schiffthaler Nov 13 '20 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.