<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://pgi.re.kr/index.php?action=history&amp;feed=atom&amp;title=N50_and_N90</id>
	<title>N50 and N90 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://pgi.re.kr/index.php?action=history&amp;feed=atom&amp;title=N50_and_N90"/>
	<link rel="alternate" type="text/html" href="http://pgi.re.kr/index.php?title=N50_and_N90&amp;action=history"/>
	<updated>2026-04-10T22:44:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>http://pgi.re.kr/index.php?title=N50_and_N90&amp;diff=3174&amp;oldid=prev</id>
		<title>WikiSysop at 10:41, 8 November 2010</title>
		<link rel="alternate" type="text/html" href="http://pgi.re.kr/index.php?title=N50_and_N90&amp;diff=3174&amp;oldid=prev"/>
		<updated>2010-11-08T10:41:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:41, 8 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;perl -e 'my ($len,$total)=(0,0);my @x;while(&amp;amp;lt;&amp;amp;gt;){if(/^[\&amp;amp;gt;\@]/){if($len&amp;amp;gt;0){$total+=$len;push@x,$len;};$len=0;}else{s/\s//g;$len+=length($_);}}if ($len&amp;amp;gt;0){$total+=$len;push @x,$len;}@x=sort{$b&amp;amp;lt;=&amp;amp;gt;$a}@x; my ($count,$half)=(0,0);for (my $j=0;$j&amp;amp;lt;@x;$j++){$count+=$x[$j];if(($count&amp;amp;gt;=$total/2)&amp;amp;amp;&amp;amp;amp;($half==0)){print &amp;amp;quot;N50: $x[$j]\n&amp;amp;quot;;$half=$x[$j]}elsif($count&amp;amp;gt;=$total*0.9){print &amp;amp;quot;N90: $x[$j]\n&amp;amp;quot;;exit;}}'&amp;amp;nbsp; contigs.fahttp://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;perl -e 'my ($len,$total)=(0,0);my @x;while(&amp;amp;lt;&amp;amp;gt;){if(/^[\&amp;amp;gt;\@]/){if($len&amp;amp;gt;0){$total+=$len;push@x,$len;};$len=0;}else{s/\s//g;$len+=length($_);}}if ($len&amp;amp;gt;0){$total+=$len;push @x,$len;}@x=sort{$b&amp;amp;lt;=&amp;amp;gt;$a}@x; my ($count,$half)=(0,0);for (my $j=0;$j&amp;amp;lt;@x;$j++){$count+=$x[$j];if(($count&amp;amp;gt;=$total/2)&amp;amp;amp;&amp;amp;amp;($half==0)){print &amp;amp;quot;N50: $x[$j]\n&amp;amp;quot;;$half=$x[$j]}elsif($count&amp;amp;gt;=$total*0.9){print &amp;amp;quot;N90: $x[$j]\n&amp;amp;quot;;exit;}}'&amp;amp;nbsp; contigs.fahttp://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[N50 N90 calculation using Perl code]]&lt;/ins&gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;http://seqanswers.com/forums/showthread.php?t=2766&amp;quot;&amp;gt;http://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;http://seqanswers.com/forums/showthread.php?t=2766&amp;quot;&amp;gt;http://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key pgi_re_kr:diff::1.12:old-3173:rev-3174 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
	<entry>
		<id>http://pgi.re.kr/index.php?title=N50_and_N90&amp;diff=3173&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;&lt;p&gt;The N50 contig size is a weighted median value and defined as &lt;br /&gt; the length of the smallest contig S in the sorted list of all &lt;br /&gt; contigs where the cumulative length f...&quot;</title>
		<link rel="alternate" type="text/html" href="http://pgi.re.kr/index.php?title=N50_and_N90&amp;diff=3173&amp;oldid=prev"/>
		<updated>2010-11-08T10:40:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;p&amp;gt;The N50 contig size is a weighted median value and defined as &amp;lt;br /&amp;gt; the length of the smallest contig S in the sorted list of all &amp;lt;br /&amp;gt; contigs where the cumulative length f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;p&amp;gt;The N50 contig size is a weighted median value and defined as &amp;lt;br /&amp;gt;&lt;br /&gt;
the length of the smallest contig S in the sorted list of all &amp;lt;br /&amp;gt;&lt;br /&gt;
contigs where the cumulative length from the largest contig to &amp;lt;br /&amp;gt;&lt;br /&gt;
contig S is at least 50% of the total length.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;perl -e 'my ($len,$total)=(0,0);my @x;while(&amp;amp;lt;&amp;amp;gt;){if(/^[\&amp;amp;gt;\@]/){if($len&amp;amp;gt;0){$total+=$len;push@x,$len;};$len=0;}else{s/\s//g;$len+=length($_);}}if ($len&amp;amp;gt;0){$total+=$len;push @x,$len;}@x=sort{$b&amp;amp;lt;=&amp;amp;gt;$a}@x; my ($count,$half)=(0,0);for (my $j=0;$j&amp;amp;lt;@x;$j++){$count+=$x[$j];if(($count&amp;amp;gt;=$total/2)&amp;amp;amp;&amp;amp;amp;($half==0)){print &amp;amp;quot;N50: $x[$j]\n&amp;amp;quot;;$half=$x[$j]}elsif($count&amp;amp;gt;=$total*0.9){print &amp;amp;quot;N90: $x[$j]\n&amp;amp;quot;;exit;}}'&amp;amp;nbsp; contigs.fahttp://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;http://seqanswers.com/forums/showthread.php?t=2766&amp;quot;&amp;gt;http://seqanswers.com/forums/showthread.php?t=2766&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>