跳到正文
cccskills
免费在 GitHub 公开

bioconductor-tanggle

Offers functions for plotting split (or implicit) networks (unrooted, undirected) and explicit networks (rooted, directed) with reticulations extending. 'ggtree' and using functions from 'ape' and 'phangorn'. It extends the 'ggtree' package [@Yu2017] to allow the visualization of phylogenetic networks using the 'ggplot2' syntax. It offers an alternative to the plot functions already available in 'ape' Paradis and Schliep (2019) <doi:10.1093/bioinformatics/bty633> and 'phangorn' Schliep (2011) <d

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

tanggle

Workflows

Standard Workflow

Visualize unrooted, undirected split networks (such as consensus networks or neighbor-nets) from Nexus files.

library(tanggle)
library(phangorn)
library(ggtree)

fdir <- system.file("extdata/trees", package = "phangorn")
Nnet <- phangorn::read.nexus.networx(file.path(fdir,"woodmouse.nxs"))

p <- ggsplitnet(Nnet) + geom_tiplab2()
p <- p + xlim(-0.019, .003) + ylim(-.01, .012)

Input: A Nexus file containing split network data, read as a networx object; Output: A ggplot object representing the unrooted split network with tip labels.

Explicit Networks

Visualize explicit, rooted phylogenetic networks with reticulations from extended Newick format.

library(tanggle)
library(ape)

z <- read.evonet(text = "((1,((2,(3,(4)Y#H1)g)e,(((Y#H1,5)h,6)f)X#H2)c)a, ((X#H2,7)d,8)b)r;")
p <- ggevonet(z, layout = "slanted") + geom_tiplab() + geom_nodelab()

Input: An extended Newick format string; Output: A ggplot object representing a rooted phylogenetic network with reticulations.

When to Use

  • Visualizing unrooted, undirected split networks (consensus networks or neighbor-nets) using ggsplitnet.
  • Visualizing explicit, rooted phylogenetic networks with reticulations using ggevonet.
  • Customizing phylogenetic network plots with ggplot2 layers such as geom_tiplab2 and geom_nodepoint.

When NOT to Use

  • For standard, non-reticulated phylogenetic trees, use ggtree directly as it is optimized for simple tree structures.
  • For plotting networks without a phylogenetic context (e.g., protein-protein interaction networks), use ggraph or igraph.

Data Requirements

  • Split networks must be represented as a networx object, typically read via phangorn::read.nexus.networx.
  • Explicit networks must be represented as an evonet object, typically read via ape::read.evonet.

Key Parameters

  • layout ("rectangular"): Layout style for explicit networks in ggevonet (can be "rectangular" or "slanted").
  • col ("blue"): Color parameter inside geom_tiplab2 or geom_nodepoint to customize labels and nodes.
  • font (4): Font style parameter in geom_tiplab2.
  • hjust (-0.15): Horizontal adjustment for tip labels in geom_tiplab2.

Best Practices

  • Adjust plot limits using xlim and ylim to ensure long tip labels are fully visible and readable.
  • Use geom_tiplab2 for split networks to properly align labels along the network perimeter.
  • Minimize reticulation line crossings in complex explicit networks using minimize_overlap.

Common Pitfalls

  • Truncated tip labels: Labels extending beyond the default plot margins. Fix by adding xlim and ylim limits to the ggplot object.
  • Overlapping reticulation lines: Hard-to-read explicit networks. Fix by applying minimize_overlap to the network object before plotting.

Alternatives

  • ape: For basic plotting of evonet objects without ggplot2 syntax.
  • phangorn: For basic plotting of networx split networks without ggplot2 integration.

Citations

  • Yu, Guangchuang, David Smith, Huachen Zhu, Yi Guan, and Tommy Tsan-Yuk Lam. 2017. "Ggtree: An R Package for Visualization and Annotation of Phylogenetic Trees with Their Covariates and Other Associated Data." Methods in Ecology and Evolution 8 (1): 28–36.
  • Cardona, Gabriel, Francesc Rosselló, and Gabriel Valiente. 2008. "Extended Newick: It Is Time for a Standard Representation of Phylogenetic Networks." BMC Bioinformatics 9 (1): 532.

References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

The package contains functions for exploratory oligonucleotide array analysis. The dependence on tkWidgets only concerns few convenience functions. 'affy' is fully functional without it.

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

This tool uses the label-tree function from HyPhy to annotate a phylogenetic tree. It allows users to select a subset of leaves using either a regular expression or a list of sequence names, and then apply a specified label to these selecte

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

This package provides a client for the Bioconductor AnnotationHub web resource. The AnnotationHub web resource provides a central location where genomic files (e.g., VCF, bed, wig) and other resources from standard locations (e.g., UCSC, En

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

ASURAT is a software for single-cell data analysis. Using ASURAT, one can simultaneously perform unsupervised clustering and biological interpretation in terms of cell type, disease, biological process, and signaling pathway activity. Inputting a single-cell RNA-seq data and knowledge-based databases, such as Cell Ontology, Gene Ontology, KEGG, etc., ASURAT transforms gene expression tables into original multivariate tables, termed sign-by-sample matrices (SSMs).

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

AUCell allows to identify cells with active gene sets (e.g. signatures, gene modules...) in single-cell RNA-seq data. AUCell uses the "Area Under the Curve" (AUC) to calculate whether a critical subset of the input gene set is enriched with

中文简介正在准备中。当前显示原文说明。

bioMate-AI/biomate-bioconductor-kb7932026年6月21日 更新

查看 bioMate-AI 的全部技能

报告此技能的问题