multiassayexperiment.io package¶
Submodules¶
multiassayexperiment.io.h5ad module¶
- multiassayexperiment.io.h5ad.read_h5ad(path)[source]¶
Create a
MultiAssayExperimentfrom a H5AD file.This function reads the h5ad at the
pathusingread_h5ad()and converts it into an MAE usingfrom_anndata().- Parameters:
path (
str) – Path to a H5AD file- Return type:
- Returns:
An MAE from the H5ad file.
multiassayexperiment.io.interface module¶
- multiassayexperiment.io.interface.make_mae(experiments)[source]¶
Create an
MultiAssayExperimentfrom a dictionary of experiment objects. Each experiment is either anAnnDataobject or a subclass ofSummarizedExperiment.AnnDataobjects will be converted to aSingleCellExperiment.The import naively creates sample mapping, with each
experimentconsidered to be a independent sample. We add a sample tocol_datain this pattern -unknown_sample_{experiment_name}. All cells from the same experiment are considered to be from the same sample and is reflected insample_map.- Parameters:
experiments (
Dict[str,Any]) –A dictionary of experiments with experiment names as keys and the experiments as values.
Each
experimentcan be either aAnnDataobject or a subclass ofSummarizedExperiment.- Raises:
If any of the provided objects are not an expected types. - If
experimentsis not a dictionary.
- Return type:
- Returns:
An MAE from the experiments.