问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

用EnhancedVolcano 绘制火山图

发布网友 发布时间:2022-12-04 04:40

我来回答

1个回答

热心网友 时间:2024-03-19 22:06

注:安装开发版

通过示例演示 RNA-seq workflow: gene-level exploratory analysis and differential expression . 加载 ‘airway’ 数据

注释Ensembl gene IDs为gene symbols:

运行DESeq2进行两组的差异分析

对于多数基础火山图而言,仅有单个数据框、数据矩阵或三列数据结果即可,包括标签、log2FC和校正或未校正的P值,其中默认log2FC的阈值为|2|; 默认 P值阈值为10e-6.

实际上,EnhancedVolcano图的所有方面都可以配置为适应所有类型的统计分布和标签偏好。默认情况下,EnhancedVolcano只会尝试标记那些通过统计显著性阈值的基因,即“pCutoff”和“FCcutoff”。此外,它只会标注尽可能多的这些可以合理地适应情节空间。用户可以选择提供他/她希望在绘图中标记的标签向量(如“selectLab”)。

对于大多数研究而言,10e-6的默认P值截止值可能过于宽松,因此可能需要将该阈值提高几个数量级。同样,log2FC截止值可能过于严格,因为现在可以计算差异表达分析中log2FC差异的适度“收缩”估计。

在本例中,我们还修改了点和标签大小,这有助于提高差异表达式分析中许多变量的清晰度。

默认的配色方案可能不符合每个人的口味。在这里,我们使得只有通过log2FC和P值阈值的变量是红色的,其他的都是黑色的。我们还调整“alpha”的值,它控制打印点的透明度:1=100%不透明;0=100%透明。

也可以绘制不同的点作为不同的形状。默认形状是圆。用户可以通过“shape”参数指定自己的形状编码,该参数接受单个或四个可能的值:如果是四个值,则这些值映射到同样由颜色指定的标准名称;如果只有一个值,则所有点都将使用该值进行变化。

更多形状信息见 ggplot2 Quick Reference: shape

The lines that are drawn to indicate cut-off points are also modifiable. The parameter ‘cutoffLineType’ accepts the following values: “blank”, “solid”, “dashed”, “dotted”, “dotdash”, “longdash”, and “twodash”. The colour and thickness of these can also be modified with ‘cutoffLineCol’ and ‘cutoffLineWidth’. To disable the lines, set either cutoffLineType=“blank” or cutoffLineWidth=0.

Extra lines can also be added via ‘hline’ and ‘vline’ to display other cut-offs.

To make these more visible, we will also remove the default gridlines.

Adjust cut-off lines and add extra threshold lines.

The position of the legend can also be changed to “left” or “right” (and stacked vertically), or ‘top’ or “bottom” (stacked horizontally). The legend text, label size, and icon size can also be modified.

Adjust legend position, size, and text.

Note: to make the legend completely invisible, specify:

In order to maximise free space in the plot window, one can fit more labels by adding connectors from labels to points, where appropriate. The width and colour of these connectors can also be modified with ‘widthConnectors’ and ‘colConnectors’, respectively. Further configuration is achievable via ‘typeConnectors’ (“open”, “closed”), ‘endsConnectors’ (“last”, “first”, “both”), and lengthConnectors (default = unit(0.01, ‘npc’)).

The result may not always be desirable as it can make the plot look overcrowded.

Fit more labels by adding connectors.

In many situations, people may only wish to label their key variables / variables of interest. One can therefore supply a vector of these variables via the ‘selectLab’ parameter, the contents of which have to also be present in the vector passed to ‘lab’. In addition, only those variables that pass both the cutoff for log2FC and P value will be labelled.

To improve label clarity, we can draw simple boxes around the plots labels. This works much better when drawConnectors is also TRUE.

Draw labels in boxes.

In certain situations, one may wish to over-ride the default colour scheme with their own colour-scheme, such as colouring variables by pathway, cell-type or group. This can be achieved by supplying a named vector as ‘colCustom’.

In this example, we just wish to colour all variables with log2FC > 2.5 as ‘high’ and those with log2FC < -2.5 as ‘low’.

Over-ride colouring scheme with custom key-value pairs.

In this example, we first over-ride the existing shape scheme and then both the colour and shape scheme at the same time.

Over-ride colour and/or shape scheme with custom key-value pairs.

In this example we add an extra level of identifying key variables by encircling them.

This feature works best for shading just 1 or 2 key variables. It is expected that the user can use the ‘shapeCustom’ parameter for more in depth identification of different types of variables.

Shade certain variables.

One can also supply a vector of sizes to pointSize for the purpose of having a different size for each poin. For example, if we want to change the size of just those variables with log 2 FC>2:

Highlighting key variabvles via custom point sizes.

We can over-ride the default ‘discrete’ colour scheme with a continuous one that shades between 2 colours based on nominal or adjusted p-value, whichever is selected by y , via colGradient :

Highlighting key variabvles via custom point sizes.

Custom axis ticks can be added in a ‘plug and play’ fashion via ggplot2 functionality, as follows:

Custom axis tick marks

More information on this can be found here: http://www.sthda.com/english/wiki/ggplot2-axis-ticks-a-guide-to-customize-tick-marks-and-labels
用EnhancedVolcano 绘制火山图

实际上,EnhancedVolcano图的所有方面都可以配置为适应所有类型的统计分布和标签偏好。默认情况下,EnhancedVolcano只会尝试标记那些通过统计显著性阈值的基因,即“pCutoff”和“FCcutoff”。此外,它只会标注尽可能多的这些可以合理地适应情节空间。用户可以选择提供他/她希望在绘图中标记的标签向量(如“select...

aippt如何制作

随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图、条形...

增强火山图,要不要试一下?

EnhancedVolcano是一个旨在优化火山图绘制的工具,通过合理展示基因名称、多种属性标识及个性化设置,提升数据可视化效果。本文将逐步展示其安装、使用方法,以及高级功能的调整,如颜色、形状、透明度和阈值线的定制,以满足不同用户的需求。安装与使用EnhancedVolcano:首先,下载并加载R包,然后以airway数据为例...

火山图绘制 火山图和热图哪个更好 如何做火山图 火山图怎么看 火山图解读 火山图反应的是什么 火山图片 火山图的意义 火山各部分的名称图
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
在液压原理图中各种符号的表示意义是什么? 脚臭怎么办,一脱鞋,那味道我自己都受不了? ...经电加热后表面会形成一层黑色物质,请问是什么东西?用什么化学... 宿舍老是经常出现蚂蚁,放久的书本打开全是蚂蚁,或是布柜里放久的衣服... 为什么寝室地板上会有蚂蚁? 怎么计算产值excel 青春不再伤感经典句子(《青春伤感经典短句子》) 致我们失去的青春简短说说(怀念过去的经典句子) 分享回忆过去致青春的语录集锦(回忆的句子时光感言简短) 女生为什么总想摸我的脸 R - 序列标识图(sequence logo) 11.ggplot2——色阶与图例(二) ggplot2回顾(6): ColorBrewer配色方案 小米折叠手机mixfold2电量低有备用电吗? 北师大是否值得报考? 我想问一下米饭水放多了怎么补救 北京师范大学是否值得报考 关于考入北京师范大学 报考北京师范大学2018年MBA需要注意哪些 玲珑剔透读音 玲珑剔透拼音和意思 如何教育孩子不打人骂人? 荣耀手机双清了为什么重启不开机 哈弗h6.1.5t空气流量 哈弗赤兔车载网络流量有多少 哈弗h6流量是无限的吗 4/5米比二分米等于多少最简单的整数比是什么 一个彩带长4/5米等于多少厘米 4/5等于多少分米? : 宝宝百天胎毛画上要写几句祝福语,想求一首藏头诗,本人万分感激,宝宝... 胎毛笔上刻什么祝福语、珍贵的句子大全 小米备用电池买来的时候是充满电的吗?充电的时候一直是绿灯,是不是代表... 笔记本玩游戏过程中电脑蓝屏对电脑有害吗 stop:0x00000050(0xE4671000,0x00000000,0x804E8410,0x00000001 制作衍纸需要用水吗 衍纸和卷纸画的区别 制作衍纸的主要工具有水吗 贴吧意见反馈吧有用吗 同样投诉滥用职权的吧务,投诉不管用,很多人说去贴吧意见反馈吧... 贴吧意见反馈吧到底让发什么 贴吧为什么封? 百度贴吧页面错误 为什么竹子可以随便砍 拆老房子家里的竹子有什么禁忌吗 13香,磁吸充电更香!新入手的麦多多磁吸充电器,无线快充新体验_百度知 ... 玉米期货还会跌吗 2022迎接虎年春节祝福语短信大全(精选39句) 住宅旁边竹子是否不能随便砍&#39; 女生中短发发型图片高圆圆,短发时候的高圆圆还挺帅的 求教大神英特尔750对其他硬件有要求么 科沃斯扫地机器人的auto键在哪