| 分类: R语言学习 |
http://zoonek2.free.fr/UNIX/48_R/09.html
使用R计算相关系数的函数为:
cor.test(X,Y,method='')
method可以为'spearman','pearson' and 'kendall',分别对应三种相关系数的计算和检验。
1 perrson相关系数
> n <- 10
> x <- rnorm(n)
> y <- rnorm(n)
> cor(x,y)
[1] -0.4132864
> cor.test(x,y)
Pearson's product-moment correlation
data: x and y
t = -1.2837, df = 8, p-value = 0.2352
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
-0.8275666 0.2924366
sample estimates:
cor
-0.4132864
上面给出了相关系数的可信度区间和P-value
2 spearman相关系数和
kendall相关系数
同上,只要把method改成spearman和
| 分类: 生物信息资源 |
| 分类: 生物信息资源 |
转自:http://www.cnblogs.com/freemao/p/6414898.html
一, Hapmap Format
前11列是SNP的attributes, 其余列是 nucleotides observed at each SNP for
each individuals。tab 分隔.
第一行是header
每一行代表一个SNP。
Genotypic data 可以是double bit 也可以是single bit(IUPAC code)。
http://images2015.cnblogs.com/blog/635312/201702/635312-20170219103000785-1506057908.png
missing data 用NN for double bit 或者N for single bit.
http://images2015.cnblogs.com/blog/635312/201702/635312-20170219102640457-761716220.png
http://images2015.cnblogs.com/blog/635312/201702/635312-20170220102701148-2065643518.png
标签:
细菌库杂谈 |
分类: 生物信息资源 |
第一个:http://genome.jgi-psf.org/
MBGD is a database for comparative analysis of completely sequenced microbial genomes, the number of which is now growing rapidly. The aim of MBGD is to facilitate comparative genomics from various points of view such as ortholog identification, paralog clustering, motif analysis and gene order comparison.
标签:
选择基因上下游NCBI杂谈 |
分类: 生物信息资源 |
最近研究6个疾病基因,需要在NCBI下载基因序列及其上下游1000bp序列,经朋友推荐,方法如下:
以基因BRAF为例
第一步:在NCBI的gene中输入BRAF(human)如下:
标签:
杂谈 |
分类: 生物信息资源 |
链接:http://www.medsci.cn/sci/journal_class.asp?classname=��ѧ
缩写名/全名
NAT REV NEUROSCI
nature reviews
neuroscience
主页
ANNU REV NEUROSCI
annual review of
neuroscience
主页
BEHAV BRAIN SCI
behavioral and brain
sciences
主页
标签:
translatednatoprotein杂谈 |
分类: 生物信息资源 |
标签:
r读入文件读出杂谈 |
分类: R语言学习 |
标签:
zlib.h没有杂谈 |
分类: linux学习 |
标签:
linux查看文件文件夹大小杂谈 |
分类: linux学习 |
du -sh 查看当前文件夹大小
du -sh * | sort -n 统计当前文件夹(目录)大小,并按文件大小排序
附送:
du -sk filename 查看指定文件大小
Linux:ls以K、M、G为单位查看文件大小
Linux:ls以K、M、G为单位查看文件大小。
#man
ls
……
-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
……
# ls
cuss.war nohup.out
# ls -l
total 30372
-rw-r--r-- 1 root root 31051909 May 24 10:07 cuss.war
-rw------- 1 root root 0 Mar 20 13:52 nohup.out
# ls -lh
total 30M
-rw-r--r-- 1 root root 30M May 24 10:07 cuss.war
-rw------- 1 root root 0 Mar 20 13:52 nohup.out
# ll -h
total 30M