<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; 韦恩图</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/%e9%9f%a6%e6%81%a9%e5%9b%be/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>用R语言批量画韦恩图</title>
		<link>http://www.bio-info-trainee.com/893.html</link>
		<comments>http://www.bio-info-trainee.com/893.html#comments</comments>
		<pubDate>Tue, 21 Jul 2015 01:04:56 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[VennDiagram]]></category>
		<category><![CDATA[绘图]]></category>
		<category><![CDATA[韦恩图]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=893</guid>
		<description><![CDATA[需要画韦恩图的文件如下所示： #CDR3_aa    count_all     &#8230; <a href="http://www.bio-info-trainee.com/893.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>需要画韦恩图的文件如下所示：</p>
<p>#CDR3_aa    count_all    count_IgM    count_IgA    count_IgG<br />
CARGVDAGVDYW    243    25    196    22<br />
CARHPRNYGNFDYW    174    171    3    0<br />
CARENTMVRGVINPLDYW    166    8    75    83<br />
CAREASDSISNWDDWYFDLW    129    15    114    0<br />
CARDPDNSGAFDPW    118    1    117    0<br />
CAKDLGGYW    98    3    4    91<br />
CAREVADYDTYGWFLDLW    95    26    68    1<br />
CVRNRGFFGLDIW    82    0    1    81<br />
CARRSTNYHGWDYW    80    3    2    74</p>
<p>此处省略一万行。</p>
<p>简单解释一下数据，第一列是CDR3序列，我们需要对count_IgM    count_IgA    count_IgG这三列数据进行画韦恩图，数字大于0代表有，数字为0代表无。</p>
<p>这样我们根据序列就能得出每列数据所有的CDR3序列，即不为0的CDR3序列</p>
<p>每个个体都会输出一个统计文件，共20个文件需要画韦恩图</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/07/image0051.png"><img class="alignnone size-full wp-image-896" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/07/image0051.png" alt="image005" width="895" height="192" /></a></p>
<p>对这个统计文件就可以进行画韦恩图。</p>
<p>画韦恩图的R代码如下：</p>
<p>library(VennDiagram)</p>
<p>files=list.files(path = ".", pattern = "type")</p>
<p>for (i in files){</p>
<p>a=read.table(i)</p>
<p>individual=strsplit(i,"\\.")[[1]][1]</p>
<p>image_name=paste(individual,".tiff",sep="")</p>
<p>IGM=which(a[,3]&gt;0)</p>
<p>IGA=which(a[,4]&gt;0)</p>
<p>IGG=which(a[,5]&gt;0)</p>
<p>venn.diagram(list(IGM=IGM,IGA=IGA,IGG=IGG), fill=c("red","green","blue"), alpha=c(0.5,0.5,0.5), cex=2, cat.fontface=4, fontfamily=3, filename=image_name)</p>
<p>}</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/07/image007.png"><img class="alignnone size-full wp-image-895" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/07/image007.png" alt="image007" width="583" height="483" /></a></p>
<p>但事实上，这个韦恩图很难表现出什么，因为我们的每个个体的count_IgM    count_IgA    count_IgG总数不一样。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/893.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
