Skip to content

msmu.read_diann

Reads DIA-NN output and returns a MuData object.

The block-diagonal precursor quantification is stored as a scipy sparse .X: the precursor pivot is (n_precursor_obs x n_run) with ~one non-null per row, so only the observed cells are built (no dense pivot). Downstream tools handle the sparse .X transparently (absent cells restored as NaN).

Parameters:

Name Type Description Default
identification_file str | Path | list

Path or URL to report.tsv/report.parquet, or a list of files.

required
drop_search_result bool

If True, omit the raw search table from .varm["search_result"].

False
level Literal['precursor', 'protein_group']

Level of the output to read ('precursor' or 'protein_group'). Note: 'protein_group' is not yet implemented.

'precursor'

Returns:

Type Description
MuData

A MuData object containing the DIA-NN data.