本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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-kb8042026年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-kb8042026年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-kb8042026年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-kb8042026年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-kb8042026年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-kb8042026年6月21日 更新

bioMate-AI のスキルをすべて見る

このスキルの問題を報告する