User API ======== The **User API** lists BioNeuralNet's key classes, methods, and utilities and summarizes the main entry points exposed at the top-level ``bioneuralnet`` namespace. Top-level Imports ----------------- After installation, the most common pattern is: .. code-block:: python import bioneuralnet as bnn print(bnn.__version__) # Core entry points from bioneuralnet import ( GNNEmbedding, auto_pysmccnet, SubjectRepresentation, DPMON, DatasetLoader, CorrelatedPageRank, CorrelatedLouvain, HybridLouvain, load_example, load_monet, load_brca, load_lgg, load_kipan, set_seed, get_logger, ) Module Reference ---------------- The following submodules are documented via autosummary: .. autosummary:: :toctree: _autosummary :recursive: bioneuralnet . Executables ----------- Several classes expose a high-level ``run()`` method to perform end-to-end workflows: - :class:`bioneuralnet.downstream_task.SubjectRepresentation` for integrating embeddings into subject-level representations. - :class:`bioneuralnet.clustering.CorrelatedLouvain` and :class:`bioneuralnet.clustering.HybridLouvain` for phenotype-aware clustering and subgraph detection. - :class:`bioneuralnet.downstream_task.DPMON` for disease prediction using multi-omics networks. Usage pattern: 1. **Instantiate** the class with the relevant data (omics, adjacency, phenotype, etc.). 2. **Call** the :py:meth:`run()` method to execute the pipeline. Example ------- .. code-block:: python from bioneuralnet.downstream_task import DPMON dpmon_obj = DPMON( adjacency_matrix=adjacency_matrix, omics_list=omics_list, phenotype_data=phenotype_data, clinical_data=clinical_data, model="GAT", ) predictions, metrics, embeddings = dpmon.run() print("Disease phenotype predictions:\n", predictions) print("Result metrics:", metrics) print("Generated Embeddings", embeddings) Run Methods ----------- Direct links to the main ``run()`` methods: .. automethod:: bioneuralnet.downstream_task.SubjectRepresentation.run :no-index: .. automethod:: bioneuralnet.downstream_task.DPMON.run :no-index: .. automethod:: bioneuralnet.clustering.CorrelatedPageRank.run :no-index: .. automethod:: bioneuralnet.clustering.CorrelatedLouvain.run :no-index: .. automethod:: bioneuralnet.clustering.HybridLouvain.run :no-index: