gtdblib.file.itol package

Submodules

gtdblib.file.itol.collapse module

class gtdblib.file.itol.collapse.iTolCollapseFile(path: Path)

Bases: File

data: List[str]
insert(node_id: str)
write()

gtdblib.file.itol.dataset_color_strip module

class gtdblib.file.itol.dataset_color_strip.iTolDatasetColorStripFile(path: Path, label: str, color: str, color_branches: bool = False, strip_width: int = 25, margin: int = 0, border_width: int = 0, border_color: str = '#0000ff', complete_border: bool = False, show_internal: bool = False, show_strip_labels: bool = True, strip_label_position: Literal['top', 'center', 'bottom'] = 'center', strip_label_size_factor: float = 1, strip_label_rotation: float = 0, strip_label_shift: int = 0, strip_label_color: str = '#000000', strip_label_outline: float = 0.5, show_labels: bool = False, size_factor: float = 1, label_rotation: float = 0, label_shift: float = 0)

Bases: File

data: List[str]
insert(node_id: str, color: str, label: str)
write()

gtdblib.file.itol.dataset_text module

class gtdblib.file.itol.dataset_text.iTolDatasetTextFile(path: Path, label: str, color: str, margin: int = 0, show_internal: bool = False, label_rotation: float = 0, labels_below: bool = True, vertical_shift: int = 0, straight_labels: bool = False, align_to_tree: bool = False, size_factor: float = 1, external_label_shift: int = 0, show_labels: bool = False, label_size_factor: float = 1, label_shift: int = 0)

Bases: File

data: List[str]
insert(node_id: str, label: str, position: float, color: str, style: Literal['normal', 'bold', 'italic', 'bold-italic'], size_factor: float, rotation: float)

#position defines the position of the text label on the tree:

# -1 = external label # a number between 0 and 1 = internal label positioned at the specified valu e along the node branch (for example, position 0 is exactly at the start of node branch, position 0.5 is in the middle, and position 1 is at the end)

‘normal’,’’bold’,’italic’ or ‘bold-italic’

write()

gtdblib.file.itol.label module

class gtdblib.file.itol.label.iTolLabelFile(path: Path)

Bases: File

data: List[str]
insert(node_id: str, label: str)
write()

gtdblib.file.itol.popup module

class gtdblib.file.itol.popup.iTolPopupFile(path: Path)

Bases: File

data: List[str]
insert(node_id: str, title: str, content: str)
write()

gtdblib.file.itol.tree_colors module

class gtdblib.file.itol.tree_colors.iTolTreeColorsFile(path: Path)

Bases: File

data: List[str]
insert_branch(node_id: str, color: str, branch_style: str, scale_factor: float)

defines color/style for a single branch

insert_clade(node_id: str, color: str, branch_style: str, scale_factor: float)

defines color/style for all branches in a clade

insert_label(node_id: str, color: str, font_style: Optional[str] = None, scale_factor: Optional[float] = None)

defines font color/style for the leaf label

insert_label_background(node_id: str, color: str)

defines the leaf label background color

insert_range(node_id: str, color: str, label: str)

defines a colored range (colored background for labels/clade)

write()

Module contents