swiftcnv.load_output#
- load_output(output_dir, adata=None, **kwargs)#
Load the outputs of SwiftCNV written in a directory.
- Parameters:
output_dir (str) – Path to the SwiftCNV output files containing the matrix, genes and annotations.
adata (anndata.AnnData) – If defined, the outputs will be added to the AnnData object via
add_mat_to_adata().**kwargs (Additional kwargs are passed to
add_mat_to_adata().)
- Returns:
If
adatais None, returns a tuple of (cnv_matrix, cell_order and gene_order),
where
cnv_matrixis anumpy.ndarrayandcell_orderandgene_orderarepandas.DataFrame. * Ifadatais defined andinplace=True, returns the updated copy ofadata. Ifinplace=False, updatesadatareturns None.- Return type:
tuple[numpy.ndarray, pandas.DataFrame, pandas.DataFrame] or anndata.AnnData or None