protdata.io.read_mztab

Contents

protdata.io.read_mztab#

protdata.io.read_mztab(file, index_column='accession')#

Load mzTab protein table into an AnnData object.

Parameters:
file Union[str, DataFrame]

Path to mzTab file or a pandas DataFrame containing the protein table.

index_column str (default: 'accession')

Column indicating the protein groups.

Return type:

AnnData

Returns:

anndata.AnnData object with:

  • X: intensity matrix (samples x proteins)

  • var: protein metadata (indexed by protein accession)

  • obs: sample metadata (indexed by sample names)