基因组共线性主绘图器。 接收 Dictionary(Of String, Gene()) 形式的共线性数据, 根据 SyntenyTheme 主题配置渲染 PNG 图像。
SyntenyPlotter
01 Syntax
SMRUCC.genomics.Visualize.SyntenyVisualize.PanGenomeSynteny.SyntenyPlotter
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | 构造函数。 |
| Plot | 1 | 执行绘图并保存为 PNG 文件。 |
| DrawSingleConnection | 1 | 根据主题中的 ConnectionStyle 绘制单条连接线。 |
| DrawGeneBlock | 1 | 绘制单个基因块,根据链方向绘制箭头形状。 |
| ChooseNiceScaleLength | 1 | 选择一个便于阅读的比例尺长度 |
| FormatGenomeLength | 1 | 格式化基因组长度为可读字符串 |
03 Members
#ctor(
Dictionary(Of String, Gene()), SyntenyTheme)构造函数。
Parameters
| Name | Type | Description |
|---|---|---|
data | Dictionary(Of String, Gene()) | 共线性数据:键为基因组 ID,值为该基因组的基因数组 |
theme | SyntenyTheme | 绘图主题 |
Plot(
String)执行绘图并保存为 PNG 文件。
Parameters
| Name | Type | Description |
|---|---|---|
outputPath | String | 输出 PNG 文件路径 |
DrawSingleConnection(
IGraphics, Pen, PointF, PointF)根据主题中的 ConnectionStyle 绘制单条连接线。
绘制单个基因块,根据链方向绘制箭头形状。
ChooseNiceScaleLength(
Int64)选择一个便于阅读的比例尺长度
FormatGenomeLength(
Int64)格式化基因组长度为可读字符串