netmap.grn.inferrenceΒΆ
GRN inference via Captum attributions over an autoencoder ensemble.
The main entry point inferrence() iterates over all target genes,
applies the XAI method across all models in the zoo, aggregates attributions,
and writes one Parquet shard per gene to <output_dir>/grn/. The returned
AnnData object (grn_adata) has cells as observations and
directed edges (SourceGene_TargetGene) as variables; X is an empty
placeholder backed by those Parquet files until loaded with
retrieve_top_edges().
Functions
Aggregate a list of per-model attribution arrays into a single array. |
|
Compute attributions for all target genes using a single model. |
|
Compute Captum attributions for a single target gene across all models. |
|
Compute the full GRN for all target genes using an autoencoder ensemble. |
|
Compute the full GRN and back it with an HDF5 file instead of Parquet. |
|
Compute the full GRN by processing one complete model at a time. |
|
Compute the GRN model-wise and save intermediate aggregates as layers. |
|
Load the full attribution matrix from the HDF5 backing file into memory. |
|
Shuffles each column of a 2D PyTorch tensor independently. |