bioneuralnet.downstream_task.subject_representation¶
Functions
|
Accuracy classification score. |
|
Generates a list of hidden dimensions by halving the initial dimension until the minimum is reached. |
|
Maps a string to a PyTorch activation module. |
|
Retrieves a global logger configured to write to 'bioneuralnet.log'. |
|
Mean squared error regression loss. |
|
\(R^2\) (coefficient of determination) regression score function. |
|
Split arrays or matrices into random train and test subsets. |
Classes
|
alias of |
|
Generic Autoencoder for configurable reduction. |
|
Command-line reporter |
|
Principal component analysis (PCA). |
|
PurePath subclass that can make system calls. |
|
A random forest classifier. |
|
A random forest regressor. |
|
SubjectRepresentation Class for Integrating Network Embeddings into Omics Data. |
|
The year, month and day arguments are required. |
Exceptions
|
General error class raised by ray.tune. |
- class bioneuralnet.downstream_task.subject_representation.AutoEncoder(*args: Any, **kwargs: Any)[source]¶
Bases:
ModuleGeneric Autoencoder for configurable reduction. Builds encoder and decoder layers based on a list of hidden dimensions. Allows tuning of dropout, activation, and network architecture.
- class bioneuralnet.downstream_task.subject_representation.SubjectRepresentation(omics_data: DataFrame, embeddings: DataFrame, phenotype_data: DataFrame | None = None, phenotype_col: str = 'phenotype', reduce_method: str = 'AE', seed: int | None = None, tune: bool | None = False, output_dir: str | Path | None = None)[source]¶
Bases:
objectSubjectRepresentation Class for Integrating Network Embeddings into Omics Data.
This class integrates network-derived embeddings with raw omics data to create enriched subject-level profiles. It supports dimensionality reduction of embeddings (via Autoencoders or other methods) and subsequent fusion with original omics features.
- omics_data¶
DataFrame of omics features (columns).
- Type:
pd.DataFrame
- embeddings¶
DataFrame with embeddings (indexed by feature names).
- Type:
pd.DataFrame
- phenotype_data¶
Optional DataFrame with phenotype labels.
- Type:
Optional[pd.DataFrame]
- output_dir¶
Directory where results are written.
- Type:
Path
Generates a list of hidden dimensions by halving the initial dimension until the minimum is reached. For example, if init_dim is 64, this returns [64, 32, 16, 8, 4, 2].