.proteoforms_df

proteopy.get.proteoforms_df(adata, proteins=None, *, only_proteins=False, score_threshold=None, pval_threshold=None, pval_adj_threshold=None)[source]

Return proteoform peptide assignment results as a tidy dataframe.

Parameters:
  • adata (AnnData) – Annotated data object containing proteoform annotations in .var.

  • proteins (str | Sequence[str] | None) – Optional subset of protein identifiers to include.

  • only_proteins (bool) – When True, output unique protein-level information of identified proteoforms.

  • score_threshold (float | None) – Minimum proteoform score to retain.

  • pval_threshold (float | None) – Maximum raw p-value allowed.

  • pval_adj_threshold (float | None) – Maximum adjusted p-value allowed.

Returns:

Proteoform assignments filtered according to the provided arguments.

Return type:

pandas.DataFrame

Raises:
  • TypeError – If proteins is neither a string nor a sequence of strings.

  • KeyError – If the expected proteoform columns are not present in adata.var.