tooluniverse.humanbase_tool 模块¶
- class tooluniverse.humanbase_tool.HumanBaseTool[源代码]¶
基类:
BaseTool用于从 HumanBase 检索蛋白质-蛋白质相互作用及生物过程的工具。
- get_official_gene_name(gene_name)[源代码]¶
Retrieve the official gene symbol for a given gene name or synonym using the MyGene.info API.
- 参数
gene_name (str): The gene name or synonym to query.
- 返回值
str: The official gene symbol if found; otherwise, an error message string.
- get_entrez_ids(gene_names)[源代码]¶
使用NCBI Entrez API将基因名称转换为Entrez ID。
- 参数
gene_names (list): List of gene names to convert.
- 返回值
list: List of Entrez IDs corresponding to the gene names.
- humanbase_ppi_retrieve(genes, tissue, max_node=10, interaction=None)[源代码]¶
从HumanBase中检索蛋白质-蛋白质相互作用和生物过程。
- 参数
genes (list): List of gene names to analyze. tissue (str): Tissue type for tissue-specific interactions. max_node (int): Maximum number of nodes to retrieve. interaction (str): Specific interaction type to filter by.
- 返回值
tuple: (NetworkX Graph of interactions, list of biological processes)
- _convert_to_string(graph, bp_collection, original_genes, tissue)[源代码]¶
将 NetworkX 图和生物过程转换为字符串表示形式。
- 参数
graph (networkx.Graph): The network graph. bp_collection (list): List of biological processes. original_genes (list): Original gene list provided by user. tissue (str): Tissue type used for analysis.
- 返回值
str: Comprehensive string representation of the network data.