周四下午-聚类_第1页
周四下午-聚类_第2页
周四下午-聚类_第3页
周四下午-聚类_第4页
周四下午-聚类_第5页
免费预览已结束,剩余27页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

聚类、富集分析原理与实践2013年12月1数据2OUTLINE1.Cluster聚类1.距离计算2.聚类方法3.

R语言实现2.Enrient富集1.正态分布2.超几何分布3.富集工具3聚类分析-1.1距离算法A.PEARSON

CORRELATIONIf

you

were

to

make

a

scatterplot

of

the

values

of

x

against

y

(pairing

x1

with

y1,x2

withy2,etc),then

r

reportshow

well

you

can

fit

a

line

to

thevalues.反应了变量间的线性相关程度的大小(趋势)identicalcomple y

uncorrelated10-1

perfect

oppositeD=1-rD=1-

|r|45聚类分析-1.1距离算法B.NON-PARAMETRIC

DISTANCEMEASURESSpearman

rank

correlationKendall’s

τ为了使用Pearson线性相关系数,必须假设数据是成对地从正态分布中取得的(服从二维正太分布)These

methods

are

more

robust

against

outliers聚类分析-1.1距离算法B.NON-PARAMETRIC

DISTANCEMEASURES-Spearman

rank

correlation6聚类分析-1.1距离算法B.NON-PARAMETRIC

DISTANCEMEASURES-Kendall

tau

correlation7聚类分析-1.1距离算法B.NON-PARAMETRIC

DISTANCEMEASURES-Kendall

tau

correlation8聚类分析-1.1距离算法B.NON-PARAMETRIC

DISTANCEMEASURES-Kendall

tau

correlation9聚类分析-1.1距离算法B.Euclidean

distanceUnlike

thecorrelation-based

distancemeasures,

the

Euclidean

distance

takes

themagnitude

of

changes

in

t

eexpression

levels

into

account,It

shouldtherefore

only

be

used

for

expression

datathat

are

suitably

normalized.1011聚类分析-1.2聚类方法A.HIERARCHICAL

CLUSTERINGHierarchical

clustering

methods

organizes

genesor/and

samples

in

a

tree

structure,

based

on

theirsimilarity.The

basic

idea

is

to

assemble

a

set

of

items

(genesor

arrays)

into

a

tree,

where

items

are

joined

byvery

short

branches

if

they

are

very

similar

to

each

other,

and

by

increasingly

longer

branches

astheir

similarity

decreases.聚类分析-1.2聚类方法A.HIERARCHICAL

CLUSTERING1213聚类分析-1.2聚类方法B.K-MEANS

CLUSTERINGChoose

k

initial

center

points

randomlyCluster

data

using

Euclidean

distance

(or

other

distancemetric)Calculate

new

center

points

for

each

cluster

using

only

pointswithin

the

clusterRe-Cluster

all

data

using

the

new

center

pointsRepeat

steps

3

&

4

for

defined

times聚类分析-1.3

R语言实现union_for_cluster.txtclustering.r14聚类分析-1.3其它方法15OUTLINE1.Cluster聚类1.距离计算2.聚类方法3.

R语言实现2.Enrient富集1.正态分布2.超几何分布3.富集工具16富集分析17富集分析-2.1正态分布一(mu),尺度参数为σ(sigma)若随

量X服从的概率分布,且其量,正态随量服从的分布就称则这个随

量就称为正态随为正态分布。记作X~N(μ,σ2)18富集分析-2.1正态分布量的叠加结果,那么这量都可以用正态分布表示或一个变量如果是由大量微小的、独立的随个变量就服从正态分布。因此许多随近似描述。表达量例子:microarray考试成绩身高19富集分析-2.1正态分布在一个假设检验问题中原假设H0所需的最小显著性水平称为检验的p值20富集分析-2.2超几何分布在一个口袋中装有60个球,其中有10个白球,其余为黑球。

者一次从中摸出8个球。摸到5个白球的概率是多少?摸到x个白球的概率呢?a.排列组合的解法>choose()>factorial()>(choose(10,5)*choose(50,3))/choose(60,8)[1]

0.001930415b.超几何分布分布律与分布函数dhyper(5,10,50,8)[1]

0.0019304151-phyper(4,10,50,8)[1]

0.00203332phyper(4,10,50,8,

lower.tail=FALSE)[1]

0.0020333221富集分析-2.2超几何分布在一个口袋中装有60个球,其中有10个白球,其余为黑球。

者一次从中摸出8个球。摸到5个白球的概率是多少?摸到x个白球的概率呢?列联表(contingency

table)抽中未抽中合计白色5510黑色34750合计85260counts<-matrix(c(5,3,5,47),

nrow=2,ncol=2)counts[,1]

[,2][1,]

5

5[2,] 3

47fisher.test(counts)Fisher's

Exact

Test

for

Count

Datadata:

countsp-value

=

0.002033alternative

hypothesis:

true

odds

ratio

is

not

equalto

195

percent

confidence

interval:2.124677

123.487719sample

estimates:odds

ratio14.4213822富集分析-2.2超几何分布GO

accession:

GO:0008283Desription:

cell

proliferationTerm

type:

biological_process差异差异背景背景中与该term相关的总数:2545中与该term相关的总数:18374数:113数:528Is

“cell

proliferation”

overrepresented

in

the

diffe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论