# **Goheatmap**
Heatmap with GO Terms
### Installation
The **development** version can be installed from GitHub using:
``` r
devtools::install_github("ilwookkim/GOheatmap")
```
### Usage
``` r
library(GOheatmap)
```
**Load example data**
LAML-TCGA RNAseq data
``` r
mat.file <- system.file("extdata", "mat.Rdata", package="GOheatmap")
load(mat.file)
```
**Pre-treatment**
Remove NA, if necessary.
``` r
mat <- data.frame(na.omit(mat))
knitr::kable(head(mat[, 1:4], 3), "simple")
# column: samples, row: genes (HGNC symbol)
TCGA.AB.2803.03 TCGA.AB.2805.03 TCGA.AB.2806.03 TCGA.AB.2807.03
----- ---------------- ---------------- ---------------- ----------------
AGO1 1758.2305 4728.2463 2947.8039 2831.1817
AGO2 367.2840 771.7537 1113.3036 1076.4647
AGO3 727.3663 1237.6171 896.2444 965.2433
```
**Run goheatmap**
Parameters k (number of clustering), n_go (number of terms to display), sources [details here](https://biit.cs.ut.ee/gprofiler/page/apis), cor (TRUE for spearman's correlation coefficient, FALSE for z-score normalization), title (Title of heatmap)
``` r
goheatmap(mat, k = 3, n_go = 3, sources = "GO:BP", cor = TRUE, title = "GOheatmap")
goheatmap(mat, k = 3, n_go = 3, sources = "KEGG", cor = TRUE, title = "GOheatmap")
goheatmap(mat, k = 3, n_go = 3, sources = "WP", cor = TRUE, title = "GOheatmap")
```
<img src="inst/extdata/example_go.bp.png"/>
<img src="inst/extdata/example_kegg.png"/>
<img src="inst/extdata/example_wp.png"/>
没有合适的资源?快使用搜索试试~ 我知道了~
Goheatmap:带有GO条款的热图
共15个文件
png:3个
ds_store:3个
r:1个
需积分: 46 6 下载量 72 浏览量
2021-02-25
06:58:22
上传
评论
收藏 345KB ZIP 举报
温馨提示
Goheatmap GO条款的热图 安装 可以使用以下命令从GitHub安装开发版本: devtools :: install_github( " ilwookkim/GOheatmap " ) 用法 library( GOheatmap ) 加载示例数据LAML-TCGA RNAseq数据 mat.file <- system.file( " extdata " , " mat.Rdata " , package = " GOheatmap " ) load( mat.file ) 预处理 如有必要,删除NA。 mat <- data.frame (na.omit( mat )) knitr :: kable(head( mat [, 1 : 4 ], 3 ), " simple " ) # column: samples, row: genes (HGNC symbol)
资源详情
资源评论
资源推荐
收起资源包目录
Goheatmap-main.zip (15个子文件)
Goheatmap-main
.DS_Store 6KB
NAMESPACE 283B
DESCRIPTION 441B
inst
.DS_Store 6KB
extdata
example_go.bp.png 95KB
.DS_Store 6KB
mat.Rdata 50KB
example_wp.png 93KB
example_kegg.png 96KB
R
goheatmap.R 3KB
GOheatmap.Rproj 414B
LICENSE 34KB
README.md 2KB
man
goheatmap.Rd 929B
.gitignore 40B
共 15 条
- 1
123你走吧你走吧
- 粉丝: 37
- 资源: 4614
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0