neko.core.network.Network.add_node

Network.add_node(node: str, from_sif: bool = False) None

Adds a node to the network. The node is added to the nodes DataFrame of the network. The function checks the syntax for the genesymbol to ensure it is correct. If the node is a complex, it is added with the ‘Genesymbol’ as the complex string and ‘Uniprot’ as the node. Otherwise, it is added with the ‘Genesymbol’ as the genesymbol and ‘Uniprot’ as the uniprot. The ‘Type’ is set as ‘NaN’ for all new nodes.

Args:
  • node: A string representing the node to be added. The node can be represented by either its

    Genesymbol or Uniprot identifier.

Returns:
  • None.