<?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; ConsensusClusterPlus</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/consensusclusterplus/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>根据基因表达量对样品进行分类ConsensusClusterPlus</title>
		<link>http://www.bio-info-trainee.com/945.html</link>
		<comments>http://www.bio-info-trainee.com/945.html#comments</comments>
		<pubDate>Thu, 27 Aug 2015 13:30:19 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[ConsensusClusterPlus]]></category>
		<category><![CDATA[聚类]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=945</guid>
		<description><![CDATA[bioconductor系列的包都是一样的安装方式： source("http: &#8230; <a href="http://www.bio-info-trainee.com/945.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<pre>bioconductor系列的包都是一样的安装方式：</pre>
<pre>source("http://bioconductor.org/biocLite.R")
biocLite("ConsensusClusterPlus")</pre>
<p>这个包是我见过最简单的包， 加载只有做好输入数据，只需要一句话即可运行，然后默认输出所有结果</p></div>
<div><a href="http://www.bioconductor.org/packages/release/bioc/html/ConsensusClusterPlus.html">http://www.bioconductor.org/packages/release/bioc/html/ConsensusClusterPlus.html</a></div>
<div><a href="http://www.bioconductor.org/packages/release/bioc/vignettes/ConsensusClusterPlus/inst/doc/ConsensusClusterPlus.pdf">http://www.bioconductor.org/packages/release/bioc/vignettes/ConsensusClusterPlus/inst/doc/ConsensusClusterPlus.pdf</a></div>
<div>读这个包的readme，很容易学会</div>
<div>就是做好一个需要来进行分类的样品的表达量矩阵。或者选择上一篇日志用GEOquery这个包下载的表达量矩阵也可以进行分析</div>
<div>因为这个包是用ALL数据来做测试的，所以可以直接加载这个数据结果，这样就能得到表达矩阵啦</div>
<div>
<div data-canvas-width="121.82599366666666">library(ALL)</div>
<div data-canvas-width="95.72398166666665">data(ALL)</div>
<div data-canvas-width="121.82599366666666">d=exprs(ALL)</div>
<div data-canvas-width="104.4246523333333">d[1:5,1:5]</div>
<div data-canvas-width="104.4246523333333">可以看到数据集如下</div>
<p>&gt; d[1:5,1:5]</p></div>
<div>             01005    01010    03002    04006    04007</div>
<div>1000_at   7.597323 7.479445 7.567593 7.384684 7.905312</div>
<div>1001_at   5.046194 4.932537 4.799294 4.922627 4.844565</div>
<div>1002_f_at 3.900466 4.208155 3.886169 4.206798 3.416923</div>
<div>1003_s_at 5.903856 6.169024 5.860459 6.116890 5.687997</div>
<div>1004_at   5.925260 5.912780 5.893209 6.170245 5.615210</div>
<div>&gt; dim(d)</div>
<div>[1] 12625   128</div>
<div>共128个样品，12625个探针数据</div>
<div>也有文献用RNAs-seq的RPKM值矩阵来做</div>
<div>对上面这个芯片表达数据我们一般会简单的进行normalization ，然后取在各个样品差异很大的那些gene或者探针的数据来进行聚类分析</div>
<div>
<div data-canvas-width="182.73068833333346">mads=apply(d,1,mad)</div>
<div data-canvas-width="278.438065666667">d=d[rev(order(mads))[1:5000],]</div>
<p>d = sweep(d,1, apply(d,1,median,na.rm=T))</p></div>
<div>#也可以对这个d矩阵用DESeq的normalization 进行归一化，取决于具体情况</div>
<div>
<div data-canvas-width="269.7373950000003">library(ConsensusClusterPlus)</div>
<div data-canvas-width="147.9280056666667">#title=tempdir() #这里一般改为自己的目录</div>
<div data-canvas-width="147.9280056666667">title="./" #所有的图片以及数据都会输出到这里的</div>
<div data-canvas-width="617.7642216666677">results = ConsensusClusterPlus(d,maxK=6,reps=50,pItem=0.8,pFeature=1,</div>
<div data-canvas-width="713.4715990000012"> title=title,clusterAlg="hc",distance="pearson",seed=1262118388.71279,plot="png")</div>
<div data-canvas-width="713.4715990000012">这样就OK了，你指定的目录下面会输出大于9个图片</div>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/08/clipboard.png"><img class="alignnone size-full wp-image-946" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/08/clipboard.png" alt="clipboard" width="358" height="188" /></a></div>
<div>大家看看说明书就知道这个包的输出文件是什么了。</div>
<div>很多参数都是需要调整的，一般我们的maxK=6是根据实验原理来调整，如果你的样品应该是要分成6类以上，那么你就要把maxK=6调到一点。</div>
<div>查看结果results[[2]][["consensusClass"] 可以看到各个样品被分到了哪个类别里面去</div>
<div>results[[3]][["consensusClass"]</div>
<div>results[[4]][["consensusClass"] 等等</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/945.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
