Source code for obnb.data.network.string

from obnb.data.network.base import BaseNDExData
from obnb.typing import Converter


[docs]class STRING(BaseNDExData): """The STRING Human Protein Protein Interaction network.""" cx_uuid = "03bdbc9e-a17e-11ec-b3be-0ac135e8bacf" def __init__( self, root: str, *, weighted: bool = True, directed: bool = False, largest_comp: bool = True, gene_id_converter: Converter = "HumanEntrez", **kwargs, ): """Initialize the STRING network data.""" super().__init__( root, weighted=weighted, directed=directed, largest_comp=largest_comp, gene_id_converter=gene_id_converter, cx_kwargs={ "interaction_types": ["interacts-with"], "node_id_prefix": "ncbigene", "default_edge_weight": 0.0, "edge_weight_attr_name": "combined_score", "reduction": "max", "use_node_alias": True, }, **kwargs, )